mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
OpenAL: some sanity fixes
* Fix various install pathes * Use out-of-source build as specified in OpenAL readme, as otherwise rebuilding from an unclean sourcetree fails * Safer patching of the binary output dir.
This commit is contained in:
@@ -5,7 +5,7 @@ OpenAL - A software implementation of the OpenAL 3D audio API.
|
||||
HOMEPAGE="http://kcat.strangesoft.net/openal.html"
|
||||
SRC_URI="http://kcat.strangesoft.net/openal-releases/openal-soft-1.13.tar.bz2"
|
||||
CHECKSUM_MD5="58b7d2809790c70681b825644c5f3614"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="1999-2000 Loki Software
|
||||
2005-2011 OpenAL Soft team"
|
||||
@@ -34,24 +34,26 @@ BUILD_PREREQUIRES="
|
||||
"
|
||||
|
||||
SOURCE_DIR="openal-soft-1.13"
|
||||
|
||||
|
||||
PATCHES="openal-1.13.0.patchset"
|
||||
BUILD()
|
||||
{
|
||||
sed -i "s,RUNTIME DESTINATION bin,RUNTIME DESTINATION $relativeBinDir," CMakeLists.txt
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DLIB_SUFFIX="/${secondaryArchSuffix/_/}"
|
||||
cd build
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX=$prefix -DBIN_DIR="$relativeBinDir" \
|
||||
-DLIB_SUFFIX="/${secondaryArchSuffix/_/}"
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mkdir -p $developDir/headers
|
||||
mkdir -p $binDir
|
||||
mv $prefix/include $developDir/headers
|
||||
|
||||
prepareInstalledDevelLibs libopenal
|
||||
mv $prefix/include/* $developDir/headers
|
||||
rmdir $prefix/include
|
||||
|
||||
prepareInstalledDevelLib libopenal
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
|
||||
Reference in New Issue
Block a user