41 lines
1010 B
Bash
41 lines
1010 B
Bash
# Template file for 'libpng'
|
|
pkgname=libpng
|
|
version=1.6.43
|
|
revision=1
|
|
build_style=gnu-configure
|
|
makedepends="zlib-devel"
|
|
short_desc="Library for manipulating PNG images"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="Libpng"
|
|
homepage="http://www.libpng.org/pub/png/libpng.html"
|
|
changelog="https://github.com/pnggroup/libpng/blob/master/CHANGES"
|
|
distfiles="${SOURCEFORGE_SITE}/libpng/libpng-${version}.tar.xz"
|
|
checksum=6a5ca0652392a2d7c9db2ae5b40210843c0bbc081cbd410825ab00cc59f14a6c
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*|aarch64*) configure_args="--enable-arm-neon=no";;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libpng-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${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
|
|
}
|
|
}
|