source: trunk/dports/devel/libsdl-framework/Portfile @ 36622

Last change on this file since 36622 was 36622, checked in by nox@…, 9 years ago

libsdl-framework: Universal support now uses configure.universal_archs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 36622 2008-05-08 15:34:39Z nox@macports.org $
2
3PortSystem      1.0
4PortGroup       xcode 1.0
5
6name            libsdl-framework
7set my_name     SDL
8version         1.2.13
9categories      devel multimedia
10maintainers     nox openmaintainer
11description     Cross-platform multi-media development API
12
13long_description \
14    Simple DirectMedia Layer is a cross-platform multimedia library designed to provide \
15    fast access to the graphics framebuffer and audio device. It is used by MPEG playback \
16    software, emulators, and many popular games, including the award winning Linux port of \
17    \"Civilization: Call To Power.\" Simple DirectMedia Layer supports Linux, Win32, BeOS, \
18    Mac OS, Solaris, IRIX, and FreeBSD.
19
20if {[variant_isset universal]} {
21    eval xcode.build.settings-append        "ARCHS='${configure.universal_archs}'"
22    eval xcode.destroot.settings-append     "ARCHS='${configure.universal_archs}'"
23} else {
24    set arch ${os.arch}
25    if {! [string compare ${os.arch} powerpc]} {
26        set arch ppc
27    }
28
29    xcode.build.settings-append         ARCHS=${arch}
30    xcode.destroot.settings-append      ARCHS=${arch}
31}
32
33homepage        http://www.libsdl.org/
34master_sites    ${homepage}release/
35distname        ${my_name}-${version}
36dist_subdir     libsdl
37
38checksums       md5 c6660feea2a6834de10bc71b2f8e4d88 \
39                sha1 51fcaa3e1d5c01fd813ea08688780f86b19cf539 \
40                rmd160 ed8825fc98f4b3759cf9e5cf8357d71c50df9925
41
42xcode.project       Xcode/SDL/SDL.xcodeproj
43xcode.target        "Framework Without X11 Stuff (for those who didn't install the X11 headers with Xcode)"
44xcode.destroot.type framework
45
46post-extract {
47    system "cd ${worksrcpath} && tar -xvzf Xcode.tar.gz Xcode/SDL/{Info-Framework{,NoX11}.plist,SDL.xcodeproj}"
48}
49
50post-patch {
51    reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)_ppc =/d" \
52        ${worksrcpath}/${xcode.project}/project.pbxproj
53}
54
55variant x11 {
56    xcode.target    Framework
57}
58
59variant universal {}
60
61livecheck.check regex
62livecheck.url   ${homepage}download.php
63livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.