From 69835c792cbd0713a9af92e15ca088192b763363 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 28 Nov 2012 09:59:00 +0000 Subject: main/libjpeg-turbo: move from testing --- main/libjpeg-turbo/APKBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 main/libjpeg-turbo/APKBUILD (limited to 'main/libjpeg-turbo') diff --git a/main/libjpeg-turbo/APKBUILD b/main/libjpeg-turbo/APKBUILD new file mode 100644 index 0000000000..ba53c9b5a9 --- /dev/null +++ b/main/libjpeg-turbo/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Carlo Landmeter +# Maintainer: Natanael Copa +pkgname=libjpeg-turbo +pkgver=1.2.1 +pkgrel=1 +pkgdesc="accelerated baseline JPEG compression and decompression library" +url="http://libjpeg-turbo.virtualgl.org/" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="$depends_dev nasm" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-utils" +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 +} + +utils() { + pkgdesc="Utilities for manipulating JPEG images" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +md5sums="f61e60ff01381ece4d2fe65eeb52669e libjpeg-turbo-1.2.1.tar.gz" -- cgit v1.2.3