diff options
author | dinoex <dinoex@FreeBSD.org> | 2011-07-08 21:27:20 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2011-07-08 21:27:20 +0800 |
commit | 3439b4d0e47cee4cc3191134c4f15a3eb3ced846 (patch) | |
tree | c785732d54f00f6c04d0a34e6bf0c86e0b0eb1de /graphics | |
parent | b2defb32e0be94a629d23c84c5d35377e5582bd0 (diff) | |
download | freebsd-ports-gnome-3439b4d0e47cee4cc3191134c4f15a3eb3ced846.tar.gz freebsd-ports-gnome-3439b4d0e47cee4cc3191134c4f15a3eb3ced846.tar.zst freebsd-ports-gnome-3439b4d0e47cee4cc3191134c4f15a3eb3ced846.zip |
- enable option APNG
PR: 158716
Suggested by: Mikhail T.
- bump PORTREVISION
- use compressed patch from original master
- remove obsolte ghostscript hooks
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/png/Makefile | 23 | ||||
-rw-r--r-- | graphics/png/distinfo | 4 |
2 files changed, 13 insertions, 14 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: diff --git a/graphics/png/distinfo b/graphics/png/distinfo index 5c8e2213e4db..7409634eb2af 100644 --- a/graphics/png/distinfo +++ b/graphics/png/distinfo @@ -1,4 +1,4 @@ SHA256 (libpng-1.4.5.tar.xz) = 3e57b75d11a013918da3a7529ec0229d4a82d3b1acde5de13fa371b9c3ac4275 SIZE (libpng-1.4.5.tar.xz) = 545672 -SHA256 (libpng-1.4.5-apng.patch) = f3e5b551817535c9d49abb0e7552654c45b1c1d8efaebc966b21f66a1d8271a4 -SIZE (libpng-1.4.5-apng.patch) = 54203 +SHA256 (libpng-1.4.5-apng.patch.gz) = 9ef8990ac71e8ba891b5baa396fbc54d2c55896209d8fa871144cc9db0ad9208 +SIZE (libpng-1.4.5-apng.patch.gz) = 10447 |