Changeset 36690 for trunk/dports/games


Ignore:
Timestamp:
May 12, 2008, 1:38:26 AM (11 years ago)
Author:
takanori@…
Message:

jnethack: version 3.4.3-0.10

Location:
trunk/dports/games/jnethack
Files:
2 added
2 edited

Legend:

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

    r31277 r36690  
    44
    55name            jnethack
    6 version         3.4.3-0.9
     6version         3.4.3-0.10
    77categories      games japanese
    88maintainers     rutiler.net:kyut takanori
     
    1212platforms       darwin
    1313homepage        http://jnethack.sourceforge.jp/
    14 #master_sites   sourceforge_jp:${name}/9091/:nh \
    15 #               sourceforge_jp:${name}/25190/:jnh
    16 set sfjpid_nh   9091
    17 set sfjpid_jnh  25190
    18 master_sites    http://keihanna.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
    19                 http://osdn.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
    20                 http://globalbase.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
    21                 http://jaist.dl.sourceforge.jp/${name}/${sfjpid_nh}/:nh \
    22                 http://keihanna.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh \
    23                 http://osdn.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh \
    24                 http://globalbase.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh \
    25                 http://jaist.dl.sourceforge.jp/${name}/${sfjpid_jnh}/:jnh
     14master_sites    sourceforge_jp:${name}/9091/:nh \
     15                sourceforge_jp:${name}/25190/:jnh
    2616set nethacksrc      "nethack-343-src.tgz"
    2717set jnethackpatch   "${name}-${version}.diff.gz"
     
    2919                ${jnethackpatch}:jnh
    3020patchfiles      patch-sys_unix_Makefile.doc.diff \
     21                patch-sys_unix_Makefile.src.diff \
    3122                patch-sys_unix_Makefile.top.diff \
     23                patch-sys_unix_Makefile.utl.diff \
    3224                patch-sys_unix_nethack.sh.diff \
    3325                patch-win_tty_termcap.c.diff \
    3426                patch-src_options.c.diff
    3527checksums       ${nethacksrc} sha1 c26537093c38152bc0fbcec20468d975b35f59fd \
    36                 ${jnethackpatch}  sha1 547acd967c75a6bc8d464821b41ed026c1c2bb3a
     28                ${jnethackpatch}  sha1 68c6f118d7cef4776a9283b37f15c5c3a60873e8
    3729
    3830depends_build   port:bison \
    39                 port:flex
     31                port:flex \
     32                port:ncurses
    4033depends_run     port:cocot
    4134
     
    5851    }
    5952}
    60 post-patch {
    61     reinplace "s|__PREFIX__|${prefix}|" "${worksrcpath}/sys/unix/Makefile.doc" \
    62                                         "${worksrcpath}/sys/unix/Makefile.top" \
    63                                         "${worksrcpath}/sys/unix/nethack.sh"
    64 }
    6553
    6654## configure ##
     55
     56pre-configure {
     57    set jn_cflags "${configure.cflags} ${configure.cppflags}"
     58    set jn_ldflags ${configure.ldflags}
     59
     60    if {[variant_isset universal]} {
     61        set jn_cflags "${jn_cflags} ${configure.universal_cflags}"
     62    }
     63
     64    if {[variant_isset x11]} {
     65        set jn_cflags "${jn_cflags} -I${x11prefix}/include"
     66        set jn_ldflags "${jn_ldflags} -L${x11prefix}/lib"
     67    }
     68
     69    foreach f {sys/unix/Makefile.doc
     70               sys/unix/Makefile.src
     71               sys/unix/Makefile.top
     72               sys/unix/Makefile.utl
     73               sys/unix/nethack.sh} {
     74        reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/${f}
     75        reinplace "s|__CFLAGS__|${jn_cflags}|" ${worksrcpath}/${f}
     76        reinplace "s|__LDFLAGS__|${jn_ldflags}|" ${worksrcpath}/${f}
     77    }
     78}
    6779
    6880configure.dir       ${worksrcpath}/sys/unix
     
    101113variant x11 {}
    102114
    103 variant universal {
    104     post-patch {
    105         reinplace "s|^CFLAGS = -W -g -O -I../include$|CFLAGS = ${configure.cflags} ${configure.universal_cflags} -I../include|" ${worksrcpath}/sys/unix/Makefile.src
    106         reinplace "s|\$(LINK) \$(LFLAGS)|\$(LINK) \$(CFLAGS) \$(LFLAGS)|" ${worksrcpath}/sys/unix/Makefile.src
    107         reinplace "s|^CFLAGS = -O -I../include$|CFLAGS = ${configure.cflags} ${configure.universal_cflags} -I../include|" ${worksrcpath}/sys/unix/Makefile.utl
    108         reinplace "s|\$(CC) \$(LFLAGS)|\$(CC) \$(CFLAGS) \$(LFLAGS)|" ${worksrcpath}/sys/unix/Makefile.utl
    109     }
    110 }
     115variant universal {}
    111116
    112117livecheck.check regex
  • trunk/dports/games/jnethack/files/x11/patch-sys_unix_Makefile.src.diff

    r31277 r36690  
    11--- sys/unix/Makefile.src       2006-08-05 16:00:44.000000000 +0900
    22+++ sys/unix/Makefile.src       2006-08-05 16:06:00.000000000 +0900
    3 @@ -154,8 +154,8 @@
    4  # flags for debugging:
    5  # CFLAGS = -g -I../include
    6  
    7 -CFLAGS = -W -g -O -I../include
    8 -LFLAGS =
    9 +CFLAGS = -O -I../include -I/usr/X11R6/include
    10 +LFLAGS = -L/usr/X11R6/lib
    11  
    12  # The Qt and Be window systems are written in C++, while the rest of
    13  # NetHack is standard C.  If using Qt, uncomment the LINK line here to get
    143@@ -227,8 +227,8 @@
    154 
Note: See TracChangeset for help on using the changeset viewer.