diff options
Diffstat (limited to 'testing/openjpeg1/APKBUILD')
-rw-r--r-- | testing/openjpeg1/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/openjpeg1/APKBUILD b/testing/openjpeg1/APKBUILD new file mode 100644 index 0000000000..9cfedcf241 --- /dev/null +++ b/testing/openjpeg1/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=openjpeg1 +pkgver=1.5.2 +pkgrel=0 +pkgdesc="An open source JPEG 2000 codec" +url="http://www.openjpeg.org" +arch="all" +license="BSD" +depends="" +depends_dev="tiff-dev libpng-dev lcms2-dev" +makedepends="$depends_dev automake autoconf libtool" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://downloads.sourceforge.net/openjpeg.mirror/openjpeg-$pkgver.tar.gz" + +_builddir="$srcdir"/openjpeg-$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" + ./bootstrap.sh || return 1 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-shared \ + --disable-static \ + --disable-silent-rules + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="c41772c30fb1c272358b3707233134a1 openjpeg-1.5.2.tar.gz" +sha256sums="15df7b194a5d8dba0052cd21c17a4dc761149a770a907d73fffb972078c28a87 openjpeg-1.5.2.tar.gz" +sha512sums="b945cf4f8b5e3227a0c07120c94b0ed5bf30c901de73059ee1d47975f46744fb62bbe84cdb2917c6431128f400020874eb07160af870b5448ced897998b08862 openjpeg-1.5.2.tar.gz" |