Lines 18-36
Link Here
|
18 |
BUNDLED_ZLIB_DESC= Use bundled zlib |
18 |
BUNDLED_ZLIB_DESC= Use bundled zlib |
19 |
|
19 |
|
20 |
HAS_CONFIGURE= yes |
20 |
HAS_CONFIGURE= yes |
21 |
PLIST_FILES= bin/optipng |
21 |
PLIST_FILES= bin/optipng man/man1/optipng.1.gz |
22 |
MAN1= optipng.1 |
|
|
23 |
PORTDOCS= history.txt optipng.man.html optipng.man.pdf optipng.man.txt \ |
22 |
PORTDOCS= history.txt optipng.man.html optipng.man.pdf optipng.man.txt \ |
24 |
png_optimization.html todo.txt |
23 |
png_optimization.html todo.txt |
25 |
|
24 |
|
26 |
NO_STAGE= yes |
|
|
27 |
.include <bsd.port.options.mk> |
25 |
.include <bsd.port.options.mk> |
28 |
|
26 |
|
29 |
.if empty(PORT_OPTIONS:MBUNDLED_LIBPNG) |
27 |
.if empty(PORT_OPTIONS:MBUNDLED_LIBPNG) |
30 |
CONFIGURE_ARGS+= --with-system-libpng |
28 |
CONFIGURE_ARGS+= --with-system-libpng |
31 |
CFLAGS+= "-I${LOCALBASE}/include" |
29 |
CFLAGS+= "-I${LOCALBASE}/include" |
32 |
LDFLAGS+= "-L${LOCALBASE}/lib" |
30 |
LDFLAGS+= "-L${LOCALBASE}/lib" |
33 |
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png |
31 |
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png |
34 |
.endif |
32 |
.endif |
35 |
|
33 |
|
36 |
.if empty(PORT_OPTIONS:MBUNDLED_ZLIB) |
34 |
.if empty(PORT_OPTIONS:MBUNDLED_ZLIB) |
Lines 38-50
Link Here
|
38 |
.endif |
36 |
.endif |
39 |
|
37 |
|
40 |
do-install: |
38 |
do-install: |
41 |
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng ${PREFIX}/bin/ |
39 |
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng ${STAGEDIR}${PREFIX}/bin/ |
42 |
${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 ${MAN1PREFIX}/man/man1/ |
40 |
${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ |
43 |
|
41 |
|
44 |
post-install: |
42 |
post-install: |
45 |
.if ${PORT_OPTIONS:MDOCS} |
43 |
${INSTALL} -d ${STAGEDIR}${DOCSDIR} |
46 |
${INSTALL} -d ${DOCSDIR} |
44 |
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}/ |
47 |
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/ |
|
|
48 |
.endif |
49 |
|
45 |
|
50 |
.include <bsd.port.mk> |
46 |
.include <bsd.port.mk> |