diff options
Diffstat (limited to 'libpng12-32/Pkgfile')
-rw-r--r-- | libpng12-32/Pkgfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libpng12-32/Pkgfile b/libpng12-32/Pkgfile new file mode 100644 index 00000000..20e290fc --- /dev/null +++ b/libpng12-32/Pkgfile @@ -0,0 +1,27 @@ +# Description: Library of PNG support functions with APNG support. +# URL: http://www.libpng.org/pub/png/libpng.html +# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu +# Depends on: libpng12 zlib-32 + +name=libpng12-32 +version=1.2.59 +release=1 +source=(https://sourceforge.net/projects/libpng/files/libpng-$version.tar.xz + https://sourceforge.net/projects/libpng-apng/files/libpng12/$version/libpng-$version-apng.patch.gz) + +build() { + cd libpng-$version + gunzip $SRC/libpng-$version-apng.patch.gz + patch -Np1 -i $SRC/libpng-$version-apng.patch + libtoolize --force --copy + aclocal + autoconf + automake --add-missing + + ./configure --prefix=/usr \ + --libdir=/usr/lib32 + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/{bin,include,lib32/{libpng.{la,a,so},pkgconfig},share} +} |