Commit 9960b8f3 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

testing/libjpeg-turbo: new aport

parent 6d3da099
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libjpeg-turbo
pkgver=1.2.1
pkgrel=0
pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
url="http://libjpeg-turbo.virtualgl.org/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev nasm"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-$pkgver.tar.gz"
_builddir="$srcdir"/libjpeg-turbo-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="f61e60ff01381ece4d2fe65eeb52669e libjpeg-turbo-1.2.1.tar.gz"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment