summaryrefslogtreecommitdiffstats
path: root/testing/openjpeg/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-03-25 18:19:56 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2011-03-25 18:19:56 +0000
commitc73a4e1a4d50a9ff1fb4fe3808ffa45e11dbdda6 (patch)
tree757a9482f91b80bc2551f1d794a052b8f901569e /testing/openjpeg/APKBUILD
parent372b345f3b0740be075c4fa41c4bf31540132521 (diff)
parent2d2e02b94b10ee5b4c2afeb69667015f1fc9015f (diff)
downloadaports-c73a4e1a4d50a9ff1fb4fe3808ffa45e11dbdda6.tar.bz2
aports-c73a4e1a4d50a9ff1fb4fe3808ffa45e11dbdda6.tar.xz
Merge git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing/openjpeg/APKBUILD')
-rw-r--r--testing/openjpeg/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/openjpeg/APKBUILD b/testing/openjpeg/APKBUILD
new file mode 100644
index 000000000..5f1c0ae52
--- /dev/null
+++ b/testing/openjpeg/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=openjpeg
+pkgver=1.3
+_pkgver="v${pkgver%.*}_${pkgver#*.}"
+pkgrel=1
+pkgdesc="open-source implementation of JPEG2000 image codec"
+url="http://www.openjpeg.org/"
+arch="all"
+license="BSD"
+depends=
+depends_dev=
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://openjpeg.googlecode.com/files/openjpeg_${_pkgver}.tar.gz"
+
+_builddir="${srcdir}/OpenJPEG_${_pkgver}"
+prepare() {
+ local i
+ mkdir "$_builddir"
+ 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"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="f9a3ccfa91ac34b589e9bf7577ce8ff9 openjpeg_v1_3.tar.gz"