summaryrefslogtreecommitdiff
path: root/openal-32/Pkgfile
blob: 0111ed2f50cd925573cf08ffe2492c69ed2cff36 (plain)
    1 # Description: Cross-platform 3D audio.
    2 # URL: https://github.com/kcat/openal-soft
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # Depends on: alsa-lib-32 openal
    5 
    6 name=openal-32
    7 version=1.22.0
    8 release=1
    9 source=(https://github.com/kcat/openal-soft/archive/$version/openal-soft-$version.tar.gz)
   10 
   11 build() {
   12 	[ -e '/usr/bin/ninja' ] && PKGMK_OPENAL+=' -G Ninja'
   13 
   14 	cmake -S openal-soft-$version -B build ${PKGMK_OPENAL_32} \
   15 		-D CMAKE_INSTALL_PREFIX=/usr \
   16 		-D CMAKE_INSTALL_LIBDIR=lib32 \
   17 		-D ALSOFT_UTILS=OFF \
   18 		-D ALSOFT_EXAMPLES=OFF \
   19 		-D QT_QMAKE_EXECUTABLE=qmake-disabled \
   20 		-D CMAKE_BUILD_TYPE=Release
   21 
   22 	cmake --build build
   23 	DESTDIR=$PKG cmake --install build
   24 
   25 	rm -r $PKG/usr/{include,share}
   26 }

Generated by cgit