1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name libsdl |
---|
6 | version 1.2.11 |
---|
7 | revision 1 |
---|
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 multimedia library \ |
---|
14 | designed to provide fast access to the graphics framebuffer and \ |
---|
15 | audio device. It is used by MPEG playback software, emulators, \ |
---|
16 | and many popular games, including the award winning Linux port \ |
---|
17 | of "Civilization: Call To Power." Simple DirectMedia Layer supports \ |
---|
18 | Linux, Win32, BeOS, MacOS, Solaris, IRIX, and FreeBSD. |
---|
19 | |
---|
20 | homepage http://www.libsdl.org/ |
---|
21 | master_sites ${homepage}release/ |
---|
22 | distname SDL-${version} |
---|
23 | |
---|
24 | checksums md5 418b42956b7cd103bfab1b9077ccc149 \ |
---|
25 | sha1 2259134d714e35ab1469d513674a3cd02510d198 \ |
---|
26 | rmd160 91dc8877224415a4ba59e1de57c31861e550d644 |
---|
27 | |
---|
28 | platforms macosx freebsd |
---|
29 | |
---|
30 | configure.args --disable-video-x11 \ |
---|
31 | --disable-video-aalib \ |
---|
32 | --disable-arts |
---|
33 | |
---|
34 | post-destroot { |
---|
35 | xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}/docs |
---|
36 | xinstall -m 0644 -W ${worksrcpath} BUGS COPYING CREDITS INSTALL README \ |
---|
37 | README-SDL.txt README.MacOSX TODO docs.html \ |
---|
38 | ${destroot}${prefix}/share/doc/${name} |
---|
39 | xinstall -m 0644 -W ${worksrcpath}/docs index.html \ |
---|
40 | ${destroot}${prefix}/share/doc/${name}/docs |
---|
41 | system "cp -R ${worksrcpath}/docs/html ${destroot}${prefix}/share/doc/${name}/docs" |
---|
42 | } |
---|
43 | |
---|
44 | variant no_static { |
---|
45 | configure.args-append --disable-static |
---|
46 | } |
---|
47 | |
---|
48 | variant x11 { |
---|
49 | depends_lib lib:libX11.6:XFree86 |
---|
50 | configure.args-append --with-x |
---|
51 | configure.args-delete --disable-video-x11 |
---|
52 | } |
---|
53 | |
---|
54 | variant aalib { |
---|
55 | depends_lib port:aalib |
---|
56 | configure.args-delete --disable-video-aalib |
---|
57 | } |
---|
58 | |
---|
59 | variant arts { |
---|
60 | depends_lib port:arts |
---|
61 | configure.args-delete --disable-arts |
---|
62 | } |
---|
63 | |
---|
64 | platform darwin 7 { |
---|
65 | pre-fetch { |
---|
66 | system "${portpath}/${filesdir}/qt-check.sh" |
---|
67 | } |
---|
68 | } |
---|
69 | |
---|
70 | platform darwin 8 { |
---|
71 | patchfiles patch-configure |
---|
72 | configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
73 | build.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
74 | } |
---|