diff options
author | tron <tron@pkgsrc.org> | 2009-09-13 16:12:18 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2009-09-13 16:12:18 +0000 |
commit | 01461e9a33a3a6e1128222905d3954c1dbd0df0a (patch) | |
tree | 89d5afa036c72d0168a1514727bede9119e157dd /games | |
parent | f0aa225977834ca1852b4fb8dcad964c463101d5 (diff) | |
download | pkgsrc-01461e9a33a3a6e1128222905d3954c1dbd0df0a.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.mk | 21 |
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 |