Lines 6-58
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= potrace |
8 |
PORTNAME= potrace |
9 |
PORTVERSION= 1.3 |
9 |
PORTVERSION= 1.4 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= graphics |
10 |
CATEGORIES= graphics |
12 |
MASTER_SITES= http://potrace.sourceforge.net/download/ |
11 |
MASTER_SITES= http://potrace.sourceforge.net/download/ |
13 |
|
12 |
|
14 |
PATCH_SITES= ${MASTER_SITES} |
|
|
15 |
PATCHFILES= ${PORTNAME}-${PORTVERSION}-speed.patch |
16 |
PATCH_DIST_STRIP= -p1 |
17 |
|
18 |
MAINTAINER= smyru@heron.pl |
13 |
MAINTAINER= smyru@heron.pl |
19 |
COMMENT= Transforms bitmaps into vector graphics |
14 |
COMMENT= Transforms bitmaps into vector graphics |
20 |
|
15 |
|
21 |
GNU_CONFIGURE= yes |
16 |
GNU_CONFIGURE= yes |
22 |
|
17 |
|
23 |
MAN1= potrace.1 mkbitmap.1 |
18 |
MAN1= potrace.1 mkbitmap.1 |
|
|
19 |
PLIST_FILES= bin/potrace bin/mkbitmap |
24 |
|
20 |
|
25 |
.if defined(A4) |
21 |
.if defined(A4) |
26 |
CONFIGURE_ARGS+= --enable-a4 |
22 |
CONFIGURE_ARGS+= --enable-a4 |
27 |
.endif |
23 |
.endif |
28 |
|
24 |
|
29 |
.if defined(WITH_LZW) || defined(HAVE_UNISYS_LICENSE) || defined(WITH_GIF_LZW_COMPRESSION) |
|
|
30 |
CONFIGURE_ARGS+= --enable-compress |
31 |
.else |
32 |
CONFIGURE_ARGS+= --disable-compress |
33 |
.endif |
34 |
|
35 |
.if defined(WITH_METRIC) |
25 |
.if defined(WITH_METRIC) |
36 |
CONFIGURE_ARGS+= --enable-metric |
26 |
CONFIGURE_ARGS+= --enable-metric |
37 |
.endif |
27 |
.endif |
38 |
|
28 |
|
39 |
PORTDOCS= potrace.ps potrace.pdf |
|
|
40 |
|
41 |
pre-everything:: |
29 |
pre-everything:: |
42 |
@${ECHO} "" |
30 |
@${ECHO_MSG} "" |
43 |
@${ECHO} "You may define the following build options:" |
31 |
@${ECHO_MSG} "You may define the following build options:" |
44 |
@${ECHO} "" |
32 |
@${ECHO_MSG} "" |
45 |
@${ECHO} " WITH_LZW Enable patented external LZW compression" |
33 |
@${ECHO_MSG} " WITH_METRIC Enable use of metric units (centimeters) as default" |
46 |
@${ECHO} " WITH_METRIC Enable use of metric units (centimeters) as default" |
34 |
@${ECHO_MSG} " A4 Enable use of A4 as the default papersize" |
47 |
@${ECHO} " A4 Enable use of A4 as the default papersize" |
35 |
@${ECHO_MSG} "" |
48 |
@${ECHO} "" |
|
|
49 |
|
50 |
post-install: |
51 |
.if !defined(NOPORTDOCS) |
52 |
@${MKDIR} ${DOCSDIR} |
53 |
.for doc in ${PORTDOCS} |
54 |
${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${DOCSDIR} |
55 |
.endfor |
56 |
.endif |
57 |
|
36 |
|
58 |
.include <bsd.port.mk> |
37 |
.include <bsd.port.mk> |