aboutsummaryrefslogtreecommitdiff
path: root/graphics/png/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2011-07-08 13:27:20 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2011-07-08 13:27:20 +0000
commit715e473c0a936ba6e921dd840c19d80472b9933e (patch)
tree4d5d25200ad7fd4051933464995d081ea231b3f4 /graphics/png/Makefile
parentebdf96af6ed766fdd6334c024604d32990541d10 (diff)
downloadports-715e473c0a936ba6e921dd840c19d80472b9933e.tar.gz
ports-715e473c0a936ba6e921dd840c19d80472b9933e.zip
- enable option APNG
PR: 158716 Suggested by: Mikhail T. - bump PORTREVISION - use compressed patch from original master - remove obsolte ghostscript hooks
Notes
Notes: svn path=/head/; revision=277354
Diffstat (limited to 'graphics/png/Makefile')
-rw-r--r--graphics/png/Makefile23
1 files changed, 11 insertions, 12 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index dc6c535cd624..5505a3c4909e 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -7,6 +7,7 @@
PORTNAME= png
PORTVERSION= 1.4.5
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/lib${PORTNAME}14/${PORTVERSION}
DISTNAME= lib${PORTNAME}-${PORTVERSION}
@@ -31,26 +32,24 @@ MAN3= libpng.3 libpngpf.3
MAN5= png.5
MANCOMPRESSED= maybe
-OPTIONS= APNG "Animated PNG support" Off
+OPTIONS= APNG "Animated PNG support" On
.include <bsd.port.pre.mk>
-.if defined(WITH_APNG) || make(makesum) || defined(FETCH_ALL)
-MASTER_SITES+= SF/vdubapngmod/lib${PORTNAME}-apng-patch/${PORTVERSION}:apng \
- http://littlesvr.ca/apng/diff/:apng
-DISTFILES+= ${DISTNAME}-apng.patch:apng
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+.if !defined(WITHOUT_APNG) || make(makesum) || defined(FETCH_ALL)
+MASTER_SITES+= SF/lib${PORTNAME}-apng/libpng-master/${PORTVERSION}:apng
+DISTFILES+= ${DISTNAME}-apng.patch.gz:apng
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
-.if defined(WITH_APNG)
-USE_DOS2UNIX= ${DISTNAME}-apng.patch
+.if !defined(WITHOUT_APNG)
EXTRA_PATCHES= ${WRKSRC}/${DISTNAME}-apng.patch
.endif
post-extract:
-# Please don't delete the following line - this link used by ghostscript* ports
- @${LN} -sf ${WRKSRC} ${WRKDIR}/libpng
-.if defined(WITH_APNG)
- @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}-apng.patch ${WRKSRC}
+.if !defined(WITHOUT_APNG)
+ @${LN} -sf ${WRKSRC} ${WRKSRC}/
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}-apng.patch.gz ${WRKSRC}/
+ ${GZIP_CMD} -d ${WRKSRC}/${DISTNAME}-apng.patch.gz
.endif
pre-su-install: