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 | d11be5daafe425b4da37a7f82bf7fd4ad0c27000 (patch) | |
tree | 89d5afa036c72d0168a1514727bede9119e157dd /games | |
parent | 7b5db1d544a7e62b35b730d8fecf17bd1e8227f7 (diff) | |
download | pkgsrc-d11be5daafe425b4da37a7f82bf7fd4ad0c27000.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 |