60c7748ee4
* Removed unused pngasmrd.h file. * Removed references to uu.net for archived files. Added references to PNG Spec (second edition) and the PNG ISO/IEC Standard. * Added "test-dd" target in 15 makefiles, to run pngtest in DESTDIR. * Fixed bug with "optimized window size" in the IDAT datastream, that causes libpng to write PNG files with incorrect zlib header bytes. * Fixed bug with sCAL chunk and big-endian machines (David Munro). * Undid new code added in 1.2.6rc2 to update the color_type in png_set_filler(). * Added png_set_add_alpha() that updates color type. * Revised png_set_strip_filler() to not remove alpha if color_type has alpha. * Added makefile.hp64 * Changed projects/msvc/png32ms.def to scripts/png32ms.def in makefile.cygwin
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.68 2004/10/15 12:33:21 adam Exp $
|
|
|
|
# On update, don't forget to increase shared library major/minor's in
|
|
# accordance with changes (patch-aa).
|
|
DISTNAME= libpng-1.2.7
|
|
PKGNAME= ${DISTNAME:S/lib//}
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/} \
|
|
http://www.libpng.org/pub/png/src/ \
|
|
ftp://swrinde.nde.swri.edu/pub/png/src/ \
|
|
ftp://ftp.simplesystems.org/pub/libpng/src/ \
|
|
ftp://ftp.fu-berlin.de/unix/graphics/png/src/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= fredb@NetBSD.org
|
|
HOMEPAGE= http://www.libpng.org/pub/png/
|
|
COMMENT= Library for manipulating PNG images
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
USE_BUILDLINK3= yes
|
|
USE_LIBTOOL= yes
|
|
TEST_TARGET= test
|
|
|
|
LIBPNG_SO_MAJOR= 3
|
|
LIBPNG_SO_MINOR= 2
|
|
|
|
MAKEFILE= scripts/makefile.std
|
|
MAKE_ENV+= REALCC="${CC}"
|
|
MAKE_ENV+= LIBPNG_SO_MAJOR=${LIBPNG_SO_MAJOR}
|
|
MAKE_ENV+= LIBPNG_SO_MINOR=${LIBPNG_SO_MINOR}
|
|
|
|
INSTALLATION_DIRS= include lib/pkgconfig man/man3 man/man5
|
|
|
|
PKGCONFIG_OVERRIDE= scripts/libpng.pc.in
|
|
|
|
SUBST_CLASSES= pc
|
|
SUBST_STAGE.pc= post-patch
|
|
SUBST_FILES.pc= scripts/libpng.pc.in
|
|
SUBST_SED.pc= s\!@PREFIX@!${PREFIX}!
|
|
SUBST_MESSAGE.pc= "Fixing libpng.pc.in."
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/libpng.3 ${PREFIX}/man/man3
|
|
${INSTALL_MAN} ${WRKSRC}/libpngpf.3 ${PREFIX}/man/man3
|
|
${INSTALL_MAN} ${WRKSRC}/png.5 ${PREFIX}/man/man5
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/libpng.pc.in \
|
|
${PREFIX}/lib/pkgconfig/libpng12.pc
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|