source: trunk/dports/games/lgeneral/Portfile

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

lgeneral: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
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: Portfile 86629 2011-10-30 11:51:01Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                lgeneral
7version             1.1.1
8categories          games
9platforms           darwin
10maintainers         nomaintainer
11license             GPL-2+
12
13description         Turn-based strategy engine heavily inspired by Panzer General
14
15long_description    LGeneral is a turn-based strategy engine heavily \
16                    inspired by Panzer General. You play single scenarios \
17                    or whole campaigns turn by turn against a human player \
18                    or the AI. Entrenchment, rugged defense, defensive \
19                    fire, surprise contacts, surrender, unit supply, \
20                    weather influence, reinforcements and other \
21                    implementations contribute to the tactical and \
22                    strategic depth of the game.
23
24homepage            http://lgames.sourceforge.net/index.php?project=LGeneral
25master_sites        sourceforge
26
27distfiles           ${distname}.tar.gz \
28                    lgc-pg-0.32.tar.gz \
29                    ${name}-data-1.1.3.tar.gz
30
31checksums           ${distname}.tar.gz md5 18b88069c91e7e7c75cc44a9aa90d0d9 \
32                    lgc-pg-0.32.tar.gz md5 750d3e68bea1fde7935a357133026c9a \
33                    ${name}-data-1.1.3.tar.gz md5 786feb83f163834a22e3e85e1970145f
34
35depends_lib         lib:libsdl:libsdl \
36                    lib:libsdl_mixer:libsdl_mixer
37
38configure {
39    set conf "CPPFLAGS=-I${prefix}/include CFLAGS=-I${prefix}/include \
40        LDFLAGS=-L${prefix}/lib ./configure --prefix=${prefix}"
41    system "cd ${worksrcpath} && ${conf} --disable-sdltest"
42    system "cd ${workpath}/${name}-data-1.1.3 && ${conf}"
43    system "cd ${workpath}/lgc-pg-0.32 && ${conf} --disable-sdltest"
44    reinplace "s|,-export-dynamic||g" ${worksrcpath}/src/Makefile
45}
46
47build {
48    system "cd ${worksrcpath} && ${build.cmd} all"
49    system "cd ${workpath}/${name}-data-1.1.3 && ${build.cmd} all"
50    system "cd ${workpath}/lgc-pg-0.32 && ${build.cmd} all"
51}
52
53destroot {
54    set cmd "${build.cmd} install ${destroot.destdir}"
55    system "cd ${worksrcpath} && ${cmd}"
56    system "cd ${workpath}/${name}-data-1.1.3 && ${cmd}"
57    system "cd ${workpath}/lgc-pg-0.32 && ${cmd}"
58}
Note: See TracBrowser for help on using the repository browser.