aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/png
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/png')
-rw-r--r--graphics/png/Makefile21
-rw-r--r--graphics/png/distinfo1
-rw-r--r--graphics/png/files/patch-aa108
-rw-r--r--graphics/png/pkg-comment1
-rw-r--r--graphics/png/pkg-descr8
-rw-r--r--graphics/png/pkg-plist5
6 files changed, 144 insertions, 0 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile
new file mode 100644
index 000000000000..4959206f6b4d
--- /dev/null
+++ b/graphics/png/Makefile
@@ -0,0 +1,21 @@
+# New ports collection makefile for: PNG images library
+# Version required: 0.81
+# Date created: 5 Dec 1995
+# Whom: ache
+#
+# $Id: Makefile,v 1.5 1995/11/26 11:29:09 asami Exp $
+#
+
+DISTNAME= libpng-0.81
+PKGNAME= png-0.81
+CATEGORIES+= devel
+MASTER_SITES= ftp://ftp.uu.net/graphics/png/src/
+LIB_DEPENDS= z\\.0\\.95:${PORTSDIR}/devel/libz
+MAKEFILE= makefile
+
+MAINTAINER= ache@FreeBSD.org
+
+post-install:
+ ldconfig -m ${PREFIX}/lib
+
+.include <bsd.port.mk>
diff --git a/graphics/png/distinfo b/graphics/png/distinfo
new file mode 100644
index 000000000000..4e626ed3c936
--- /dev/null
+++ b/graphics/png/distinfo
@@ -0,0 +1 @@
+MD5 (libpng-0.81.tar.gz) = e3487938a4f84d0993c7df416ccd45bb
diff --git a/graphics/png/files/patch-aa b/graphics/png/files/patch-aa
new file mode 100644
index 000000000000..a81a6cbf20dd
--- /dev/null
+++ b/graphics/png/files/patch-aa
@@ -0,0 +1,108 @@
+*** makefile.old Fri Aug 25 08:09:40 1995
+--- makefile Tue Dec 5 05:26:18 1995
+***************
+*** 2,27 ****
+ # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
+ # For conditions of distribution and use, see copyright notice in png.h
+
+! CC=cc
+! CFLAGS=-I../zlib -O
+! LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
+
+ #RANLIB=ranlib
+- RANLIB=echo
+
+ # where make install puts libpng.a and png.h
+! prefix=/usr/local
+
+ OBJS = png.o pngrcb.o pngrutil.o pngtrans.o pngwutil.o \
+ pngread.o pngio.o pngwrite.o pngrtran.o pngwtran.o \
+ pngmem.o pngerror.o
+
+! all: libpng.a pngtest
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
+
+--- 2,34 ----
+ # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
+ # For conditions of distribution and use, see copyright notice in png.h
+
+! #CC=cc
+! CFLAGS+=-I/usr/local/include
+! LDFLAGS=-L. -L/usr/local/lib -lpng -lz -lm -static
+
+ #RANLIB=ranlib
+
+ # where make install puts libpng.a and png.h
+! prefix=${PREFIX}
+
+ OBJS = png.o pngrcb.o pngrutil.o pngtrans.o pngwutil.o \
+ pngread.o pngio.o pngwrite.o pngrtran.o pngwtran.o \
+ pngmem.o pngerror.o
+
+! .SUFFIXES: .c .so .o
+!
+! .c.so:
+! ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+!
+! all: libpng.a libpng.so.0.81
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
++ libpng.so.0.81: $(OBJS:S/o$/so/g)
++ ld -Bshareable -o $@ $(OBJS:S/o$/so/g)
++
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
+
+***************
+*** 31,42 ****
+ 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
+--- 38,46 ----
+ 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.0.81 $(prefix)/lib
+! ranlib $(prefix)/lib/libpng.a
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png
+***************
+*** 56,58 ****
+--- 60,76 ----
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
++
++ png.so: png.h pngconf.h
++ pngerror.so: png.h pngconf.h
++ pngio.so: png.h pngconf.h
++ pngmem.so: png.h pngconf.h
++ pngrcb.so: png.h pngconf.h
++ pngread.so: png.h pngconf.h
++ pngrtran.so: png.h pngconf.h
++ pngrutil.so: png.h pngconf.h
++ pngtest.so: png.h pngconf.h
++ pngtrans.so: png.h pngconf.h
++ pngwrite.so: png.h pngconf.h
++ pngwtran.so: png.h pngconf.h
++ pngwutil.so: png.h pngconf.h
diff --git a/graphics/png/pkg-comment b/graphics/png/pkg-comment
new file mode 100644
index 000000000000..804bc081042e
--- /dev/null
+++ b/graphics/png/pkg-comment
@@ -0,0 +1 @@
+libpng - manipulate PNG images library
diff --git a/graphics/png/pkg-descr b/graphics/png/pkg-descr
new file mode 100644
index 000000000000..892185cf4c30
--- /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 000000000000..39417943f8db
--- /dev/null
+++ b/graphics/png/pkg-plist
@@ -0,0 +1,5 @@
+@cwd /usr/local
+include/png.h
+include/pngconf.h
+lib/libpng.a
+lib/libpng.so.0.81