Ticket #12459: dopewars-1.5.12.patch

File dopewars-1.5.12.patch, 1.3 KB (added by simon@…, 17 years ago)
  • Portfile

     
    22
    33PortSystem 1.0
    44name            dopewars
    5 version         1.5.10
     5version         1.5.12
    66categories      games
    77maintainers     nomaintainer@macports.org
    88description     Rewrite of a game originally based on \"Drug Wars\"
     
    1616
    1717master_sites    sourceforge
    1818
    19 checksums       md5 99f07eac91f1f272f43d16ba81205c66
     19checksums       md5 debf749de9053dc2fb2e74c37ae06206 \
     20        sha1 ad46a38e225680e591b078eeec563d47b96684bc \
     21        rmd160 66c86bceb67657a9fb2ef7944b1a069dafab8ae0
    2022
    21 depends_lib     lib:libgtk.2:gtk2 lib:libesd.0:esound
     23depends_lib     port:gtk2 port:esound
    2224
    2325post-patch      { reinplace "s| \$\(dopewars_DEPENDENCIES\)||g" ${worksrcpath}/src/Makefile.in
    2426                  reinplace "s|need_relink=yes|need_relink=no|g" ${worksrcpath}/ltmain.sh
    2527                  reinplace "s|LIBADD =|LIBADD = -module -avoid-version|g" ${worksrcpath}/src/plugins/Makefile.in }
    2628
    27 configure.env   LDFLAGS="-L${prefix}/lib" \
    28                 CPPFLAGS="-I${prefix}/include"
    29 
    3029configure.args  --enable-nls --enable-networking --without-sdl --with-pic \
    3130                --enable-gui-client --enable-plugins --enable-shared \
    3231                --enable-static --mandir=${prefix}/share/man
    3332
    34 platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
     33platform darwin 6 {
     34  depends_lib-append port:dlcompat
     35}