aboutsummaryrefslogtreecommitdiff
path: root/graphics/glpng/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-03-30 09:07:19 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-03-30 09:07:19 +0000
commit3026548149654cb429c2ee41c790f7e6a1be7de0 (patch)
treee32da0c3d13df6a4df4416cbd8ff045559aa0ae3 /graphics/glpng/Makefile
parent165a3146382200786a07f2712ee0de74409fcc76 (diff)
downloadports-3026548149654cb429c2ee41c790f7e6a1be7de0.tar.gz
ports-3026548149654cb429c2ee41c790f7e6a1be7de0.zip
Notes
Diffstat (limited to 'graphics/glpng/Makefile')
-rw-r--r--graphics/glpng/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/glpng/Makefile b/graphics/glpng/Makefile
index c1327eab960c..2de93e1a95d1 100644
--- a/graphics/glpng/Makefile
+++ b/graphics/glpng/Makefile
@@ -7,7 +7,7 @@
PORTNAME= glpng
PORTVERSION= 1.45
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= http://www.wyatt100.freeserve.co.uk/ \
http://mirror.amdmi3.ru/distfiles/
@@ -27,7 +27,9 @@ AR?= /usr/bin/ar
WRKSRC= ${WRKDIR}/src
post-patch:
- @${REINPLACE_CMD} -e 's|png/|libpng/|' ${WRKSRC}/glpng.c
+ @${REINPLACE_CMD} -e 's|png/|libpng/|' \
+ -e 's|!png_check_sig(header, 8)|png_sig_cmp(header, 0, 8)|' \
+ ${WRKSRC}/glpng.c
do-build:
${CC} ${CFLAGS} -fPIC -I${LOCALBASE}/include -I${WRKDIR}/include -c -o ${WRKSRC}/libglpng.o ${WRKSRC}/glpng.c