2017-01-16 18:42:42 +00:00
|
|
|
# Template file for 'libimagequant'
|
|
|
|
pkgname=libimagequant
|
2017-04-06 23:59:49 +00:00
|
|
|
version=2.9.1
|
2017-01-16 18:42:42 +00:00
|
|
|
revision=1
|
|
|
|
build_style=configure
|
|
|
|
configure_args="--with-openmp"
|
|
|
|
make_build_target="static shared"
|
|
|
|
makedepends="libgomp-devel"
|
|
|
|
short_desc="Palette quantization library"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
homepage="https://pngquant.org/lib/"
|
|
|
|
license="GPL-3"
|
|
|
|
distfiles="https://github.com/ImageOptim/libimagequant/archive/${version}.tar.gz"
|
2017-04-06 23:59:49 +00:00
|
|
|
checksum=34669bdc8c86fbc2e52727fd4addd1fdb67e4e2bb6db74cdcd901715d2de3690
|
2017-01-16 18:42:42 +00:00
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
x86_64*) configure_args+=" --enable-sse";;
|
|
|
|
*) configure_args+=" --disable-sse";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vinstall libimagequant.h 644 usr/include
|
|
|
|
vinstall libimagequant.a 644 usr/lib
|
|
|
|
vinstall libimagequant.so.0 755 usr/lib
|
|
|
|
ln -sf libimagequant.so.0 ${DESTDIR}/usr/lib/libimagequant.so
|
|
|
|
}
|
|
|
|
|
|
|
|
libimagequant-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
}
|
|
|
|
}
|