aboutsummaryrefslogtreecommitdiffstats
path: root/main/libjpeg-turbo
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-11-28 09:59:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-11-28 09:59:26 +0000
commit69835c792cbd0713a9af92e15ca088192b763363 (patch)
treebcd16d9dff007a1ef1be27525e15f87555729f89 /main/libjpeg-turbo
parent1962a987956263036a3e9b9c8d9cd76adab58baf (diff)
downloadaports-69835c792cbd0713a9af92e15ca088192b763363.tar.bz2
aports-69835c792cbd0713a9af92e15ca088192b763363.tar.xz
main/libjpeg-turbo: move from testing
Diffstat (limited to 'main/libjpeg-turbo')
-rw-r--r--main/libjpeg-turbo/APKBUILD51
1 files changed, 51 insertions, 0 deletions
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 <clandmeter@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+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"