void-packages/srcpkgs/libpng/template

43 lines
1.0 KiB
Plaintext

# Template build file for 'libpng'.
pkgname=libpng
version=1.6.8
revision=2
build_style=gnu-configure
configure_args="ac_cv_func_strtod=yes"
makedepends="zlib-devel"
short_desc="Library for manipulating PNG images"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.libpng.org/pub/png/libpng.html"
license="zlib"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=24f73d8b5e1d74a9482c81b65c3f93f96c7da7ed0417b8a948a75d2d99133081
if [ "$XBPS_TARGET_MACHINE" = "armv6l" ]; then
configure_args+=" --disable-arm-neon"
fi
post_install() {
rm -f ${DESTDIR}/usr/lib/*.la
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}
libpng-devel_package() {
depends="zlib-devel libpng>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/bin/libpng*-config"
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}
libpng-progs_package() {
short_desc+=" - utilities"
pkg_install() {
vmove usr/bin
}
}