Fixed openal build on x86

This commit is contained in:
Scott McCreary
2013-12-20 02:52:45 -08:00
parent ca74900cc1
commit 5b1695873b

View File

@@ -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
"