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