[59641] trunk/dports/devel/libsdl/Portfile
jmr at macports.org
jmr at macports.org
Sun Oct 18 05:57:16 PDT 2009
Revision: 59641
http://trac.macports.org/changeset/59641
Author: jmr at macports.org
Date: 2009-10-18 05:57:15 -0700 (Sun, 18 Oct 2009)
Log Message:
-----------
libsdl: new snapshot, use xcodeversion group
Modified Paths:
--------------
trunk/dports/devel/libsdl/Portfile
Modified: trunk/dports/devel/libsdl/Portfile
===================================================================
--- trunk/dports/devel/libsdl/Portfile 2009-10-18 12:53:51 UTC (rev 59640)
+++ trunk/dports/devel/libsdl/Portfile 2009-10-18 12:57:15 UTC (rev 59641)
@@ -3,13 +3,14 @@
PortSystem 1.0
PortGroup muniversal 1.0
+PortGroup xcodeversion 1.0
conflicts libsdl-devel
name libsdl
set my_name SDL
version 1.2.14
-revision 6
+revision 7
categories devel multimedia
platforms macosx freebsd
maintainers nox openmaintainer
@@ -23,19 +24,22 @@
DirectMedia Layer supports Linux, Win32, BeOS, Mac OS, Solaris, IRIX, and FreeBSD.
homepage http://www.libsdl.org/
-master_sites macports_distfiles
+master_sites http://www.libsdl.org/tmp/
+#master_sites macports_distfiles
dist_subdir ${name}/${version}_${revision}
distname ${my_name}-${version}
-checksums md5 28cc68d02952290c256ef1fc2fa74050 \
- sha1 3364d81b755f29292dcae01f5f7fc24cfd8e5fdb \
- rmd160 ea4e3afc48f61be5cba10d64e9687466002c0071
+checksums md5 b97acc1a1e96b6545e6a111de3ba769e \
+ sha1 1cd713ab15b4f9985152be18bb22df660a12dc58 \
+ rmd160 371bd417453ec4e09e4edf63551916f176d5bb21
depends_lib \
port:xorg-libXext \
port:xorg-libXrandr \
port:xrender
+minimum_xcodeversions {8 2.4.1}
+
patchfiles patch-SDL_x11gl_c.h.diff
configure.args --enable-shared \
@@ -44,6 +48,8 @@
--x-lib=${prefix}/lib
variant no_x11 {
+ configure.args-delete --x-include=${prefix}/include \
+ --x-lib=${prefix}/lib
configure.args-append --without-x
depends_lib-delete \
port:xorg-libXext \
@@ -55,17 +61,6 @@
set docdir ${prefix}/share/doc/${name}-${version}
-pre-extract {
- if {"darwin" == ${os.platform} && 8 == ${os.major}} {
- set minimum_xcodeversion 2.4.1
- set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
- if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
- ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
- return -code error "incompatible Xcode version"
- }
- }
-}
-
post-configure {
set sdl_config_h "${worksrcpath}/include/SDL_config.h"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091018/6d602a84/attachment.html>
More information about the macports-changes
mailing list