| @@ -1,41 +1,41 @@ | | | @@ -1,41 +1,41 @@ |
1 | # $NetBSD: Makefile,v 1.184 2016/08/04 06:05:08 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.185 2016/09/01 04:14:23 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= libpng-1.6.24 | | 3 | DISTNAME= libpng-1.6.25 |
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/libpng16/ | | 7 | ftp://ftp.fu-berlin.de/unix/graphics/png/src/libpng16/ |
8 | EXTRACT_SUFX= .tar.xz | | 8 | EXTRACT_SUFX= .tar.xz |
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= zlib | | 13 | LICENSE= zlib |
14 | | | 14 | |
15 | GNU_CONFIGURE= yes | | 15 | GNU_CONFIGURE= yes |
16 | # do not create libpng.la | | 16 | # do not create libpng.la |
17 | CONFIGURE_ARGS+= --disable-unversioned-links | | 17 | CONFIGURE_ARGS+= --disable-unversioned-links |
18 | # but do install png.h outside include/libpng$VERSION for now | | 18 | # but do install png.h outside include/libpng$VERSION for now |
19 | # until pkgsrc is fixed to use libpng-config or the pc file everywhere | | 19 | # until pkgsrc is fixed to use libpng-config or the pc file everywhere |
20 | INSTALL_TARGET= install install-header-links | | 20 | INSTALL_TARGET= install install-header-links |
21 | | | 21 | |
22 | PKGCONFIG_OVERRIDE= scripts/libpng.pc.in libpng.pc.in | | 22 | PKGCONFIG_OVERRIDE= scripts/libpng.pc.in libpng.pc.in |
23 | TEST_TARGET= check | | 23 | TEST_TARGET= check |
24 | USE_LIBTOOL= yes | | 24 | USE_LIBTOOL= yes |
25 | | | 25 | |
26 | CPPFLAGS+= -DPNG_USER_CHUNK_CACHE_MAX=128 -DPNG_USER_CHUNK_MALLOC_MAX=8000000 | | 26 | CPPFLAGS+= -DPNG_USER_CHUNK_CACHE_MAX=128 -DPNG_USER_CHUNK_MALLOC_MAX=8000000 |
27 | | | 27 | |
28 | .include "../../mk/bsd.prefs.mk" | | 28 | .include "../../mk/bsd.prefs.mk" |
29 | # keep this in sync with the same code in buildlink3.mk | | 29 | # keep this in sync with the same code in buildlink3.mk |
30 | .if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" | | 30 | .if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64" |
31 | CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE | | 31 | CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE |
32 | .endif | | 32 | .endif |
33 | | | 33 | |
34 | SUBST_CLASSES+= rpathfix | | 34 | SUBST_CLASSES+= rpathfix |
35 | SUBST_FILES.rpathfix= libpng-config.in | | 35 | SUBST_FILES.rpathfix= libpng-config.in |
36 | SUBST_MESSAGE.rpathfix= Adding rpath to libpng-config | | 36 | SUBST_MESSAGE.rpathfix= Adding rpath to libpng-config |
37 | SUBST_SED.rpathfix= -e 's/-L$${libdir}/${COMPILER_RPATH_FLAG}$${libdir} -L$${libdir}/g' | | 37 | SUBST_SED.rpathfix= -e 's/-L$${libdir}/${COMPILER_RPATH_FLAG}$${libdir} -L$${libdir}/g' |
38 | SUBST_STAGE.rpathfix= pre-configure | | 38 | SUBST_STAGE.rpathfix= pre-configure |
39 | | | 39 | |
40 | .include "../../devel/zlib/buildlink3.mk" | | 40 | .include "../../devel/zlib/buildlink3.mk" |
41 | .include "../../mk/bsd.pkg.mk" | | 41 | .include "../../mk/bsd.pkg.mk" |