enable openal support for os x and linux-powerpc
[blender-staging.git] / source / Makefile
index 3fb82d4033eab87cf8a56d12d791a51bbb9d9cc9..20322946ab708a5561a27bc16dd7406540188349 100644 (file)
@@ -376,7 +376,7 @@ ifeq ($(NAN_NO_OPENAL), true)
     NAN_SND_LIBS += $(SOUNDSYSTEM)
 else
   ifeq ($(OS),$(findstring $(OS), "freebsd linux windows"))
-    ifeq ($(CPU),i386)
+    ifeq ($(CPU),$(findstring $(CPU), "i386 powerpc"))
       ifeq ($(OS),freebsd)
         NAN_SND_LIBS =  $(SOUNDSYSTEM)
         NAN_SND_LIBS += $(DUMMYSOUND)
@@ -410,6 +410,8 @@ else
     ifeq ($(OS),darwin)
       NAN_SND_LIBS =  $(SOUNDSYSTEM)
       NAN_SND_LIBS += $(DUMMYSOUND)
+      NAN_SND_LIBS += $(OPENALSOUND)
+      NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
       NAN_SND_LIBS += $(SOUNDSYSTEM)
     else
       NAN_SND_LIBS =  $(SOUNDSYSTEM)