diff options
Diffstat (limited to 'testing/libjpeg-turbo/APKBUILD')
-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" |