2017-01-16 19:42:42 +01:00
|
|
|
# Template file for 'libimagequant'
|
|
|
|
pkgname=libimagequant
|
2017-08-09 12:14:36 +02:00
|
|
|
version=2.10.2
|
2017-01-16 19:42:42 +01:00
|
|
|
revision=1
|
|
|
|
build_style=configure
|
|
|
|
configure_args="--with-openmp"
|
|
|
|
make_build_target="static shared"
|
|
|
|
makedepends="libgomp-devel"
|
|
|
|
short_desc="Palette quantization library"
|
2017-07-10 12:56:01 +02:00
|
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
2017-01-16 19:42:42 +01:00
|
|
|
homepage="https://pngquant.org/lib/"
|
|
|
|
license="GPL-3"
|
|
|
|
distfiles="https://github.com/ImageOptim/libimagequant/archive/${version}.tar.gz"
|
2017-08-09 12:14:36 +02:00
|
|
|
checksum=c7a70caa87a72095f44d5b0e53737a1cb42c0b12ec599b42982224816f45abeb
|
2017-01-16 19:42:42 +01: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
|
|
|
|
}
|
|
|
|
}
|