[Lunar-commits] <moonbase> openal: Making a few adjustments to the BUILD to use an out of tree build,

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Wed Sep 23 00:01:11 CEST 2009


commit 19d52aef0cb5e60ee0422b30035ff6dc4b024f1a
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Tue Sep 22 18:01:11 2009 -0400

    openal: Making a few adjustments to the BUILD to use an out of tree build,
    
    and altering the if/them logic a bit.
---
 audio/openal/BUILD |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/audio/openal/BUILD b/audio/openal/BUILD
index ce51361..44c8121 100644
--- a/audio/openal/BUILD
+++ b/audio/openal/BUILD
@@ -1,11 +1,20 @@
 (
 
-  cd CMakeConf &&
-  cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
+  OOT_BUILD="$SOURCE_DIRECTORY/$MODULE-build"
+
+  mkdir $OOT_BUILD  &&
+  cd $OOT_BUILD     &&
+
+  cmake $SOURCE_DIRECTORY/ -DCMAKE_INSTALL_PREFIX=$MODULE_PREFIX  \
+                           -DCMAKE_BUILD_TYPE=RELEASE            &&
+
   default_build &&
+
   mkdir -p /etc/openal &&
+
   if [ ! -e /etc/openal/alsoft.conf ] ; then
-    echo "format = AL_FORMAT_STEREO16" > /etc/openal/alsoft.conf
+    install -m 755 $SOURCE_DIRECTORY/alsoftrc.sample /etc/openal/alsoft.conf
+    echo "format = AL_FORMAT_STEREO16" >> /etc/openal/alsoft.conf
   fi
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list