summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-12-25 20:52:16 +0000
committerantoine <antoine@FreeBSD.org>2014-12-25 20:52:16 +0000
commitc8213a0a52ca97601851895b000dbe7deb246ae3 (patch)
treea0afc6a56b4e1b04c7cf363e23c563a497549bf5 /graphics
parent5d7c9eb1b04546b809104682672056d98c62a6f3 (diff)
downloadFreeBSD-ports-c8213a0a52ca97601851895b000dbe7deb246ae3.zip
FreeBSD-ports-c8213a0a52ca97601851895b000dbe7deb246ae3.tar.gz
- Update graphics/png to 1.6.16
- Patch oolite to build with this new version A portrevision bump will follow soon Differential Revision: https://reviews.freebsd.org/D1360 Submitted by: bapt Exp-run: self
Diffstat (limited to 'graphics')
-rw-r--r--graphics/png/Makefile40
-rw-r--r--graphics/png/distinfo8
-rw-r--r--graphics/png/files/patch-libpng-config-body.in16
-rw-r--r--graphics/png/files/patch-makefile.freebsd43
-rw-r--r--graphics/png/pkg-plist25
5 files changed, 20 insertions, 112 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index dec4b3e..cad2e7f 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -2,24 +2,21 @@
# $FreeBSD$
PORTNAME= png
-PORTVERSION= 1.5.21
+PORTVERSION= 1.6.16
CATEGORIES= graphics
-MASTER_SITES= SF/lib${PORTNAME}/lib${PORTNAME}15/${PORTVERSION}
+MASTER_SITES= SF/lib${PORTNAME}/lib${PORTNAME}16/${PORTVERSION}
+PATCH_SITES= SF/apng/lib${PORTNAME}/lib${PORTNAME}16/
DISTNAME= lib${PORTNAME}-${PORTVERSION}
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= portmgr@FreeBSD.org
COMMENT= Library for manipulating PNG images
-PORTSCOUT= limit:^1\.5\.
-
USES= cmake cpe tar:xz
CPE_PRODUCT= libpng
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CMAKE_ARGS+= -DPNG_MAN_DIR:STRING=man
-SOSUFFIX= .${PORTVERSION:E}
OPTIONS_DEFINE=APNG PNGTEST
OPTIONS_DEFAULT=APNG PNGTEST
@@ -28,25 +25,12 @@ PNGTEST_DESC=Enable Regression Test (recommended)
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MAPNG} || make(makesum) || defined(FETCH_ALL)
-MASTER_SITES+= SF/apng/libpng/libpng15/:apng
-DISTFILES+= ${DISTNAME}-apng.patch.gz:apng
-EXTRACT_ONLY+= ${DISTNAME}${EXTRACT_SUFX}
-.endif
-.if ${PORT_OPTIONS:MAPNG}
-EXTRA_PATCHES+= ${WRKSRC}/${DISTNAME}-apng.unix
-.endif
-
-post-extract:
-.if ${PORT_OPTIONS:MAPNG}
- ${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}-apng.patch.gz ${WRKSRC}/
- ${GZIP_CMD} -d ${WRKSRC}/${DISTNAME}-apng.patch.gz
- ${TR} -d '\r' < ${WRKSRC}/${DISTNAME}-apng.patch > ${WRKSRC}/${DISTNAME}-apng.unix
+.if ${PORT_OPTIONS:MAPNG} || make(makesum)
+PATCHFILES= ${DISTNAME}-apng.patch.gz
.endif
post-patch:
${REINPLACE_CMD} \
- -e 's|RELEASE}.0|RELEASE}|' \
-e 's|LIBDIR}/pkgconfig|LIBDIR}data/pkgconfig|' \
${WRKSRC}/CMakeLists.txt
@@ -61,18 +45,4 @@ post-build:
fi)
.endif
-pre-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/include/libpng
- ${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig
-
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/pngdebug.h ${WRKSRC}/pnginfo.h \
- ${WRKSRC}/pngpriv.h ${WRKSRC}/pngstruct.h \
- ${STAGEDIR}${PREFIX}/include/libpng15/
- -${RMDIR} ${STAGEDIR}${PREFIX}/include/libpng
- ${RM} ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libpng.pc
- ${LN} -sf libpng15.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libpng.pc
- ${RM} ${STAGEDIR}${PREFIX}/lib/libpng15.so.15
- ${MV} ${STAGEDIR}${PREFIX}/lib/libpng15.so.15${SOSUFFIX} ${STAGEDIR}${PREFIX}/lib/libpng15.so.15
-
.include <bsd.port.mk>
diff --git a/graphics/png/distinfo b/graphics/png/distinfo
index d9d07f5..5709f8f 100644
--- a/graphics/png/distinfo
+++ b/graphics/png/distinfo
@@ -1,4 +1,4 @@
-SHA256 (libpng-1.5.21.tar.xz) = b5151c64bc70489997790a492e1094d106be90a22b2958c43eee25a70dffdba7
-SIZE (libpng-1.5.21.tar.xz) = 734356
-SHA256 (libpng-1.5.21-apng.patch.gz) = 8a4fffa885f1a1a34a7bdcaa2d1b8f1e025f6e1cf9c5bf17224672d2a6948d94
-SIZE (libpng-1.5.21-apng.patch.gz) = 9511
+SHA256 (libpng-1.6.16.tar.xz) = 42f754df633e4e700544e5913cbe2fd4928bbfccdc07708a5cf84e59827fbe60
+SIZE (libpng-1.6.16.tar.xz) = 907284
+SHA256 (libpng-1.6.16-apng.patch.gz) = 07eb4825f6787283aa2c4f77b6fd421875ec7982e2a5b1705c3bea0cdccf5c2d
+SIZE (libpng-1.6.16-apng.patch.gz) = 9552
diff --git a/graphics/png/files/patch-libpng-config-body.in b/graphics/png/files/patch-libpng-config-body.in
deleted file mode 100644
index 5666752..0000000
--- a/graphics/png/files/patch-libpng-config-body.in
+++ /dev/null
@@ -1,16 +0,0 @@
---- scripts/libpng-config-body.in.orig Wed Sep 18 08:05:43 2002
-+++ scripts/libpng-config-body.in Sun Jul 23 10:27:47 2006
-@@ -77,8 +77,12 @@
- echo ${R_opts}
- ;;
-
-+ --ldopts)
-+ echo ${ldopts}
-+ ;;
-+
- --ldflags)
-- echo ${ldflags} ${L_opts} ${R_opts} ${libs}
-+ echo ${ldopts} ${L_opts} ${R_opts} ${libs}
- ;;
-
- --static)
diff --git a/graphics/png/files/patch-makefile.freebsd b/graphics/png/files/patch-makefile.freebsd
deleted file mode 100644
index b796394..0000000
--- a/graphics/png/files/patch-makefile.freebsd
+++ /dev/null
@@ -1,43 +0,0 @@
---- scripts/makefile.freebsd.orig 2012-06-14 13:28:01.000000000 +0200
-+++ scripts/makefile.freebsd 2012-06-20 21:11:47.000000000 +0200
-@@ -15,13 +15,13 @@
- NO_OBJ= YES
-
- # where make install puts libpng.a and png.h
--DESTDIR= ${PREFIX}
--LIBDIR= /lib
-+#DESTDIR= ${PREFIX}
-+LIBDIR= ${PREFIX}/lib
- INCS= png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
--INCSDIR= /include/libpng
-+INCSDIR= ${PREFIX}/include/libpng
- INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk
- MAN= libpng.3 libpngpf.3 png.5
--MANDIR= /man/man
-+MANDIR= ${PREFIX}/man/man
- SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \
- libpng/pngconf.h ${INCSDIR}/../pngconf.h \
- libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h
-@@ -53,4 +53,22 @@
- writelock:
- chmod a-w *.[ch35] $(DOCS) scripts/*
-
-+libpng-config:
-+ ( cat scripts/libpng-config-head.in; \
-+ echo prefix=\"${PREFIX}\"; \
-+ echo libdir=\"${LIBDIR}\"; \
-+ echo ccopts=\"${ccopts}\"; \
-+ echo cppflags=\"${cppflags}\"; \
-+ echo I_opts=\"-I${INCSDIR}\"; \
-+ echo L_opts=\"-L${LIBDIR}\"; \
-+ echo libs=\"-lpng -lz -lm\"; \
-+ echo ldopts=\"${ldopts}\"; \
-+ cat scripts/libpng-config-body.in ) > libpng-config
-+ chmod +x libpng-config
-+
-+beforeinstall: libpng-config
-+ ${BSD_INSTALL_SCRIPT} \
-+ libpng-config ${PREFIX}/bin
-+ ln -sf libpng-config ${PREFIX}/bin/libpng15-config
-+
- .include <bsd.lib.mk>
diff --git a/graphics/png/pkg-plist b/graphics/png/pkg-plist
index ee70fee..8e329ff 100644
--- a/graphics/png/pkg-plist
+++ b/graphics/png/pkg-plist
@@ -1,24 +1,21 @@
bin/libpng-config
-bin/libpng15-config
-include/libpng15/png.h
-include/libpng15/pngconf.h
-include/libpng15/pngdebug.h
-include/libpng15/pnginfo.h
-include/libpng15/pnglibconf.h
-include/libpng15/pngpriv.h
-include/libpng15/pngstruct.h
+bin/libpng16-config
+include/libpng16/png.h
+include/libpng16/pngconf.h
+include/libpng16/pnglibconf.h
include/png.h
include/pngconf.h
include/pnglibconf.h
lib/libpng.a
lib/libpng.so
-libdata/pkgconfig/libpng15.pc
+lib/libpng/libpng16-%%CMAKE_BUILD_TYPE%%.cmake
+lib/libpng/libpng16.cmake
+lib/libpng16.a
+lib/libpng16.so
+lib/libpng16.so.16
+lib/libpng16.so.16.16.0
libdata/pkgconfig/libpng.pc
-lib/libpng/libpng15-%%CMAKE_BUILD_TYPE%%.cmake
-lib/libpng/libpng15.cmake
-lib/libpng15.a
-lib/libpng15.so
-lib/libpng15.so.15
+libdata/pkgconfig/libpng16.pc
man/man3/libpng.3.gz
man/man3/libpngpf.3.gz
man/man5/png.5.gz
OpenPOWER on IntegriCloud