summaryrefslogtreecommitdiff
path: root/homebrew/freealut/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/freealut/patches.sh')
-rwxr-xr-xhomebrew/freealut/patches.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/homebrew/freealut/patches.sh b/homebrew/freealut/patches.sh
new file mode 100755
index 000000000..c7d2270d0
--- /dev/null
+++ b/homebrew/freealut/patches.sh
@@ -0,0 +1,17 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/configure.ac b/configure.ac
+index 2b26d6d..4001db1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -83,7 +83,8 @@ AC_DEFINE([ALUT_BUILD_LIBRARY], [1], [Define to 1 if you want to build the ALUT
+
+ # Checks for libraries. (not perfect yet)
+ AC_SEARCH_LIBS([pthread_self], [pthread])
+-AC_SEARCH_LIBS([alGetError], [openal32 openal])
++# Use Mac OS X frameworks
++LIBS="$LIBS -framework IOKit -framework OpenAL"
+
+ ################################################################################
+ # Checks for header files.
+EOF