Ticket #11858: Portfile

File Portfile, 1.8 KB (added by n.oxyde@…, 18 years ago)

libsdl-framework @1.2.11

Line 
1# $Id: $
2
3PortSystem      1.0
4PortGroup       xcode 1.0
5
6name            libsdl-framework
7version         1.2.11
8categories      devel multimedia
9maintainers     n.oxyde@gmail.com
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
22homepage        http://www.libsdl.org/
23master_sites    ${homepage}release/
24distname        SDL-${version}
25dist_subdir     libsdl
26
27checksums       md5 418b42956b7cd103bfab1b9077ccc149 \
28                sha1 2259134d714e35ab1469d513674a3cd02510d198 \
29                rmd160 91dc8877224415a4ba59e1de57c31861e550d644
30
31platforms       macosx
32
33worksrcdir      ${distname}/Xcode/SDL
34
35xcode.target        "Framework Without X11 Stuff (for those who didn't install the X11 headers with Xcode)"
36xcode.destroot.type framework
37
38post-extract {
39    system "cd ${workpath}/${distname} && tar -xvzf Xcode.tar.gz"
40}
41
42post-patch {
43    reinplace "s|10\.2;|10.3;|" ${worksrcpath}/SDL.xcodeproj/project.pbxproj
44    reinplace "s|10\.2\.8|10.3.9|" ${worksrcpath}/SDL.xcodeproj/project.pbxproj
45}
46
47variant x11 {
48    xcode.target Framework
49}
50
51platform darwin i386 {
52    if {! [variant_isset universal]} {
53        xcode.build.settings ARCHS=i386
54    }
55}
56
57platform darwin powerpc {
58    if {! [variant_isset universal]} {
59        xcode.build.settings ARCHS=ppc
60    }
61}