[118008] trunk/dports/devel/libsdl2
jmr at macports.org
jmr at macports.org
Wed Mar 19 02:06:53 PDT 2014
Revision: 118008
https://trac.macports.org/changeset/118008
Author: jmr at macports.org
Date: 2014-03-19 02:06:53 -0700 (Wed, 19 Mar 2014)
Log Message:
-----------
libsdl2: apparently this really needs the 10.7 SDK now
Modified Paths:
--------------
trunk/dports/devel/libsdl2/Portfile
Removed Paths:
-------------
trunk/dports/devel/libsdl2/files/
Modified: trunk/dports/devel/libsdl2/Portfile
===================================================================
--- trunk/dports/devel/libsdl2/Portfile 2014-03-19 08:30:42 UTC (rev 118007)
+++ trunk/dports/devel/libsdl2/Portfile 2014-03-19 09:06:53 UTC (rev 118008)
@@ -24,10 +24,22 @@
checksums rmd160 e6f3718c7366c5da793c1454cf0ec0972e8bd347 \
sha256 a5a69a6abf80bcce713fa873607735fe712f44276a7f048d60a61bb2f6b3c90c
-patchfiles SDL_cocoaopengl.m.patch
-
configure.args --without-x
+platform macosx {
+ if {${os.major} <= 10} {
+ # Build requires at least 10.7 SDK, even when targeting 10.6
+ set lion_sdkpath ${developer_dir}/SDKs/MacOSX10.7.sdk
+ if {[file exists $lion_sdkpath]} {
+ configure.sdkroot $lion_sdkpath
+ } else {
+ pre-configure {
+ error "Building $name requires OS X 10.7 SDK or later"
+ }
+ }
+ }
+}
+
variant x11 {
configure.args-delete --without-x
configure.args-append --x-includes=${prefix}/include \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140319/7f666b7a/attachment.html>
More information about the macports-changes
mailing list