summaryrefslogtreecommitdiff
path: root/graphics/png
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1997-10-06 13:29:36 +0000
committeragc <agc@pkgsrc.org>1997-10-06 13:29:36 +0000
commit5c3b7292c32007dc9dc952c1543437a1f50d2c9e (patch)
tree5058c5ead6fe4cc247b8c2e431718236fdc520d6 /graphics/png
parent01f487176f1149fa77df1283bceb51ffcd049e90 (diff)
downloadpkgsrc-5c3b7292c32007dc9dc952c1543437a1f50d2c9e.tar.gz
Initial import of FreeBSD graphics ports into the NetBSD packages
system.
Diffstat (limited to 'graphics/png')
-rw-r--r--graphics/png/Makefile22
-rw-r--r--graphics/png/files/md51
-rw-r--r--graphics/png/patches/patch-aa96
-rw-r--r--graphics/png/pkg/COMMENT1
-rw-r--r--graphics/png/pkg/DESCR8
-rw-r--r--graphics/png/pkg/PLIST6
6 files changed, 134 insertions, 0 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
new file mode 100644
index 00000000000..f5a7d796b9f
--- /dev/null
+++ b/graphics/png/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: PNG images library
+# Version required: 0.96
+# Date created: 5 Dec 1995
+# Whom: ache
+#
+# FreeBSD Id: Makefile,v 1.10 1997/07/17 15:12:44 max Exp
+#
+
+DISTNAME= libpng-0.96
+PKGNAME= png-0.96
+CATEGORIES= graphics
+MASTER_SITES= ftp://ftp.uu.net/graphics/png/src/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ache@FreeBSD.org
+
+MAKEFILE= makefile
+
+post-install:
+ ${LDCONFIG} -m ${PREFIX}/lib
+
+.include <bsd.port.mk>
diff --git a/graphics/png/files/md5 b/graphics/png/files/md5
new file mode 100644
index 00000000000..66b78d23b27
--- /dev/null
+++ b/graphics/png/files/md5
@@ -0,0 +1 @@
+MD5 (libpng-0.96.tgz) = 285eac49f334e8c82a7dad41c2850115
diff --git a/graphics/png/patches/patch-aa b/graphics/png/patches/patch-aa
new file mode 100644
index 00000000000..c2d5b37f33a
--- /dev/null
+++ b/graphics/png/patches/patch-aa
@@ -0,0 +1,96 @@
+*** makefile.orig Fri May 16 10:53:30 1997
+--- makefile Tue Jun 24 16:53:47 1997
+***************
+*** 5,33 ****
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+! ZLIBLIB=../zlib
+! ZLIBINC=../zlib
+
+! CC=cc
+! CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=1
+! LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
+
+ #RANLIB=echo
+ RANLIB=ranlib
+
+ # where make install puts libpng.a and png.h
+! prefix=/usr/local
+
+ OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
+ pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
+ pngwtran.o pngmem.o pngerror.o pngpread.o
+
+! all: libpng.a pngtest
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
+
+--- 5,42 ----
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+! #ZLIBLIB=../zlib
+! #ZLIBINC=../zlib
+
+! VER=0.96
+! #CC=cc
+! #CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=1
+! LDFLAGS=-L. -lpng -lz -lm -static
+
+ #RANLIB=echo
+ RANLIB=ranlib
+
+ # where make install puts libpng.a and png.h
+! prefix=${PREFIX}
+
+ OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
+ pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
+ pngwtran.o pngmem.o pngerror.o pngpread.o
+
+! .SUFFIXES: .c .so .o
+!
+! .c.so:
+! ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+!
+! all: libpng.a libpng.so.${VER}
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
++ libpng.so.${VER}: $(OBJS:S/o$/so/g)
++ ${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text -o $@ $(OBJS:S/o$/so/g) -lz
++
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
+
+***************
+*** 37,48 ****
+ install: libpng.a
+ -@mkdir $(prefix)/include
+ -@mkdir $(prefix)/lib
+! cp png.h $(prefix)/include
+! cp pngconf.h $(prefix)/include
+! chmod 644 $(prefix)/include/png.h
+! chmod 644 $(prefix)/include/pngconf.h
+! cp libpng.a $(prefix)/lib
+! chmod 644 $(prefix)/lib/libpng.a
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png
+--- 46,54 ----
+ install: libpng.a
+ -@mkdir $(prefix)/include
+ -@mkdir $(prefix)/lib
+! ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} png.h pngconf.h $(prefix)/include
+! ${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} libpng.a libpng.so.${VER} $(prefix)/lib
+! ranlib $(prefix)/lib/libpng.a
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png
diff --git a/graphics/png/pkg/COMMENT b/graphics/png/pkg/COMMENT
new file mode 100644
index 00000000000..76e53324204
--- /dev/null
+++ b/graphics/png/pkg/COMMENT
@@ -0,0 +1 @@
+Library for manipulating PNG images.
diff --git a/graphics/png/pkg/DESCR b/graphics/png/pkg/DESCR
new file mode 100644
index 00000000000..892185cf4c3
--- /dev/null
+++ b/graphics/png/pkg/DESCR
@@ -0,0 +1,8 @@
+Libpng was written as a companion to the PNG specification, as a
+way to reduce the amount of time and effort it takes to support
+the PNG file format in application programs. Most users will not
+have to modify the library significantly; advanced users may want
+to modify it more. The library was coded for both users. All
+attempts were made to make it as complete as possible, while
+keeping the code easy to understand. Currently, this library
+only supports C. Support for other languages is being considered.
diff --git a/graphics/png/pkg/PLIST b/graphics/png/pkg/PLIST
new file mode 100644
index 00000000000..b3759270e48
--- /dev/null
+++ b/graphics/png/pkg/PLIST
@@ -0,0 +1,6 @@
+include/png.h
+include/pngconf.h
+lib/libpng.a
+@exec ranlib %D/%F
+lib/libpng.so.0.96
+@exec /sbin/ldconfig -m %B