pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/scummvm scummvm uses a deprecated audio API that...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2b5d7aea2a3b
branches:  trunk
changeset: 399128:2b5d7aea2a3b
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Sep 13 16:12:18 2009 +0000

description:
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:

 games/scummvm/hacks.mk |  21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r d74d761bd047 -r 2b5d7aea2a3b games/scummvm/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/scummvm/hacks.mk    Sun Sep 13 16:12:18 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index