55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
# Template build file for 'libjpeg-turbo'.
|
|
pkgname=libjpeg-turbo
|
|
version=1.3.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --with-jpeg8"
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
hostmakedepends="nasm"
|
|
fi
|
|
short_desc="Derivative of libjpeg which uses SIMD instructions"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="BSD"
|
|
homepage="http://libjpeg-turbo.virtualgl.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=2657008cfc08aadbaca065bd9f8964b8a2c0abd03e73da5b5f09c1216be31234
|
|
|
|
post_install() {
|
|
vinstall jpegint.h 644 usr/include
|
|
vinstall README-turbo.txt 644 usr/share/licenses/${pkgname}
|
|
|
|
rm -f ${DESTDIR}/usr/bin/tjbench
|
|
rm -f ${DESTDIR}/usr/bin/jpegut
|
|
rm -f ${DESTDIR}/usr/bin/jpgtest
|
|
rm -f ${DESTDIR}/usr/lib/libturbojpeg*
|
|
rm -f ${DESTDIR}/usr/include/turbojpeg.h
|
|
}
|
|
|
|
libjpeg-turbo-devel_package() {
|
|
depends="libjpeg-turbo>=${version}"
|
|
provides="jpeg-devel-8"
|
|
replaces="jpeg-devel>=0"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
}
|
|
}
|
|
|
|
libjpeg-turbo-tools_package() {
|
|
provides="jpeg-tools-8"
|
|
replaces="jpeg-tools>=0"
|
|
short_desc+=" - bundled tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/man
|
|
}
|
|
}
|
|
|
|
libjpeg-turbo_package() {
|
|
provides="jpeg-8"
|
|
replaces="jpeg>=0"
|
|
pkg_install() {
|
|
vmove all
|
|
}
|
|
}
|