Ticket #23556: Portfile

File Portfile, 2.0 KB (added by jmroot (Joshua Root), 14 years ago)
Line 
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
4PortSystem              1.0
5PortGroup               cmake 1.0
6
7name                    springrts
8version                 0.81.2
9maintainers             gmail.com:pepijndevos
10
11categories              games
12description             open source online RTS engine
13long_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
19platforms               darwin
20license                 GPL-2
21homepage                http://springrts.com/
22
23distname                spring_${version}_src
24worksrcdir              spring_${version}
25master_sites            sourceforge http://springrts.com/dl/
26
27checksums               md5 d7e3b7c29e2375d94b6ab78dd83f2b8c \
28                        sha1 1bec9713322282989f57c930d1f38a5bb85dff0d
29
30depends_build-append    port:pkgconfig port:p7zip
31depends_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
37patchfiles              patch-file-extension.diff platform-misc-cpp.diff
38post-patch {
39    copy ${filespath}/Spring.applescript ${workpath}
40    reinplace "s|__PREFIX__|${prefix}|" ${workpath}/Spring.applescript
41}
42
43pre-configure {
44    configure.args-append   -DSDL_INCLUDE_DIR=${prefix}/include/SDL \
45                            -DSDL_LIBRARY="[exec ${prefix}/bin/sdl-config --libs]"
46}
47
48post-destroot {
49        system "osacompile -o ${destroot}${applications_dir}/Spring.app ${workpath}/Spring.applescript"
50}