aboutsummaryrefslogblamecommitdiffstats
path: root/community/openal-soft/APKBUILD
blob: ca028769eeabe762af7eca7c5f63af5022f6a73e (plain) (tree)
1
2
3
4
5
6
7
8
9
               
                                                          
                   
             

                                               
                                              

              
                          
                                              
                          
                                                                                 


                                         
 

                           
                       



                             
                           
                       



                                                              
                                              
                               

                           



                       
                                      

 
                                                                                                                                                                         
# Contributor: 
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=openal-soft
pkgver=1.19.1
pkgrel=0
pkgdesc="software implementation of OpenAL API"
url="https://kcat.strangesoft.net/openal.html"
arch="all"
license="LGPL"
depends_dev="alsa-lib-dev"
makedepends="$depends_dev linux-headers cmake"
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="356a3f12bbe284bfac71f4f2a9f83d084083a832012222e73743042ac27812cf051c12b0ddcf53c010ff77e44ae2e9033cea9b9324d316a22a59a154307a64a4  openal-soft-1.19.1.tar.bz2"