Version 1.6.29beta01 [January 12, 2017] Readded "include(GNUInstallDirs)" to CMakeLists.txt (Gianfranco Costamagna). Moved SSE2 optimization code into the main libpng source directory. Configure libpng with "configure --enable-intel-sse" or compile libpng with "-DPNG_INTEL_SSE" in CPPFLAGS to enable it. Simplified conditional compilation in pngvalid.c, for AIX (Michael Felt). Version 1.6.29beta02 [February 22, 2017] Avoid conditional directives that break statements in pngrutil.c (Romero Malaquias) The contrib/examples/pngtopng.c recovery code was in the wrong "if" branches; the comments were correct. Added code for PowerPC VSX optimisation (Vadim Barkov). Version 1.6.29beta03 [March 1, 2017] Avoid potential overflow of shift operations in png_do_expand() (Aaron Boxer). Change test ZLIB_VERNUM >= 0x1281 to ZLIB_VERNUM >= 0x1290 in pngrutil.c because Solaris 11 distributes zlib-1.2.8.f that is older than 1.2.8.1. Suppress clang warnings about implicit sign changes in png.c Version 1.6.29 [March 16, 2017] No changes.
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.190 2017/03/16 15:15:42 wiz Exp $
|
|
|
|
DISTNAME= libpng-1.6.29
|
|
PKGNAME= ${DISTNAME:S/lib//}
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/}
|
|
MASTER_SITES+= ftp://ftp.fu-berlin.de/unix/graphics/png/src/libpng16/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= wiz@NetBSD.org
|
|
HOMEPAGE= http://www.libpng.org/pub/png/libpng.html
|
|
COMMENT= Library for manipulating PNG images
|
|
LICENSE= zlib
|
|
|
|
GNU_CONFIGURE= yes
|
|
# do not create libpng.la
|
|
CONFIGURE_ARGS+= --disable-unversioned-links
|
|
# but do install png.h outside include/libpng$VERSION for now
|
|
# until pkgsrc is fixed to use libpng-config or the pc file everywhere
|
|
INSTALL_TARGET= install install-header-links
|
|
|
|
PKGCONFIG_OVERRIDE= scripts/libpng.pc.in libpng.pc.in
|
|
TEST_TARGET= check
|
|
USE_LIBTOOL= yes
|
|
|
|
CPPFLAGS+= -DPNG_USER_CHUNK_CACHE_MAX=128 -DPNG_USER_CHUNK_MALLOC_MAX=8000000
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
# keep this in sync with the same code in buildlink3.mk
|
|
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "x86_64"
|
|
CPPFLAGS+= -DPNG_NO_ASSEMBLER_CODE
|
|
.endif
|
|
|
|
SUBST_CLASSES+= rpathfix
|
|
SUBST_FILES.rpathfix= libpng-config.in
|
|
SUBST_MESSAGE.rpathfix= Adding rpath to libpng-config
|
|
SUBST_SED.rpathfix= -e 's/-L$${libdir}/${COMPILER_RPATH_FLAG}$${libdir} -L$${libdir}/g'
|
|
SUBST_STAGE.rpathfix= pre-configure
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|