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

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

libsdl-framework:

  • Fixed a typo in the tar system call.
  • Removed default values for (MACOSX_DEPLOYMENT|GCC_VERSION|SDKROOT)_ppc to let Xcode figure them out.
  • Now uses a pre-destroot stage to copy build settings in destroot settings.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 27740 2007-08-13 14:47:37Z nox@macports.org $
2
3PortSystem      1.0
4PortGroup       xcode 1.0
5
6name            libsdl-framework
7version         1.2.12
8categories      devel multimedia
9maintainers     nox openmaintainer
10description     Cross-platform multi-media development API
11
12long_description \
13                Simple DirectMedia Layer is a cross-platform \
14                multimedia library designed to provide fast access \
15                to the graphics framebuffer and audio device. It is \
16                used by MPEG playback software, emulators, and many \
17                popular games, including the award winning Linux \
18                port of \"Civilization: Call To Power.\" Simple \
19                DirectMedia Layer supports Linux, Win32, BeOS, \
20                MacOS, Solaris, IRIX, and FreeBSD.
21
22# Dummy configure to enable the universal variant.
23use_configure   yes
24configure               {}
25
26homepage        http://www.libsdl.org/
27master_sites    ${homepage}release/
28distname        SDL-${version}
29dist_subdir     libsdl
30
31checksums       md5 544b4554986e51eed6d34435cf9c5f3f \
32                sha1 2c37ff1683368369c0f555d4a742f0544153610d \
33                rmd160 3871023c63ea056eba43ce4f55ee8d3a73ff3022
34
35platforms       macosx
36
37xcode.project                   Xcode/SDL/SDL.xcodeproj
38xcode.target            "Framework Without X11 Stuff (for those who didn't install the X11 headers with Xcode)"
39xcode.destroot.type     framework
40
41post-extract {
42    system "cd ${worksrcpath} && tar -x Xcode/SDL/{Info-Framework{,NoX11}.plist,SDL.xcodeproj} -vzf Xcode.tar.gz"
43}
44
45post-patch {
46        reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|GCC_VERSION|SDKROOT)_ppc =/d" \
47                ${worksrcpath}/${xcode.project}/project.pbxproj
48}
49
50pre-destroot {
51        xcode.destroot.settings ${xcode.build.settings}
52}
53
54variant x11 {
55    xcode.target Framework
56}
57
58platform darwin i386 {
59    if {! [variant_isset universal]} {
60        xcode.build.settings-append             ARCHS=i386
61    }
62}
63
64platform darwin powerpc {
65    if {! [variant_isset universal]} {
66        xcode.build.settings-append             ARCHS=ppc
67    }
68}
69
Note: See TracBrowser for help on using the repository browser.