Add openal package
This commit is contained in:
37
mingw-w64-openal/PKGBUILD
Normal file
37
mingw-w64-openal/PKGBUILD
Normal file
@@ -0,0 +1,37 @@
|
||||
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
||||
|
||||
_realname=openal
|
||||
_mingw_suff=mingw-w64-${CARCH}
|
||||
pkgname="${_mingw_suff}-${_realname}"
|
||||
pkgver=1.15.1
|
||||
pkgrel=1
|
||||
pkgdesc="OpenAL audio library for use with opengl (mingw-w64)"
|
||||
arch=('any')
|
||||
url="http://connect.creativelabs.com/openal/"
|
||||
license=('GPL2')
|
||||
depends=("${_mingw_suff}-winpthreads")
|
||||
makedepends=("${_mingw_suff}-gcc" "${_mingw_suff}-cmake")
|
||||
options=('strip' 'staticlibs')
|
||||
source=(http://kcat.strangesoft.net/openal-releases/openal-soft-$pkgver.tar.bz2)
|
||||
md5sums=('ea83dec3b9655a27d28e7bc7cae9cd71')
|
||||
|
||||
build() {
|
||||
mkdir -p "${srcdir}/build-${MINGW_CHOST}" && cd "${srcdir}/build-${MINGW_CHOST}"
|
||||
|
||||
mkdir -p ${pkgdir}${MINGW_PREFIX}
|
||||
pushd ${pkgdir}${MINGW_PREFIX} > /dev/null
|
||||
export PREFIX_WIN=`pwd -W`
|
||||
popd > /dev/null
|
||||
|
||||
${MINGW_PREFIX}/bin/cmake \
|
||||
-G"MSYS Makefiles" \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=${PREFIX_WIN} \
|
||||
-DEXAMPLES=OFF \
|
||||
../openal-soft-${pkgver}
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build-${MINGW_CHOST}"
|
||||
make install
|
||||
}
|
||||
Reference in New Issue
Block a user