--- Portfile-0.6.10.txt 2011-08-17 02:58:29.000000000 +0200 +++ Portfile-0.7.1.txt 2011-11-07 20:26:06.000000000 +0100 @@ -3,8 +3,8 @@ PortSystem 1.0 name fizmo -version 0.6.10 -revision 1 +version 0.7.1 +revision 0 categories games maintainers spellbreaker.org:Christoph.Ender description Console-based Z-Machine interpreter for Infocom games. @@ -25,27 +25,34 @@ platforms darwin linux master_sites http://spellbreaker.org/~chrender/fizmo/source/ -checksums sha1 858a8e1f7f2fcc01b5bc9a42459f6ae4ce166b6b \ - rmd160 78c96833c95621831e871f4a36b3c1c0f3f198ff +checksums sha1 d5b864acf7a8a1fee22f973088f84df361a180b4 \ + rmd160 c180093513b7abcd98d53d53912f71bf1245c4e5 depends_lib port:ncurses \ port:libsdl_sound \ port:libsndfile \ - port:libxml2 - -patchfiles patch-src-fizmo-Makefile.diff + port:libxml2 \ + port:xorg-libX11 \ + port:jpeg \ + port:libpng post-patch { - reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/config.macports.mk - reinplace "s|NCURSESW_INC_DIR = /usr/include|NCURSESW_INC_DIR = \$(DEFAULT_PREFIX)/include|g" ${worksrcpath}/config.macports.mk - reinplace "s|NCURSESW_LIB_DIR = /usr/lib|NCURSESW_LIB_DIR = \$(DEFAULT_PREFIX)/lib|g" ${worksrcpath}/config.macports.mk - reinplace "s|LIBXML2_INC_DIR = /usr/include/libxml2|LIBXML2_INC_DIR = \$(DEFAULT_PREFIX)/include/libxml2|g" ${worksrcpath}/config.macports.mk - reinplace "s|LIBXML2_LIB_DIR = /usr/lib|LIBXML2_LIB_DIR = \$(DEFAULT_PREFIX)/lib|g" ${worksrcpath}/config.macports.mk + file copy ${worksrcpath}/config.macports.mk ${worksrcpath}/config.mk + reinplace "s|/opt/local|${destroot}/${prefix}|g" ${worksrcpath}/config.mk } use_configure no -build.args CONFIG_FILE=config.macports.mk \ - CC="${configure.cc} [get_canonical_archflags]" +build.args CC="${configure.cc}" CFLAGS="[get_canonical_archflags]" prefix=/opt/local +build.target fizmo-console fizmo-ncursesw + +destroot.args CC="${configure.cc}" CFLAGS="[get_canonical_archflags]" +destroot.target install-locales install-fizmo-console install-fizmo-ncursesw + +post-destroot { + file link -hard ${destroot}${prefix}/bin/fizmo \ + ${destroot}${prefix}/bin/fizmo-ncursesw + file link -hard ${destroot}${prefix}/share/man/man6/fizmo.6 \ + ${destroot}${prefix}/share/man/man6/fizmo-ncursesw.6 +} -destroot.args CC="${configure.cc} [get_canonical_archflags]"