aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-30 17:07:19 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-30 17:07:19 +0800
commitcc5f84183a013d9b564e95e40d8c64c6aa44f0c7 (patch)
tree5aa9552d5f08c8dd663ebddfae1ccef3bcfe83d8 /graphics
parentad29b8b1330eba1a1b4096a02b90157e64119977 (diff)
downloadfreebsd-ports-gnome-cc5f84183a013d9b564e95e40d8c64c6aa44f0c7.tar.gz
freebsd-ports-gnome-cc5f84183a013d9b564e95e40d8c64c6aa44f0c7.tar.zst
freebsd-ports-gnome-cc5f84183a013d9b564e95e40d8c64c6aa44f0c7.zip
- fix build for png-1.4.1
- bump PORTREVISION
Diffstat (limited to 'graphics')
-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