void-packages/srcpkgs/libjpeg-turbo/template

30 lines
952 B
Plaintext

# Template build file for 'libjpeg-turbo'.
pkgname=libjpeg-turbo
version=1.2.1
revision=2
provides="jpeg-8"
replaces="jpeg>=0"
subpackages="${pkgname}-devel ${pkgname}-tools"
build_style=gnu-configure
configure_args="--disable-static --with-jpeg8"
if [ "$XBPS_MACHINE" = "i686" -o "$XBPS_MACHINE" = "x86_64" ]; then
makedepends="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=cb3323f054a02cedad193bd0ca418d46934447f995d19e678ea64f78e4903770
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
}