aboutsummaryrefslogtreecommitdiffstats
path: root/community/openal-soft/APKBUILD
blob: d2df2cf753bd0e70aca60e294915315a6f4e1614 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openal-soft
pkgver=1.18.0
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"
options="!check"

builddir="${srcdir}/${pkgname}-${pkgver}"

_builddir="${srcdir}/build"
prepare() {
	default_prepare
	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" \
		-DCMAKE_INSTALL_LIBDIR="lib" \
		$_cpuext_neon \
		"$builddir"
	make
}

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

sha512sums="84af817f85ef6e6c8de20126a5163bd2660ec8d294a3ece7514898caf34ee0640a87a90f350ea9769765ce5cbdbfed7bf38be940950ba4eef19cc24900f218b2  openal-soft-1.18.0.tar.bz2"