48 lines
1.2 KiB
Text
48 lines
1.2 KiB
Text
# Template build file for 'libjpeg-turbo'.
|
|
pkgname=libjpeg-turbo
|
|
version=1.3.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="nasm"
|
|
configure_args="--disable-static --with-jpeg8"
|
|
provides="jpeg-8_1"
|
|
replaces="jpeg>=0"
|
|
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=c132907417ddc40ed552fe53d6b91d5fecbb14a356a60ddc7ea50d6be9666fb9
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} docdir=/usr/share/doc/${pkgname} \
|
|
exampledir=/usr/share/doc/${pkgname} 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
|
|
}
|
|
|
|
libjpeg-turbo-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
provides="jpeg-devel-8_1"
|
|
replaces="jpeg-devel>=0"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libjpeg-turbo-tools_package() {
|
|
provides="jpeg-tools-8_1"
|
|
replaces="jpeg-tools>=0"
|
|
short_desc+=" - bundled tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/man
|
|
}
|
|
}
|