aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openjpeg
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-03-25 03:01:35 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2011-03-25 03:01:35 -0500
commite15c3aebf9a52f32aa478b43d03950f0e708e597 (patch)
tree85499de519cf83b10d95507bd774155c0e7ce11d /testing/openjpeg
parent191915a635601bb9b5875fc23c0c3a7d75c8f8b3 (diff)
downloadaports-e15c3aebf9a52f32aa478b43d03950f0e708e597.tar.bz2
aports-e15c3aebf9a52f32aa478b43d03950f0e708e597.tar.xz
testing/openjpeg: new aport
Diffstat (limited to 'testing/openjpeg')
-rw-r--r--testing/openjpeg/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/openjpeg/APKBUILD b/testing/openjpeg/APKBUILD
new file mode 100644
index 0000000000..e675315278
--- /dev/null
+++ b/testing/openjpeg/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=openjpeg
+pkgver=1.3
+_pkgver="v${pkgver%.*}_${pkgver#*.}"
+pkgrel=0
+pkgdesc="open-source implementation of JPEG2000 image codec"
+url="http://www.openjpeg.org/"
+arch="all"
+license="BSD"
+depends=
+depends_dev=
+makedepends="$depends_dev cmake"
+install=""
+subpackages="$pkgname-dev"
+source="http://openjpeg.googlecode.com/files/openjpeg_${_pkgver}.tar.gz"
+
+_builddir="${srcdir}/build"
+_srcdir="${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"
+ cmake -DCMAKE_INSTALL_DIR=/usr "$_srcdir" || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="f9a3ccfa91ac34b589e9bf7577ce8ff9 openjpeg_v1_3.tar.gz"