]> git.tdb.fi Git - builder.git/commitdiff
Use frameworks instead of raw libraries for OpenGL and OpenAL on OS X
authorMikko Rasa <tdb@tdb.fi>
Mon, 6 Oct 2014 20:54:15 +0000 (23:54 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 6 Oct 2014 21:00:16 +0000 (00:00 +0300)
openal.bpk
opengl.bpk

index 5bd52f1e5039781ba2d09992135ddf3090c9b95c..07e17e27f7b092d81644c31f5570cc28369ea891 100644 (file)
@@ -1,7 +1,7 @@
 binary_package "openal"
 {
        // XXX OpenAL has a .pc file for *nix but not for Windows
-       if_arch "!windows"
+       if_arch "!windows & !darwin"
        {
                build_info
                {
@@ -17,5 +17,13 @@ binary_package "openal"
                };
        };
 
+       if_arch "darwin"
+       {
+               build_info
+               {
+                       library "OpenAL.framework";
+               };
+       };
+
        header "AL/al.h";
 };
index f48dce393b3d2353e060185ed92e85253fe15847..c217cd55bc1da46cca835d640743884d89859bf2 100644 (file)
@@ -1,6 +1,6 @@
 binary_package "opengl"
 {
-       if_arch "!windows"
+       if_arch "!windows & !darwin"
        {
                build_info
                {
@@ -16,5 +16,13 @@ binary_package "opengl"
                };
        };
 
+       if_arch "darwin"
+       {
+               build_info
+               {
+                       library "OpenGL.framework";
+               };
+       };
+
        header "GL/gl.h";
 };