diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-24 10:07:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-24 13:02:20 +0000 |
commit | 6133dd9436e3d9a980d3884e8a4b60dc3b2f0c16 (patch) | |
tree | 17624db962c9e123dd23974078919c60a65f04c0 /main/openjpeg | |
parent | c8a18b22ab119ae31ac78340023a8c8ac380c4bb (diff) | |
download | aports-6133dd9436e3d9a980d3884e8a4b60dc3b2f0c16.tar.bz2 aports-6133dd9436e3d9a980d3884e8a4b60dc3b2f0c16.tar.xz |
main/openjpeg: move from testing
Diffstat (limited to 'main/openjpeg')
-rw-r--r-- | main/openjpeg/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/main/openjpeg/APKBUILD b/main/openjpeg/APKBUILD new file mode 100644 index 0000000000..ec3c44d91a --- /dev/null +++ b/main/openjpeg/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: +pkgname=openjpeg +pkgver=2.1.0 +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 libpng-dev tiff-dev lcms-dev doxygen cmake" +install="" +subpackages="$pkgname-dev $pkgname-tools" +source="http://downloads.sourceforge.net/project/openjpeg.mirror/$pkgver/openjpeg-$pkgver.tar.gz + " + +_builddir="${srcdir}/$pkgname-$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" + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DOPENJPEG_INSTALL_LIB_DIR=lib \ + -DOPENJPEG_INSTALL_PACKAGE_DIR=/usr/lib/cmake/$pkgname-${pkgver%.*} \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +tools() { + pkgdesc="$pkgdesc - tools" + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +md5sums="f6419fcc233df84f9a81eb36633c6db6 openjpeg-2.1.0.tar.gz" +sha256sums="1232bb814fd88d8ed314c94f0bfebb03de8559583a33abbe8c64ef3fc0a8ff03 openjpeg-2.1.0.tar.gz" +sha512sums="3da84d7828a82c738f6ea5fe776c989283ba257cc6884aebfc090cee7e33c88471dee1a93f4a87a300b11f43b98f6624b838171f06227add24afcb1d57208df1 openjpeg-2.1.0.tar.gz" |