diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2012-11-27 10:37:30 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2012-11-27 10:37:38 +0100 |
commit | 9960b8f3d9c36eb3f0b0e94c4ba5b1789d4525d8 (patch) | |
tree | 636a6cc615dc45be906a041c6ccaf41efa7d8720 /testing | |
parent | 6d3da09949acb468cf92cd5c7423b49d310e2ed0 (diff) | |
download | aports-9960b8f3d9c36eb3f0b0e94c4ba5b1789d4525d8.tar.bz2 aports-9960b8f3d9c36eb3f0b0e94c4ba5b1789d4525d8.tar.xz |
testing/libjpeg-turbo: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libjpeg-turbo/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/libjpeg-turbo/APKBUILD b/testing/libjpeg-turbo/APKBUILD new file mode 100644 index 000000000..680331bfe --- /dev/null +++ b/testing/libjpeg-turbo/APKBUILD @@ -0,0 +1,45 @@ +# 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" |