aboutsummaryrefslogtreecommitdiffstats
path: root/community/openal-soft/APKBUILD
blob: b6e065ceae14c39433017b140bf5c9e5897cf388 (plain) (blame)
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
49
50
51
52
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openal-soft
pkgver=1.17.2
pkgrel=0
pkgdesc="software implementation of OpenAL API"
url="http://kcat.strangesoft.net/openal.html"
arch="all"
license="LGPL"
depends=""
depends_dev="alsa-lib-dev"
makedepends="$depends_dev linux-headers cmake"
install=""
subpackages="$pkgname-dev"
source="http://kcat.strangesoft.net/openal-releases/${pkgname}-${pkgver}.tar.bz2"

_srcdir="${srcdir}/${pkgname}-${pkgver}"
_builddir="${srcdir}/build"
prepare() {
	local i

	cd "$_srcdir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	mkdir -p "$_builddir"
}

build() {
	local _cpuext_neon=
	cd "$_builddir"
	case "$CARCH" in
		armhf) _cpuext_neon=-DALSOFT_CPUEXT_NEON=OFF;;
	esac
	cmake -DCMAKE_INSTALL_PREFIX="/usr" \
		$_cpuext_neon \
		"$_srcdir" \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="1764e0d8fec499589b47ebc724e0913d  openal-soft-1.17.2.tar.bz2"
sha256sums="a341f8542f1f0b8c65241a17da13d073f18ec06658e1a1606a8ecc8bbc2b3314  openal-soft-1.17.2.tar.bz2"
sha512sums="50c20cd3ddada55d91643a79c2894d5a14315d5fc1ed8e870e3d8d3f410e8b7d8da29b838226e7fce37fbeca719ff919b51806f72e4cd529a18fbe8bd68860e3  openal-soft-1.17.2.tar.bz2"