Changeset 29939 for trunk/dports/games


Ignore:
Timestamp:
Oct 15, 2007, 7:32:58 PM (12 years ago)
Author:
takanori@…
Message:

*Updated master_sites because the URL changed.
*Added support for +universal.

File:
1 edited

Legend:

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

    r25173 r29939  
    1414set nethacksrc      "nethack-343-src.tgz"
    1515set jnethackpatch   "${name}-${version}.diff.gz"
    16 set sfj             "http://dl.sourceforge.jp/jnethack"
     16set sfjpid_nh   9091
     17set sfjpid_jnh  25190
    1718
    18 master_sites    ${sfj}/9091/:nh \
    19                 ${sfj}/25190/:jnh
     19master_sites    http://keihanna.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
     20                http://osdn.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
     21                http://globalbase.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
     22                http://jaist.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
     23                http://keihanna.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh \
     24                http://osdn.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh \
     25                http://globalbase.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh \
     26                http://jaist.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh
    2027distfiles       ${nethacksrc}:nh \
    2128                ${jnethackpatch}:jnh
     
    97104
    98105variant x11 {}
     106
     107variant universal {
     108    post-patch {
     109        reinplace "s|^CFLAGS = -W -g -O -I../include$|CFLAGS = ${configure.cflags} ${configure.universal_cflags} -I../include|" ${worksrcpath}/sys/unix/Makefile.src
     110        reinplace "s|\$(LINK) \$(LFLAGS)|\$(LINK) \$(CFLAGS) \$(LFLAGS)|" ${worksrcpath}/sys/unix/Makefile.src
     111        reinplace "s|^CFLAGS = -O -I../include$|CFLAGS = ${configure.cflags} ${configure.universal_cflags} -I../include|" ${worksrcpath}/sys/unix/Makefile.utl
     112        reinplace "s|\$(CC) \$(LFLAGS)|\$(CC) \$(CFLAGS) \$(LFLAGS)|" ${worksrcpath}/sys/unix/Makefile.utl
     113    }
     114}
Note: See TracChangeset for help on using the changeset viewer.