forked from ports/contrib
27 lines
740 B
Plaintext
27 lines
740 B
Plaintext
|
# Description: Library of PNG support functions with APNG support.
|
||
|
# URL: http://www.libpng.org/pub/png/libpng.html
|
||
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||
|
# Depends on:
|
||
|
|
||
|
name=libpng12
|
||
|
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
|
||
|
make
|
||
|
make DESTDIR=$PKG install
|
||
|
|
||
|
rm -rf $PKG/usr/{bin,include/*.h,lib/{libpng.{la,a,so},pkgconfig},share}
|
||
|
}
|