From: Mikko Rasa Date: Mon, 6 Oct 2014 20:54:15 +0000 (+0300) Subject: Use frameworks instead of raw libraries for OpenGL and OpenAL on OS X X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=62f710dfbd7b4a20257567067f562ad9c22412b3;p=builder.git Use frameworks instead of raw libraries for OpenGL and OpenAL on OS X --- diff --git a/openal.bpk b/openal.bpk index 5bd52f1..07e17e2 100644 --- a/openal.bpk +++ b/openal.bpk @@ -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"; }; diff --git a/opengl.bpk b/opengl.bpk index f48dce3..c217cd5 100644 --- a/opengl.bpk +++ b/opengl.bpk @@ -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"; };