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