diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-24 09:30:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-24 09:30:55 +0000 |
commit | 1102864f25df4572eb4835f14baa473f87f4305a (patch) | |
tree | cbbfb96fd460410c2a996ab8e262750f7f8c6fa7 /testing/openjpeg | |
parent | d6c768bfd0dfa87cc0b63cfcd2fe2c1b0c8d98b6 (diff) | |
download | aports-1102864f25df4572eb4835f14baa473f87f4305a.tar.bz2 aports-1102864f25df4572eb4835f14baa473f87f4305a.tar.xz |
testing/openjpeg: upgrade to 2.1.0
Diffstat (limited to 'testing/openjpeg')
-rw-r--r-- | testing/openjpeg/APKBUILD | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/testing/openjpeg/APKBUILD b/testing/openjpeg/APKBUILD index a1c34ff9fa..ec3c44d91a 100644 --- a/testing/openjpeg/APKBUILD +++ b/testing/openjpeg/APKBUILD @@ -1,23 +1,23 @@ # Contributor: William Pitcock <nenolod@dereferenced.org> # Maintainer: pkgname=openjpeg -pkgver=1.5.1 -pkgrel=1 +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="pkgconfig" -makedepends="$depends_dev libpng-dev tiff-dev lcms-dev doxygen" +depends_dev="" +makedepends="$depends_dev libpng-dev tiff-dev lcms-dev doxygen cmake" install="" -subpackages="$pkgname-dev" -source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz" +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 - mkdir "$_builddir" cd "$_builddir" for i in $source; do case $i in @@ -28,15 +28,13 @@ prepare() { build() { cd "$_builddir" - ./configure \ - --prefix=/usr \ - --mandir=/usr/share/man \ - --disable-static \ - --enable-mj2 \ - --enable-jpwl \ - --enable-jpip \ + 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 LDFLAGS="-lm" || return 1 + make || return 1 } package() { @@ -45,4 +43,12 @@ package() { rm -f "$pkgdir"/usr/lib/*.la } -md5sums="b5f74cec2688fb918331bb014061be6f openjpeg-1.5.1.tar.gz" +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" |