mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Fixed openal build on x86
This commit is contained in:
@@ -21,10 +21,10 @@ REQUIRES="
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
@@ -35,8 +35,10 @@ SOURCE_DIR="openal-soft-1.13"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake .
|
||||
make
|
||||
sed -i "s,RUNTIME DESTINATION bin,RUNTIME DESTINATION $relativeBinDir," CMakeLists.txt
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DLIB_SUFFIX="/${secondaryArchSuffix/_/}"
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
@@ -45,9 +47,7 @@ INSTALL()
|
||||
|
||||
mkdir -p $developDir/headers
|
||||
mkdir -p $binDir
|
||||
mv /boot/common/lib $libDir
|
||||
mv /boot/common/include/AL $developDir/headers
|
||||
mv /boot/common/bin/openal-info $binDir
|
||||
mv $prefix/include $developDir/headers
|
||||
|
||||
prepareInstalledDevelLibs libopenal
|
||||
fixPkgconfig
|
||||
@@ -61,11 +61,10 @@ INSTALL()
|
||||
PROVIDES_devel="
|
||||
openal${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||||
devel:libopenal$secondaryArchSuffix = 1.13.0 compat >= 0
|
||||
cmd:openal_info
|
||||
cmd:openal_info$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libopenal$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user