aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openjpeg1/APKBUILD
blob: 9cfedcf241c5164823557fc6118718cedbea6dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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"