void-packages/srcpkgs/libjpeg-turbo/template

55 lines
1.4 KiB
Text
Raw Normal View History

2011-10-15 09:47:16 +00:00
# Template build file for 'libjpeg-turbo'.
pkgname=libjpeg-turbo
2012-07-04 07:31:37 +00:00
version=1.2.1
2013-01-08 20:58:23 +00:00
revision=2
build_style=gnu-configure
2013-01-08 20:58:23 +00:00
configure_args="--disable-static --with-jpeg8"
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
hostmakedepends="nasm"
2013-03-20 07:03:42 +00:00
fi
2011-10-15 09:47:16 +00:00
short_desc="Derivative of libjpeg which uses SIMD instructions"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-02-12 07:19:01 +00:00
license="BSD"
2012-07-04 07:31:37 +00:00
homepage="http://libjpeg-turbo.virtualgl.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=cb3323f054a02cedad193bd0ca418d46934447f995d19e678ea64f78e4903770
2011-10-15 09:47:16 +00:00
post_install() {
vinstall jpegint.h 644 usr/include
2012-02-12 07:19:01 +00:00
vinstall README-turbo.txt 644 usr/share/licenses/${pkgname}
2011-10-15 09:47:16 +00:00
2012-02-12 07:19:01 +00:00
rm -f ${DESTDIR}/usr/bin/tjbench
2011-10-15 09:47:16 +00:00
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="${short_desc} -- development files"
pkg_install() {
vmove usr/include
}
}
libjpeg-turbo-tools_package() {
provides="jpeg-tools-8"
replaces="jpeg-tools>=0"
short_desc="${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 usr
}
}