source: trunk/dports/games/freeciv/Portfile

Last change on this file was 120154, checked in by ryandesign@…, 6 years ago

freeciv: put back the revision lines removed in r119947, because this port uses subports and this prevents an incorrect insertion of a global revision from having undesired consequences

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[30689]1# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
[20295]2# $Id: Portfile 120154 2014-05-17 02:30:59Z ryandesign@macports.org $
[2123]3
[48841]4PortSystem          1.0
[81321]5
[48841]6name                freeciv
[119947]7version             2.4.2
[82697]8set branch          [join [lrange [split ${version} .] 0 1] .]
[48841]9categories          games
[59683]10maintainers         nomaintainer
[106231]11license             GPL-2+
[48841]12description         An empire-building strategy game
13long_description \
14   Freeciv is a Free and Open Source empire-building strategy game inspired \
15   by the history of human civilization. The game commences in prehistory \
16   and your mission is to lead your tribe from the stone age to the space \
17   age...
[1857]18
[48841]19homepage            http://www.freeciv.org/
[82697]20master_sites        sourceforge:project/${name}/Freeciv%20${branch}/${version}/ \
[81321]21                    ftp://ftp.freeciv.org/freeciv/stable/
[48841]22use_bzip2           yes
[37449]23
[119947]24checksums           rmd160  6afef825310ca32ad977ddfe5f5be01117b92cad \
25                    sha256  025d3cf51237a0c12422a5f100460a22ce1236b650a1e73cbd1c13c0b0676ce0
[1857]26
[114492]27
28depends_build       port:pkgconfig
29
30depends_lib         port:curl \
31                    port:libiconv \
[89057]32                    port:libsdl_mixer \
33                    port:readline \
34                    port:zlib
[60953]35
[70373]36patchfiles          patch-client-options.c.diff
37
[89057]38configure.args      --with-readline \
[48841]39                    --enable-nls --with-libiconv-prefix=${prefix} \
[81321]40                    --mandir=${prefix}/share/man --with-sdl-prefix=${prefix} \
41                    --disable-sdltest
[1886]42
[115019]43if {${name} eq ${subport}} {
[120154]44    revision                0
[89057]45    conflicts               freeciv-x11
46   
47    platforms               macosx
48   
49    depends_lib-append      port:freetype \
50                            port:libpng \
51                            port:libsdl \
52                            port:libsdl_image
53   
54    configure.args-append   --enable-client=sdl
55   
56    PortGroup               app 1.0
57    app.executable          freeciv-sdl
58    app.icon                data/icons/128x128/freeciv-client.png
[115019]59   
60    livecheck.type          regex
61    livecheck.regex         ${name}-(\[0-9.\]+)${extract.suffix}
62} else {
63    livecheck.type          none
[89057]64}
[82698]65
[89057]66subport freeciv-x11 {
[120154]67    revision                0
[89057]68    conflicts               freeciv
69   
70    platforms               darwin
71   
72    depends_lib-append      port:gettext \
73                            port:gtk2
74   
75    configure.args-append   --enable-client=gtk2 \
76                            --disable-gtktest
77}
Note: See TracBrowser for help on using the repository browser.