Ticket #52210: Portfile

File Portfile, 1.6 KB (added by kencu (Ken), 7 years ago)

libsdl2 2.0.3 Portfile - for 10.4 and 10.5 PPC

Line 
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
3PortSystem      1.0
4
5name            libsdl2
6set my_name     SDL2
7version         2.0.3
8categories      devel multimedia
9platforms       macosx freebsd
10license         zlib
11maintainers     {jmr @jmroot} openmaintainer
12description     Cross-platform multi-media development API
13
14long_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
19homepage        http://www.libsdl.org/
20master_sites    ${homepage}release/
21distname        ${my_name}-${version}
22
23checksums       rmd160  e6f3718c7366c5da793c1454cf0ec0972e8bd347 \
24                sha256  a5a69a6abf80bcce713fa873607735fe712f44276a7f048d60a61bb2f6b3c90c
25
26patch.pre_args -p1
27configure.args-append     --without-x
28
29platform 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
36platform darwin 9 {
37    patchfiles-append         patch-SDL2-2.0.3_OSX_105.diff
38}
39
40post-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
48livecheck.type  regex
49livecheck.url   ${homepage}download-2.0.php
50livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)