summaryrefslogtreecommitdiff
path: root/libpng
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-02-23 17:45:15 +0000
committerTilman Sauerbeck <tilman@code-monkey.de>2006-02-23 17:45:15 +0000
commitca456ff60ddc3ca556a5a7fe31151d1559b117d4 (patch)
tree4446af38d35bd3ce7d561740f9a07f34fbfff2f2 /libpng
parentf555d41253441fc32d7e9f0cb46123e1e3a51e76 (diff)
downloadopt-ca456ff60ddc3ca556a5a7fe31151d1559b117d4.tar.gz
opt-ca456ff60ddc3ca556a5a7fe31151d1559b117d4.tar.xz
libjpeg, libtiff, libungif, libpng: moved to opt
Diffstat (limited to 'libpng')
-rw-r--r--libpng/.footprint29
-rw-r--r--libpng/.md5sum2
-rw-r--r--libpng/Pkgfile18
-rw-r--r--libpng/libpng-1.2.8.patch43
4 files changed, 92 insertions, 0 deletions
diff --git a/libpng/.footprint b/libpng/.footprint
new file mode 100644
index 000000000..c7926406b
--- /dev/null
+++ b/libpng/.footprint
@@ -0,0 +1,29 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/libpng-config -> libpng12-config
+-rwxr-xr-x root/root usr/bin/libpng12-config
+drwxr-xr-x root/root usr/include/
+lrwxrwxrwx root/root usr/include/libpng -> libpng12
+drwxr-xr-x root/root usr/include/libpng12/
+-rw-r--r-- root/root usr/include/libpng12/png.h
+-rw-r--r-- root/root usr/include/libpng12/pngconf.h
+lrwxrwxrwx root/root usr/include/png.h -> libpng12/png.h
+lrwxrwxrwx root/root usr/include/pngconf.h -> libpng12/pngconf.h
+drwxr-xr-x root/root usr/lib/
+lrwxrwxrwx root/root usr/lib/libpng.a -> libpng12.a
+lrwxrwxrwx root/root usr/lib/libpng.so -> libpng.so.3
+lrwxrwxrwx root/root usr/lib/libpng.so.3 -> libpng.so.3.1.2.8
+-rwxr-xr-x root/root usr/lib/libpng.so.3.1.2.8
+-rw-r--r-- root/root usr/lib/libpng12.a
+lrwxrwxrwx root/root usr/lib/libpng12.so -> libpng12.so.0
+lrwxrwxrwx root/root usr/lib/libpng12.so.0 -> libpng12.so.0.1.2.8
+-rwxr-xr-x root/root usr/lib/libpng12.so.0.1.2.8
+drwxr-xr-x root/root usr/lib/pkgconfig/
+lrwxrwxrwx root/root usr/lib/pkgconfig/libpng.pc -> libpng12.pc
+-rw-r--r-- root/root usr/lib/pkgconfig/libpng12.pc
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man3/
+-rw-r--r-- root/root usr/man/man3/libpng.3.gz
+-rw-r--r-- root/root usr/man/man3/libpngpf.3.gz
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/png.5.gz
diff --git a/libpng/.md5sum b/libpng/.md5sum
new file mode 100644
index 000000000..634a2a998
--- /dev/null
+++ b/libpng/.md5sum
@@ -0,0 +1,2 @@
+c3ec821096773a0b37ad7b951e5ef053 libpng-1.2.8.patch
+00cea4539bea4bd34cbf8b82ff9589cd libpng-1.2.8.tar.bz2
diff --git a/libpng/Pkgfile b/libpng/Pkgfile
new file mode 100644
index 000000000..25579b1a5
--- /dev/null
+++ b/libpng/Pkgfile
@@ -0,0 +1,18 @@
+# Description: Library of PNG support functions.
+# URL: http://www.libpng.org
+# Maintainer: Per Lidén <per@fukt.bth.se>
+# Depends on: zlib
+
+name=libpng
+version=1.2.8
+release=1
+source=(http://dl.sourceforge.net/libpng/$name-$version.tar.bz2 \
+ $name-$version.patch)
+
+build() {
+ cd $name-$version
+ patch -p1 < ../$name-$version.patch
+ cp scripts/makefile.gcmmx makefile
+ mkdir $PKG/usr
+ make DESTDIR=$PKG prefix=/usr install
+}
diff --git a/libpng/libpng-1.2.8.patch b/libpng/libpng-1.2.8.patch
new file mode 100644
index 000000000..04e0bca38
--- /dev/null
+++ b/libpng/libpng-1.2.8.patch
@@ -0,0 +1,43 @@
+diff -ru libpng-1.2.5/scripts/makefile.gcmmx libpng-1.2.5-new/scripts/makefile.gcmmx
+--- libpng-1.2.5/scripts/makefile.gcmmx 2002-10-03 13:32:34.000000000 +0200
++++ libpng-1.2.5-new/scripts/makefile.gcmmx 2003-02-05 20:54:36.000000000 +0100
+@@ -28,8 +28,8 @@
+ # Where the zlib library and include files are located.
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+-ZLIBLIB=../zlib
+-ZLIBINC=../zlib
++ZLIBLIB=/usr/lib
++ZLIBINC=/usr/include
+
+ ALIGN=
+ # for i386:
+@@ -43,13 +43,13 @@
+
+ # Remove -DPNG_THREAD_UNSAFE_OK if you need thread safety
+ ### for generic gcc:
+-CFLAGS=-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall \
+- -O3 $(ALIGN) -funroll-loops \
+- -fomit-frame-pointer # $(WARNMORE) -g -DPNG_DEBUG=5
++#CFLAGS=-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall \
++# -O3 $(ALIGN) -funroll-loops \
++# -fomit-frame-pointer # $(WARNMORE) -g -DPNG_DEBUG=5
+ ### for gcc 2.95.2 on 686:
+-#CFLAGS=-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall -O3 \
+-# -mcpu=i686 -malign-double -ffast-math -fstrict-aliasing \
+-# $(ALIGN) -funroll-loops -funroll-all-loops -fomit-frame-pointer
++CFLAGS+=-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall -O3 \
++ -malign-double -ffast-math -fstrict-aliasing \
++ $(ALIGN) -funroll-loops -funroll-all-loops -fomit-frame-pointer
+ ### for gcc 2.7.2.3 on 486 and up:
+ #CFLAGS=-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall -O3 \
+ # -m486 -malign-double -ffast-math \
+@@ -131,7 +131,7 @@
+
+ libpng.so.3.$(PNGMIN): $(OBJSDLL)
+ $(CC) -shared -Wl,-soname,libpng.so.3 \
+- -o libpng.so.3.$(PNGMIN) \
++ -L$(ZLIBLIB) -lm -lz -o libpng.so.3.$(PNGMIN) \
+ $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so

Generated by cgit