Changeset 9816 for trunk/dports/games


Ignore:
Timestamp:
Dec 17, 2004, 2:49:07 AM (15 years ago)
Author:
mww
Message:

tidy up the configure, build & destroot stages,
make perhaps darwin6 build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/lgeneral/Portfile

    r5041 r9816  
    1 # $Id: Portfile,v 1.2 2004/01/26 21:44:32 mww Exp $
     1# $Id: Portfile,v 1.3 2004/12/17 02:49:07 mww Exp $
    22
    33PortSystem 1.0
    44
    5 name            lgeneral
    6 version         1.1.1
    7 categories      games
    8 platforms       darwin
    9 maintainers     mww@opendarwin.org
    10 description     Turn-based strategy engine heavily inspired by Panzer General
     5name                    lgeneral
     6version                 1.1.1
     7categories              games
     8platforms               darwin
     9maintainers             mww@opendarwin.org
     10description             Turn-based strategy engine heavily inspired by Panzer General
    1111long_description        LGeneral is a turn-based strategy engine heavily \
    12                         inspired by Panzer General. You play single scenarios \
    13                         or whole campaigns turn by turn against a human player \
    14                         or the AI. Entrenchment, rugged defense, defensive \
    15                         fire, surprise contacts, surrender, unit supply, \
    16                         weather influence, reinforcements and other \
    17                         implementations contribute to the tactical and \
    18                         strategic depth of the game.
     12                                inspired by Panzer General. You play single scenarios \
     13                                or whole campaigns turn by turn against a human player \
     14                                or the AI. Entrenchment, rugged defense, defensive \
     15                                fire, surprise contacts, surrender, unit supply, \
     16                                weather influence, reinforcements and other \
     17                                implementations contribute to the tactical and \
     18                                strategic depth of the game.
    1919
    20 homepage        http://lgames.sourceforge.net/index.php?project=LGeneral
     20homepage                http://lgames.sourceforge.net/index.php?project=LGeneral
    2121master_sites    sourceforge
    22 distfiles       ${distname}${extract.suffix} \
    23                 ${name}-data-1.1.3${extract.suffix} \
    24                 lgc-pg-0.32${extract.suffix}
    25 checksums       ${distname}${extract.suffix} \
    26                         md5 18b88069c91e7e7c75cc44a9aa90d0d9 \
    27                 ${name}-data-1.1.3${extract.suffix} \
    28                         md5 786feb83f163834a22e3e85e1970145f \
    29                 lgc-pg-0.32${extract.suffix} \
    30                         md5 750d3e68bea1fde7935a357133026c9a
     22distfiles               ${distname}.tar.gz \
     23                                lgc-pg-0.32.tar.gz \
     24                                ${name}-data-1.1.3.tar.gz
     25checksums               ${distname}.tar.gz md5 18b88069c91e7e7c75cc44a9aa90d0d9 \
     26                                lgc-pg-0.32.tar.gz md5 750d3e68bea1fde7935a357133026c9a \
     27                                ${name}-data-1.1.3.tar.gz md5 786feb83f163834a22e3e85e1970145f
    3128
    32 depends_lib     lib:libsdl:libsdl \
    33                 lib:libsdl_mixer:libsdl_mixer
     29depends_lib             lib:libsdl:libsdl \
     30                                lib:libsdl_mixer:libsdl_mixer
    3431
    35 configure.env   CFLAGS=-I${prefix}/include \
    36                 LDFLAGS=-L${prefix}/lib
    37 configure.cmd   cd ${worksrcpath} \
    38                         && ./configure ${configure.pre_args} \
    39                         --disable-sdltest \
    40                 && cd ${workpath}/${name}-data-1.1.3 \
    41                         && ./configure ${configure.pre_args} \
    42                 && cd ${workpath}/lgc-pg-0.32 \
    43                         && ./configure ${configure.pre_args} \
    44                         --disable-sdltest
    45 
    46 post-configure  {
    47         reinplace "s|,-export-dynamic||g" ${worksrcpath}/src/Makefile
    48         reinplace "s|-I${prefix}/include/SDL|-I${prefix}/include|g" \
    49                 ${workpath}/lgc-pg-0.32/src/Makefile
     32platform darwin 6       {
     33        depends_lib-append      lib:libdl:dlcompat
    5034}
    5135
    52 build.cmd       cd ${worksrcpath} && make all \
    53                 && cd ${workpath}/${name}-data-1.1.3 && make all \
    54                 && cd ${workpath}/lgc-pg-0.32 && make all
     36configure       {
     37        set flags       "CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib"
     38        set conf        "$flags ./configure --prefix=${prefix}"
     39        system "cd ${worksrcpath} && ${conf} --disable-sdltest"
     40        system "cd ${workpath}/${name}-data-1.1.3 && ${conf}"
     41        system "cd ${workpath}/lgc-pg-0.32 && ${conf} --disable-sdltest"
     42        reinplace "s|,-export-dynamic||g" ${worksrcpath}/src/Makefile
     43}
    5544
    56 destroot.cmd    cd ${worksrcpath} \
    57                         && make install ${destroot.destdir} \
    58                 && cd ${workpath}/${name}-data-1.1.3 \
    59                         && make install ${destroot.destdir} \
    60                 && cd ${workpath}/lgc-pg-0.32 \
    61                         && make install ${destroot.destdir}
     45build   {
     46        system "cd ${worksrcpath} && ${build.cmd} all"
     47        system "cd ${workpath}/${name}-data-1.1.3 && ${build.cmd} all"
     48        system "cd ${workpath}/lgc-pg-0.32 && ${build.cmd} all"
     49}
    6250
     51destroot        {
     52        set cmd "${build.cmd} install ${destroot.destdir}"
     53        system "cd ${worksrcpath} && ${cmd}"
     54        system "cd ${workpath}/${name}-data-1.1.3 && ${cmd}"
     55        system "cd ${workpath}/lgc-pg-0.32 && ${cmd}"
     56}
Note: See TracChangeset for help on using the changeset viewer.