|
Lines 6-12
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= optipng |
8 |
PORTNAME= optipng |
| 9 |
PORTVERSION= 0.6.5 |
9 |
PORTVERSION= 0.7.1 |
| 10 |
CATEGORIES= graphics |
10 |
CATEGORIES= graphics |
| 11 |
MASTER_SITES= SF/${PORTNAME}/OptiPNG/${PORTNAME}-${PORTVERSION} |
11 |
MASTER_SITES= SF/${PORTNAME}/OptiPNG/${PORTNAME}-${PORTVERSION} |
| 12 |
|
12 |
|
|
Lines 17-36
Link Here
|
| 17 |
BUNDLED_ZLIB "Use bundled zlib" off |
17 |
BUNDLED_ZLIB "Use bundled zlib" off |
| 18 |
|
18 |
|
| 19 |
HAS_CONFIGURE= yes |
19 |
HAS_CONFIGURE= yes |
| 20 |
BUILD_WRKSRC= ${WRKSRC}/src |
|
|
| 21 |
MAKEFILE= scripts/unix.mak |
| 22 |
ALL_TARGET= ${PORTNAME} |
| 23 |
PLIST_FILES= bin/optipng |
20 |
PLIST_FILES= bin/optipng |
| 24 |
MAN1= optipng.1 |
21 |
MAN1= optipng.1 |
| 25 |
PORTDOCS= caveat.txt history.txt manual.html manual.pdf manual.txt \ |
22 |
PORTDOCS= history.txt optipng.man.html optipng.man.pdf optipng.man.txt \ |
| 26 |
png_optimization_guide.html thanks.html todo.txt |
23 |
png_optimization.html todo.txt |
| 27 |
|
24 |
|
| 28 |
.include <bsd.port.options.mk> |
25 |
.include <bsd.port.options.mk> |
| 29 |
|
26 |
|
| 30 |
.ifndef(WITH_BUNDLED_LIBPNG) |
27 |
.ifndef(WITH_BUNDLED_LIBPNG) |
| 31 |
BROKEN= does not build with libpng 1.5.x |
|
|
| 32 |
CONFIGURE_ARGS+= --with-system-libpng |
28 |
CONFIGURE_ARGS+= --with-system-libpng |
| 33 |
CFLAGS+= "-I${LOCALBASE}/include" |
29 |
CFLAGS+= "-I${LOCALBASE}/include" |
|
|
30 |
LDFLAGS+= "-L${LOCALBASE}/lib" |
| 34 |
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png |
31 |
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png |
| 35 |
.endif |
32 |
.endif |
| 36 |
|
33 |
|
|
Lines 39-46
Link Here
|
| 39 |
.endif |
36 |
.endif |
| 40 |
|
37 |
|
| 41 |
do-install: |
38 |
do-install: |
| 42 |
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng ${PREFIX}/bin/ |
39 |
${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng ${PREFIX}/bin/ |
| 43 |
${INSTALL_MAN} ${WRKSRC}/man/optipng.1 ${MAN1PREFIX}/man/man1/ |
40 |
${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 ${MAN1PREFIX}/man/man1/ |
| 44 |
|
41 |
|
| 45 |
post-install: |
42 |
post-install: |
| 46 |
.ifndef NOPORTDOCS |
43 |
.ifndef NOPORTDOCS |