1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name libsdl2 |
---|
6 | set my_name SDL2 |
---|
7 | version 2.0.3 |
---|
8 | categories devel multimedia |
---|
9 | platforms macosx freebsd |
---|
10 | license zlib |
---|
11 | maintainers {jmr @jmroot} openmaintainer |
---|
12 | description Cross-platform multi-media development API |
---|
13 | |
---|
14 | long_description \ |
---|
15 | Simple DirectMedia Layer is a cross-platform development library \ |
---|
16 | designed to provide low level access to audio, keyboard, mouse, \ |
---|
17 | joystick, and graphics hardware via OpenGL and Direct3D. |
---|
18 | |
---|
19 | homepage http://www.libsdl.org/ |
---|
20 | master_sites ${homepage}release/ |
---|
21 | distname ${my_name}-${version} |
---|
22 | |
---|
23 | checksums rmd160 e6f3718c7366c5da793c1454cf0ec0972e8bd347 \ |
---|
24 | sha256 a5a69a6abf80bcce713fa873607735fe712f44276a7f048d60a61bb2f6b3c90c |
---|
25 | |
---|
26 | patch.pre_args -p1 |
---|
27 | configure.args-append --without-x |
---|
28 | |
---|
29 | platform darwin 8 { |
---|
30 | # not yet tested on Tiger |
---|
31 | patchfiles-append patch-SDL2-2.0.3_OSX_104.diff |
---|
32 | configure.args-append --disable-haptic |
---|
33 | configure.args-append --disable-joystick |
---|
34 | } |
---|
35 | |
---|
36 | platform darwin 9 { |
---|
37 | patchfiles-append patch-SDL2-2.0.3_OSX_105.diff |
---|
38 | } |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | set docdir ${prefix}/share/doc/${name} |
---|
42 | xinstall -d ${destroot}${docdir} |
---|
43 | xinstall -m 0644 -W ${worksrcpath} BUGS.txt COPYING.txt CREDITS.txt \ |
---|
44 | README.txt README-SDL.txt TODO.txt WhatsNew.txt \ |
---|
45 | ${destroot}${docdir} |
---|
46 | } |
---|
47 | |
---|
48 | livecheck.type regex |
---|
49 | livecheck.url ${homepage}download-2.0.php |
---|
50 | livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*) |
---|