Skip to content

Instantly share code, notes, and snippets.

@Themaister
Created January 3, 2012 23:43
Show Gist options
  • Save Themaister/1557614 to your computer and use it in GitHub Desktop.
Save Themaister/1557614 to your computer and use it in GitHub Desktop.
From 18eafaf6d1304cdb9fbc5335de9b19e544508e27 Mon Sep 17 00:00:00 2001
From: Themaister <[email protected]>
Date: Tue, 3 Jan 2012 17:55:53 -0800
Subject: [PATCH] Check for -framework SDL.
---
qb/config.libs.sh | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/qb/config.libs.sh b/qb/config.libs.sh
index 9cc90e4..d9c672b 100644
--- a/qb/config.libs.sh
+++ b/qb/config.libs.sh
@@ -65,7 +65,19 @@ check_pkgconf PULSE libpulse
check_lib COREAUDIO "-framework AudioUnit" AudioUnitInitialize
-check_pkgconf SDL sdl 1.2.10
+if [ $OS = Darwin ]; then
+ HAVE_SDL_TMP="$HAVE_SDL"
+ check_lib SDL "-framework SDL" SDL_Init
+ if [ $HAVE_SDL = no ]; then
+ HAVE_SDL="$HAVE_SDL_TMP"
+ check_pkgconf SDL sdl 1.2.10
+ else
+ SDL_CFLAGS="-framework SDL"
+ SDL_LIBS="-framework SDL"
+ fi
+else
+ check_pkgconf SDL sdl 1.2.10
+fi
check_critical SDL "Cannot find SDL library."
# On some distros, -lCg doesn't link against -lstdc++ it seems ...
--
1.7.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment