forked from ports/compat-32
28 lines
785 B
Plaintext
28 lines
785 B
Plaintext
|
# 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}
|
||
|
}
|