2012-11-21 18:12:43 +01:00
|
|
|
# Description: Library of PNG support functions.
|
2017-03-14 04:01:28 +01:00
|
|
|
# URL: https://www.libpng.org
|
2013-02-01 15:54:23 +01:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2012-11-21 18:12:43 +01:00
|
|
|
# Depends on: zlib-32 libpng
|
|
|
|
|
|
|
|
name=libpng-32
|
2017-03-19 09:42:40 +01:00
|
|
|
version=1.6.29
|
|
|
|
_base=${version:0:3}
|
|
|
|
_base=${_base/./}
|
2012-11-21 18:12:43 +01:00
|
|
|
release=1
|
2017-03-19 09:42:40 +01:00
|
|
|
source=(https://downloads.sourceforge.net/project/${name%-*}/${name%-*}$_base/$version/${name%-*}-$version.tar.xz
|
2016-08-08 12:57:58 +02:00
|
|
|
libpng-apng.patch)
|
2012-11-21 18:12:43 +01:00
|
|
|
|
|
|
|
build() {
|
2017-03-14 04:01:28 +01:00
|
|
|
cd ${name%-*}-$version
|
2012-11-21 18:12:43 +01:00
|
|
|
|
2016-09-04 09:54:45 +02:00
|
|
|
patch -p0 -i $SRC/libpng-apng.patch
|
2016-08-08 12:57:58 +02:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib32
|
2014-03-19 09:08:40 +01:00
|
|
|
|
2016-06-17 13:20:20 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
rm -r $PKG/usr/{bin,include,share/man}
|
2012-11-21 18:12:43 +01:00
|
|
|
}
|