summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authortron <tron>2009-09-13 16:12:18 +0000
committertron <tron>2009-09-13 16:12:18 +0000
commit3dde3713fd057436f8857f689da9a4069b898547 (patch)
tree89d5afa036c72d0168a1514727bede9119e157dd /games
parent94e8e74cc005fa49458014000174f4ecac8346eb (diff)
downloadpkgsrc-3dde3713fd057436f8857f689da9a4069b898547.tar.gz
scummvm uses a deprecated audio API that is no longer available under
Mac OS X Snow Leopard. Work around that by building the package using the Mac OS X Leopard SDK that is provided by Xcode.
Diffstat (limited to 'games')
-rw-r--r--games/scummvm/hacks.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/games/scummvm/hacks.mk b/games/scummvm/hacks.mk
new file mode 100644
index 00000000000..608adb04151
--- /dev/null
+++ b/games/scummvm/hacks.mk
@@ -0,0 +1,21 @@
+# $NetBSD: hacks.mk,v 1.1 2009/09/13 16:12:18 tron Exp $
+
+.if !defined(SCUMMVM_HACKS_MK)
+SCUMMVM_HACKS_MK= defined
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+# scummvm used an API that no longer exists under Mac OS X Snow Leopard.
+# Work around that by using the Leopard SDK which is part of Xcode tools.
+
+XCODE_LEOPARD_SDK= /Developer/SDKs/MacOSX10.5.sdk
+
+.if !empty(MACHINE_PLATFORM:MDarwin-??.*-*) && \
+ exists(/Developer/SDKs/MacOSX10.5.sdk)
+PKG_HACKS+= scummvm-snow-leopard
+
+CFLAGS+= -mmacosx-version-min=10.5 -isysroot ${XCODE_LEOPARD_SDK}
+LDFLAGS+= -mmacosx-version-min=10.5 -Wl,-syslibroot,${XCODE_LEOPARD_SDK}
+.endif
+
+.endif # SCUMMVM_HACKS_MK