37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template file for 'libimagequant'
|
|
pkgname=libimagequant
|
|
version=2.14.1
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="--with-openmp"
|
|
make_build_target="static shared"
|
|
makedepends="libgomp-devel"
|
|
short_desc="Palette quantization library"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://pngquant.org/lib/"
|
|
distfiles="https://github.com/ImageOptim/libimagequant/archive/${version}.tar.gz"
|
|
checksum=b5fa27da1f3cf3e8255dd02778bb6a51dc71ce9f99a4fc930ea69b83200a7c74
|
|
|
|
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"
|
|
}
|
|
}
|