aboutsummaryrefslogtreecommitdiffstats
path: root/community/ilmbase/APKBUILD
blob: 430d9e2fd49be0b347b3cdb0126075142dae5909 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Mark Riedesel <mark+alpine@klowner.com>
pkgname=ilmbase
pkgver=2.2.0
pkgrel=3
pkgdesc="Base libraries from ILM for OpenEXR"
url="http://www.openexr.com"
arch="all"
license="BSD"
makedepends="bash linux-headers"
subpackages="$pkgname-dev"
source="http://download.savannah.nongnu.org/releases/openexr/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	[ "$CARCH" != x86 ] || return 0
	cd "$builddir"
	make check
}
package() {
	make DESTDIR="$pkgdir" \
		-C "$builddir" install
}

sha512sums="0bbad14ed2bd286dff3987b16ef8631470211da54f822cb3e29b7931807216845ded81c9bf41fd2d22a8b362e8b9904a5450f61f5a242e460083e86b846513f1  ilmbase-2.2.0.tar.gz"