smlinux/base/libpng/libpng.SMBuild

34 lines
724 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libpng
version=1.6.37
build=1sml
homepage="http://www.libpng.org/pub/png/libpng.html"
download="https://download.sourceforge.net/libpng/libpng-$version.tar.xz"
desc="Portable Network Graphics library"
requires="zlib"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix=/usr \
--disable-static
make
make install DESTDIR=$pkg
cp LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
fb2f6d82ea4ae1206d6857fb471b71c56aa84a64a6943174b6da96cbe8fa38e2580401647981d9b1488a6fa8d43b661db11995fdacdab01f21911e40cb343ed0 libpng-1.6.37.tar.lz
"