Ticket #33662: udiff-portfile-0.6.10-to-portfile-0.7.2-2.diff

File udiff-portfile-0.6.10-to-portfile-0.7.2-2.diff, 2.7 KB (added by Christoph.Ender@…, 13 years ago)
  • portfile-0.

    old new  
    33PortSystem          1.0
    44
    55name                fizmo
    6 version             0.6.10
    7 revision            1
     6version             0.7.2
    87categories          games
    98maintainers         spellbreaker.org:Christoph.Ender
    109description         Console-based Z-Machine interpreter for Infocom games.
     
    2524platforms           darwin linux
    2625master_sites        http://spellbreaker.org/~chrender/fizmo/source/
    2726
    28 checksums           sha1 858a8e1f7f2fcc01b5bc9a42459f6ae4ce166b6b \
    29                     rmd160 78c96833c95621831e871f4a36b3c1c0f3f198ff
     27checksums           sha256 9d9f6121e6a7cb67a3ffdcd182fc8a1840f01faae6ec1dfb85b1c4fbd2bdb7ed \
     28                    rmd160 f5e8f31db5a84c2e18a2a12b17d54a29ceb87e47
    3029
    3130depends_lib         port:ncurses \
    3231                    port:libsdl_sound \
    3332                    port:libsndfile \
    34                     port:libxml2
    35 
    36 patchfiles          patch-src-fizmo-Makefile.diff
     33                    port:libxml2 \
     34                    port:xorg-libX11 \
     35                    port:jpeg \
     36                    port:libpng
    3737
    3838post-patch {
    39    reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/config.macports.mk
    40    reinplace "s|NCURSESW_INC_DIR = /usr/include|NCURSESW_INC_DIR = \$(DEFAULT_PREFIX)/include|g" ${worksrcpath}/config.macports.mk
    41    reinplace "s|NCURSESW_LIB_DIR = /usr/lib|NCURSESW_LIB_DIR = \$(DEFAULT_PREFIX)/lib|g" ${worksrcpath}/config.macports.mk
    42    reinplace "s|LIBXML2_INC_DIR = /usr/include/libxml2|LIBXML2_INC_DIR = \$(DEFAULT_PREFIX)/include/libxml2|g" ${worksrcpath}/config.macports.mk
    43    reinplace "s|LIBXML2_LIB_DIR = /usr/lib|LIBXML2_LIB_DIR = \$(DEFAULT_PREFIX)/lib|g" ${worksrcpath}/config.macports.mk
     39   file copy ${worksrcpath}/config.macports.mk ${worksrcpath}/config.mk
     40   reinplace "s|/opt/local|${destroot}${prefix}|g" ${worksrcpath}/config.mk
    4441}
    4542
    4643use_configure       no
    4744
    48 build.args          CONFIG_FILE=config.macports.mk \
    49                     CC="${configure.cc} [get_canonical_archflags]"
     45build.args          CC="${configure.cc}" CFLAGS="[get_canonical_archflags]" prefix=${prefix}
     46build.target        fizmo-console fizmo-ncursesw
     47
     48destroot.args       CC="${configure.cc}" CFLAGS="[get_canonical_archflags]" prefix=${prefix} DESTDIR="${destroot}/${prefix}"
     49destroot.target     install-locales install-fizmo-console install-fizmo-ncursesw
     50
     51post-destroot {
     52        file link -symbolic ${destroot}${prefix}/bin/fizmo \
     53                fizmo-ncursesw
     54        file link -symbolic ${destroot}${prefix}/share/man/man6/fizmo.6 \
     55                fizmo-ncursesw.6
     56}
    5057
    51 destroot.args       CC="${configure.cc} [get_canonical_archflags]"