pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/SDL SDL used a deprecated audio API that is no l...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da156cd370e4
branches:  trunk
changeset: 564978:da156cd370e4
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Sep 13 15:51:47 2009 +0000

description:
SDL used 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.

This allows the "mplayer" package to build with SDL support. The
resulting binary can play video and audio if the SDL video and
audio driver are manually selected.

diffstat:

 devel/SDL/hacks.mk |  24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r a8a054f53b8a -r da156cd370e4 devel/SDL/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/SDL/hacks.mk        Sun Sep 13 15:51:47 2009 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: hacks.mk,v 1.1 2009/09/13 15:51:47 tron Exp $
+
+.if !defined(SDL_HACKS_MK)
+SDL_HACKS_MK=  defined
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+# SDL doesn't build with the API's provided by Mac OS X Snow Leopard:
+#
+# http://www.mail-archive.com/fink-users%lists.sourceforge.net@localhost/msg30617.html
+#
+# Work around that by using the Leopard SDK which is part of Xcode.
+
+XCODE_LEOPARD_SDK=     /Developer/SDKs/MacOSX10.5.sdk
+
+.if !empty(MACHINE_PLATFORM:MDarwin-??.*-*) && \
+    exists(/Developer/SDKs/MacOSX10.5.sdk)
+PKG_HACKS+=    sdl-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 # SDL_HACKS_MK



Home | Main Index | Thread Index | Old Index