1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | |
---|
7 | name springrts |
---|
8 | version 0.81.2 |
---|
9 | maintainers gmail.com:pepijndevos |
---|
10 | |
---|
11 | categories games |
---|
12 | description open source online RTS engine |
---|
13 | long_description Spring (formerly known as TA Spring or Total \ |
---|
14 | Annihilation: Spring), is a full 3D free/open source \ |
---|
15 | RTS game engine originally created by the Swedish \ |
---|
16 | Yankspankers, intended to bring the gameplay \ |
---|
17 | experience of Total Annihilation into three dimensions. |
---|
18 | |
---|
19 | platforms darwin |
---|
20 | license GPL-2 |
---|
21 | homepage http://springrts.com/ |
---|
22 | |
---|
23 | distname spring_${version}_src |
---|
24 | worksrcdir spring_${version} |
---|
25 | master_sites sourceforge http://springrts.com/dl/ |
---|
26 | |
---|
27 | checksums md5 d7e3b7c29e2375d94b6ab78dd83f2b8c \ |
---|
28 | sha1 1bec9713322282989f57c930d1f38a5bb85dff0d |
---|
29 | |
---|
30 | depends_build-append port:pkgconfig port:p7zip |
---|
31 | depends_lib port:libsdl port:glew port:libpng \ |
---|
32 | port:jpeg port:tiff port:libogg port:libvorbis \ |
---|
33 | port:libdevil port:boost port:boost-jam \ |
---|
34 | port:xorg-libXtst port:xorg-libXv \ |
---|
35 | port:xorg-libXxf86misc port:xorg-libXxf86vm |
---|
36 | |
---|
37 | patchfiles patch-file-extension.diff platform-misc-cpp.diff |
---|
38 | post-patch { |
---|
39 | copy ${filespath}/Spring.applescript ${workpath} |
---|
40 | reinplace "s|__PREFIX__|${prefix}|" ${workpath}/Spring.applescript |
---|
41 | } |
---|
42 | |
---|
43 | pre-configure { |
---|
44 | configure.args-append -DSDL_INCLUDE_DIR=${prefix}/include/SDL \ |
---|
45 | -DSDL_LIBRARY="[exec ${prefix}/bin/sdl-config --libs]" |
---|
46 | } |
---|
47 | |
---|
48 | post-destroot { |
---|
49 | system "osacompile -o ${destroot}${applications_dir}/Spring.app ${workpath}/Spring.applescript" |
---|
50 | } |
---|