28 lines
603 B
Plaintext
Raw Normal View History

# Description: Library of PNG support functions.
2017-03-14 14:01:28 +11:00
# URL: https://www.libpng.org
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: zlib-32 libpng
name=libpng-32
2019-07-22 23:33:36 +10:00
version=1.6.37
2017-03-19 19:42:40 +11:00
_base=${version:0:3}
_base=${_base/./}
release=1
2017-03-19 19:42:40 +11:00
source=(https://downloads.sourceforge.net/project/${name%-*}/${name%-*}$_base/$version/${name%-*}-$version.tar.xz
2016-08-08 20:57:58 +10:00
libpng-apng.patch)
build() {
2017-03-14 14:01:28 +11:00
cd ${name%-*}-$version
2017-09-30 18:21:45 +10:00
patch -p1 -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}
}