2012-11-21 11:12:43 -06:00
|
|
|
# Description: Library of PNG support functions.
|
2020-06-24 16:35:44 -05:00
|
|
|
# URL: http://www.libpng.org/pub/png/libpng.html
|
2013-02-02 01:54:23 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2019-08-27 21:48:19 +10:00
|
|
|
# Depends on: libpng zlib-32
|
2012-11-21 11:12:43 -06:00
|
|
|
|
|
|
|
name=libpng-32
|
2023-06-25 22:50:01 +02:00
|
|
|
version=1.6.40
|
2017-03-19 19:42:40 +11:00
|
|
|
_base=${version:0:3}
|
|
|
|
_base=${_base/./}
|
2012-11-21 11:12:43 -06:00
|
|
|
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)
|
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
|
|
|
|
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}
|
2012-11-21 11:12:43 -06:00
|
|
|
}
|