Update to 1.5.1beta01: 1.5.1beta01 contains a security fix for 1.5.0. The current public release, libpng 1.5.0, continues the evolution of the libpng API, finally hiding the contents of the venerable and hoary png_struct and png_info data structures inside private (i.e., non-installed) header files. (Apps that compiled with libpng 1.4 without warnings about deprecated features should happily compile with 1.5, too.) It also includes a new, more thorough test program (pngvalid.c), a new pnglibconf.h header file that tracks what features were enabled or disabled when libpng was built, and huge thanks to John Bowler, who did most of the work. Complete differences relative to libpng 1.4.x are detailed at http://www.libpng.org/pub/png/src/libpng-1.4.x-to-1.5.x-summary.txt . Since the shlib name changed, next up: PKGREVISION++ all across pkgsrc.diff -r1.126 -r1.127 pkgsrc/graphics/png/Makefile
(wiz)
@@ -1,25 +1,26 @@ | @@ -1,25 +1,26 @@ | |||
1 | # $NetBSD: Makefile,v 1.126 2010/12/10 12:37:26 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.127 2011/01/13 13:27:21 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= libpng-1.4.5 | 3 | DISTNAME= libpng-1.5.1beta01 | |
4 | PKGNAME= ${DISTNAME:S/lib//} | 4 | PKGNAME= ${DISTNAME:S/lib//} | |
5 | CATEGORIES= graphics | 5 | CATEGORIES= graphics | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/} \ | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/} \ | |
7 | ftp://ftp.fu-berlin.de/unix/graphics/png/src/ | 7 | ftp://ftp.fu-berlin.de/unix/graphics/png/src/ | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | MAINTAINER= wiz@NetBSD.org | 10 | MAINTAINER= wiz@NetBSD.org | |
11 | HOMEPAGE= http://www.libpng.org/pub/png/libpng.html | 11 | HOMEPAGE= http://www.libpng.org/pub/png/libpng.html | |
12 | COMMENT= Library for manipulating PNG images | 12 | COMMENT= Library for manipulating PNG images | |
13 | LICENSE= png-license | |||
13 | 14 | |||
14 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 15 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
15 | PKG_DESTDIR_SUPPORT= user-destdir | 16 | PKG_DESTDIR_SUPPORT= user-destdir | |
16 | 17 | |||
17 | GNU_CONFIGURE= yes | 18 | GNU_CONFIGURE= yes | |
18 | PKGCONFIG_OVERRIDE= scripts/libpng.pc.in libpng.pc.in | 19 | PKGCONFIG_OVERRIDE= scripts/libpng.pc.in libpng.pc.in | |
19 | TEST_TARGET= check | 20 | TEST_TARGET= check | |
20 | USE_LIBTOOL= yes | 21 | USE_LIBTOOL= yes | |
21 | 22 | |||
22 | .include "../../mk/bsd.prefs.mk" | 23 | .include "../../mk/bsd.prefs.mk" | |
23 | # keep this in sync with the same code in buildlink3.mk | 24 | # keep this in sync with the same code in buildlink3.mk | |
24 | .if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" | 25 | .if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" | |
25 | CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE | 26 | CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE |
@@ -1,13 +1,15 @@ | @@ -1,13 +1,15 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.12 2010/06/13 22:42:10 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.13 2011/01/13 13:27:21 wiz Exp $ | |
2 | bin/libpng-config | 2 | bin/libpng-config | |
3 | bin/libpng14-config | 3 | bin/libpng15-config | |
4 | include/libpng14/png.h | 4 | include/libpng15/png.h | |
5 | include/libpng14/pngconf.h | 5 | include/libpng15/pngconf.h | |
6 | include/libpng15/pnglibconf.h | |||
6 | include/png.h | 7 | include/png.h | |
7 | include/pngconf.h | 8 | include/pngconf.h | |
8 | lib/libpng14.la | 9 | include/pnglibconf.h | |
10 | lib/libpng15.la | |||
9 | lib/pkgconfig/libpng.pc | 11 | lib/pkgconfig/libpng.pc | |
10 | lib/pkgconfig/libpng14.pc | 12 | lib/pkgconfig/libpng15.pc | |
11 | man/man3/libpng.3 | 13 | man/man3/libpng.3 | |
12 | man/man3/libpngpf.3 | 14 | man/man3/libpngpf.3 | |
13 | man/man5/png.5 | 15 | man/man5/png.5 |
@@ -1,27 +1,27 @@ | @@ -1,27 +1,27 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.24 2010/06/13 22:42:10 wiz Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.25 2011/01/13 13:27:21 wiz Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= png | 3 | BUILDLINK_TREE+= png | |
4 | 4 | |||
5 | .if !defined(PNG_BUILDLINK3_MK) | 5 | .if !defined(PNG_BUILDLINK3_MK) | |
6 | PNG_BUILDLINK3_MK:= | 6 | PNG_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.png+= png>=1.2.4 | 8 | BUILDLINK_API_DEPENDS.png+= png>=1.2.4 | |
9 | BUILDLINK_ABI_DEPENDS.png+= png>=1.4.2 | 9 | BUILDLINK_ABI_DEPENDS.png+= png>=1.5.0 | |
10 | BUILDLINK_PKGSRCDIR.png?= ../../graphics/png | 10 | BUILDLINK_PKGSRCDIR.png?= ../../graphics/png | |
11 | 11 | |||
12 | # keep this in sync with the same code in Makefile | 12 | # keep this in sync with the same code in Makefile | |
13 | . if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" | 13 | . if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" | |
14 | CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE | 14 | CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE | |
15 | . endif | 15 | . endif | |
16 | 16 | |||
17 | # Some software directly tries to link against -lpng instead of | 17 | # Some software directly tries to link against -lpng instead of | |
18 | # using pkg-config or libpng-config to find the proper arguments | 18 | # using pkg-config or libpng-config to find the proper arguments | |
19 | # instead of installing symlinks. Work around this with buildlink | 19 | # instead of installing symlinks. Work around this with buildlink | |
20 | # magic: packages outside pkgsrc will need to be converted to | 20 | # magic: packages outside pkgsrc will need to be converted to | |
21 | # one of the proper methods or fail. | 21 | # one of the proper methods or fail. | |
22 | BUILDLINK_TRANSFORM+= l:png:png14 | 22 | BUILDLINK_TRANSFORM+= l:png:png15 | |
23 | 23 | |||
24 | .include "../../devel/zlib/buildlink3.mk" | 24 | .include "../../devel/zlib/buildlink3.mk" | |
25 | .endif # PNG_BUILDLINK3_MK | 25 | .endif # PNG_BUILDLINK3_MK | |
26 | 26 | |||
27 | BUILDLINK_TREE+= -png | 27 | BUILDLINK_TREE+= -png |
@@ -1,8 +1,7 @@ | @@ -1,8 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.71 2010/12/10 12:37:26 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.72 2011/01/13 13:27:22 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (libpng-1.4.5.tar.bz2) = 58005bee4a3452f2a3406b07910912f1266cde59 | 3 | SHA1 (libpng-1.5.1beta01.tar.bz2) = 3edd379cfae7240c93022347b4dbdef9744443f7 | |
4 | RMD160 (libpng-1.4.5.tar.bz2) = 4a498d6949a956031677b1cca95dc89dae7aedcf | 4 | RMD160 (libpng-1.5.1beta01.tar.bz2) = 68d0ee37a70426a5caf35172f97f6aec846d3ef3 | |
5 | Size (libpng-1.4.5.tar.bz2) = 680469 bytes | 5 | Size (libpng-1.5.1beta01.tar.bz2) = 763444 bytes | |
6 | SHA1 (patch-aa) = 35c0fc773bb04ba097e87d89c7f8eb960e7f509a | 6 | SHA1 (patch-aa) = 0c4f4e594798384079a0ce2ee5d7a45e16366b12 | |
7 | SHA1 (patch-ac) = 0cb275bda71dcd72d5cf0986ac488bccf40ad2c5 | 7 | SHA1 (patch-ac) = 0cb275bda71dcd72d5cf0986ac488bccf40ad2c5 | |
8 | SHA1 (patch-ae) = cdf43d98edbed290e0b0333c18483158648f5451 |
@@ -1,23 +1,23 @@ | @@ -1,23 +1,23 @@ | |||
1 | $NetBSD: patch-aa,v 1.29 2010/09/24 08:58:41 wiz Exp $ | 1 | $NetBSD: patch-aa,v 1.30 2011/01/13 13:27:22 wiz Exp $ | |
2 | 2 | |||
3 | Don't install compat links to libpng. Programs should use | 3 | Don't install compat links to libpng. Programs should use | |
4 | the pkg-config or libpng-config scripts to get the correct png library | 4 | the pkg-config or libpng-config scripts to get the correct png library | |
5 | name. | 5 | name. | |
6 | 6 | |||
7 | --- Makefile.in.orig 2010-09-23 12:18:43.000000000 +0000 | 7 | --- Makefile.in.orig 2011-01-06 13:02:45.000000000 +0000 | |
8 | +++ Makefile.in | 8 | +++ Makefile.in | |
9 | @@ -1242,14 +1242,6 @@ install-data-hook: | 9 | @@ -1342,14 +1342,6 @@ install-data-hook: | |
10 | install-exec-hook: | 10 | install-exec-hook: | |
11 | cd $(DESTDIR)$(bindir); rm -f libpng-config | 11 | cd $(DESTDIR)$(bindir); rm -f libpng-config | |
12 | cd $(DESTDIR)$(bindir); $(LN_S) $(PNGLIB_BASENAME)-config libpng-config | 12 | cd $(DESTDIR)$(bindir); $(LN_S) $(PNGLIB_BASENAME)-config libpng-config | |
13 | - @set -x;\ | 13 | - @set -x;\ | |
14 | - cd $(DESTDIR)$(libdir);\ | 14 | - cd $(DESTDIR)$(libdir);\ | |
15 | - for ext in a la so so.@PNGLIB_MAJOR@@PNGLIB_MINOR@.@PNGLIB_RELEASE@ sl dylib dll.a; do\ | 15 | - for ext in a la so so.@PNGLIB_MAJOR@@PNGLIB_MINOR@.@PNGLIB_RELEASE@ sl dylib dll.a; do\ | |
16 | - rm -f libpng.$$ext;\ | 16 | - rm -f libpng.$$ext;\ | |
17 | - if test -f $(PNGLIB_BASENAME).$$ext; then\ | 17 | - if test -f $(PNGLIB_BASENAME).$$ext; then\ | |
18 | - $(LN_S) $(PNGLIB_BASENAME).$$ext libpng.$$ext;\ | 18 | - $(LN_S) $(PNGLIB_BASENAME).$$ext libpng.$$ext;\ | |
19 | - fi;\ | 19 | - fi;\ | |
20 | - done | 20 | - done | |
21 | 21 | |||
22 | uninstall-hook: | 22 | uninstall-hook: | |
23 | cd $(DESTDIR)$(includedir); rm -f png.h pngconf.h | 23 | cd $(DESTDIR)$(includedir); rm -f png.h pngconf.h pnglibconf.h |