summaryrefslogtreecommitdiff
path: root/graphics/png/Makefile
diff options
context:
space:
mode:
authorfredb <fredb>2002-07-19 14:33:08 +0000
committerfredb <fredb>2002-07-19 14:33:08 +0000
commit95af6b8fd63c0488b7dd3fb92937f48e88fe5837 (patch)
tree9a269def1e753f095d56220cc440ef437ed4b27d /graphics/png/Makefile
parent743b9a610593b877e34b7ecaaf73261aebf51ce4 (diff)
downloadpkgsrc-95af6b8fd63c0488b7dd3fb92937f48e88fe5837.tar.gz
Update to version 1.2.4. Two new functions since 1.2.1, png_malloc_warn()
and png_set_text_2(), call for a minor version bump in the shared library. Update "BUILDLINK_DEPENDS" to current level. Also make the shared library versions visible in the top-level "Makefile", and add a top-level "test" target to invoke "pngtest" in ${WRKSRC}. The following is culled from the extensive "CHANGES" file, ommitting all make system and doc changes, and some bug fixes for bugs that weren't present in 1.2.1. See "CHANGES" for complete details: Added setjmp() at the end of png_create_*_struct_2() in case user forgets to put one in their application. Exported png_zalloc(), png_zfree(), png_default_read(), png_default_write(), png_default_flush(), and png_push_fill_buffer() and included them in module definition files. Revised prototype for png_default_flush() Typos in *.def files (png_default_read|write -> png_default_read|write_data) Once more restored png_zalloc and png_zfree to regular nonexported form. Restored png_default_read|write_data, png_default_flush, png_read_fill_buffer to nonexported form, but with PNGAPI, and removed them from module def files. Removed "PNGAPI" from png_zalloc() and png_zfree() in png.c Plugged various memory leaks; added png_malloc_warn() and png_set_text_2() functions. Plugged memory leak of png_ptr->current_text (Matt Holgate). Check for buffer overflow before reading CRC in pngpread.c (Warwick Allison) Plugged memory leak of row_buf in pngtest.c when there is a png_error(). Detect buffer overflow in pngpread.c when IDAT is corrupted with extra data. Changed png_warning() to png_error() when width is too large to process.
Diffstat (limited to 'graphics/png/Makefile')
-rw-r--r--graphics/png/Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
index 9a7911f607d..9b60d4c2602 100644
--- a/graphics/png/Makefile
+++ b/graphics/png/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.41 2002/05/16 06:08:09 tron Exp $
+# $NetBSD: Makefile,v 1.42 2002/07/19 14:33:08 fredb Exp $
# On update, don't forget to increase shared library major/minor's in
# accordance with changes (patch-aa).
-DISTNAME= libpng-1.2.1
+DISTNAME= libpng-1.2.4
PKGNAME= ${DISTNAME:S/lib//}
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/} \
@@ -16,17 +16,26 @@ MAINTAINER= fredb@netbsd.org
HOMEPAGE= http://www.libpng.org/pub/png/
COMMENT= Library for manipulating PNG images
-USE_LIBTOOL= yes
+USE_BUILDLINK_ONLY= yes
+USE_LIBTOOL= yes
+
+LIBPNG_SO_MAJOR= 3
+LIBPNG_SO_MINOR= 1
MAKEFILE= scripts/makefile.std
MAKE_ENV+= REALCC="${CC}"
-
-USE_BUILDLINK_ONLY= yes
+MAKE_ENV+= LIBPNG_SO_MAJOR=${LIBPNG_SO_MAJOR}
+MAKE_ENV+= LIBPNG_SO_MINOR=${LIBPNG_SO_MINOR}
+PLIST_SUBST+= LIBPNG_SO_MAJOR=${LIBPNG_SO_MAJOR}
+PLIST_SUBST+= LIBPNG_SO_MINOR=${LIBPNG_SO_MINOR}
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
+test: build
+ @cd ${WRKSRC} && ${MAKE} -f ${MAKEFILE} test
+
.include "../../devel/zlib/buildlink.mk"
.include "../../mk/bsd.pkg.mk"