2003-12-14 17:09:19 +01:00
|
|
|
# Ports collection makefile for: potrace
|
|
|
|
# Date created: 24 September 2003
|
|
|
|
# Whom: Piotr Smyrak <smyru@heron.pl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= potrace
|
2004-01-16 18:49:08 +01:00
|
|
|
PORTVERSION= 1.3
|
2004-01-29 16:55:59 +01:00
|
|
|
PORTREVISION= 2
|
2003-12-14 17:09:19 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://potrace.sourceforge.net/download/
|
|
|
|
|
2004-01-29 16:55:59 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCHFILES= ${PORTNAME}-${PORTVERSION}-speed.patch
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2003-12-14 17:09:19 +01:00
|
|
|
MAINTAINER= smyru@heron.pl
|
|
|
|
COMMENT= Transforms bitmaps into vector graphics
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2003-12-26 14:25:39 +01:00
|
|
|
MAN1= potrace.1 mkbitmap.1
|
2003-12-14 17:09:19 +01:00
|
|
|
|
|
|
|
.if defined(A4)
|
|
|
|
CONFIGURE_ARGS+= --enable-a4
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LZW) || defined(HAVE_UNISYS_LICENSE) || defined(WITH_GIF_LZW_COMPRESSION)
|
|
|
|
CONFIGURE_ARGS+= --enable-compress
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-compress
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_METRIC)
|
|
|
|
CONFIGURE_ARGS+= --enable-metric
|
|
|
|
.endif
|
|
|
|
|
2004-01-16 18:49:08 +01:00
|
|
|
PORTDOCS= potrace.ps potrace.pdf
|
|
|
|
|
2003-12-14 17:09:19 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may define the following build options:"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITH_LZW Enable patented external LZW compression"
|
|
|
|
@${ECHO} " WITH_METRIC Enable use of metric units (centimeters) as default"
|
|
|
|
@${ECHO} " A4 Enable use of A4 as the default papersize"
|
|
|
|
@${ECHO} ""
|
|
|
|
|
2004-01-16 18:49:08 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${PORTDOCS}
|
2004-01-18 22:33:27 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${DOCSDIR}
|
2004-01-16 18:49:08 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2003-12-14 17:09:19 +01:00
|
|
|
.include <bsd.port.mk>
|