1 | --- portfile-0.6.10 2012-03-17 16:28:11.000000000 +0100 |
---|
2 | +++ portfile-0.7.2 2012-03-17 16:28:20.000000000 +0100 |
---|
3 | @@ -3,8 +3,8 @@ |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name fizmo |
---|
7 | -version 0.6.10 |
---|
8 | -revision 1 |
---|
9 | +version 0.7.2 |
---|
10 | +revision 0 |
---|
11 | categories games |
---|
12 | maintainers spellbreaker.org:Christoph.Ender |
---|
13 | description Console-based Z-Machine interpreter for Infocom games. |
---|
14 | @@ -25,27 +25,34 @@ |
---|
15 | platforms darwin linux |
---|
16 | master_sites http://spellbreaker.org/~chrender/fizmo/source/ |
---|
17 | |
---|
18 | -checksums sha1 858a8e1f7f2fcc01b5bc9a42459f6ae4ce166b6b \ |
---|
19 | - rmd160 78c96833c95621831e871f4a36b3c1c0f3f198ff |
---|
20 | +checksums sha1 73cfd0562a3cf12e696d2260362d1bd4fc47cfc4 \ |
---|
21 | + rmd160 f5e8f31db5a84c2e18a2a12b17d54a29ceb87e47 |
---|
22 | |
---|
23 | depends_lib port:ncurses \ |
---|
24 | port:libsdl_sound \ |
---|
25 | port:libsndfile \ |
---|
26 | - port:libxml2 |
---|
27 | - |
---|
28 | -patchfiles patch-src-fizmo-Makefile.diff |
---|
29 | + port:libxml2 \ |
---|
30 | + port:xorg-libX11 \ |
---|
31 | + port:jpeg \ |
---|
32 | + port:libpng |
---|
33 | |
---|
34 | post-patch { |
---|
35 | - reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/config.macports.mk |
---|
36 | - reinplace "s|NCURSESW_INC_DIR = /usr/include|NCURSESW_INC_DIR = \$(DEFAULT_PREFIX)/include|g" ${worksrcpath}/config.macports.mk |
---|
37 | - reinplace "s|NCURSESW_LIB_DIR = /usr/lib|NCURSESW_LIB_DIR = \$(DEFAULT_PREFIX)/lib|g" ${worksrcpath}/config.macports.mk |
---|
38 | - reinplace "s|LIBXML2_INC_DIR = /usr/include/libxml2|LIBXML2_INC_DIR = \$(DEFAULT_PREFIX)/include/libxml2|g" ${worksrcpath}/config.macports.mk |
---|
39 | - reinplace "s|LIBXML2_LIB_DIR = /usr/lib|LIBXML2_LIB_DIR = \$(DEFAULT_PREFIX)/lib|g" ${worksrcpath}/config.macports.mk |
---|
40 | + file copy ${worksrcpath}/config.macports.mk ${worksrcpath}/config.mk |
---|
41 | + reinplace "s|/opt/local|${destroot}/${prefix}|g" ${worksrcpath}/config.mk |
---|
42 | } |
---|
43 | |
---|
44 | use_configure no |
---|
45 | |
---|
46 | -build.args CONFIG_FILE=config.macports.mk \ |
---|
47 | - CC="${configure.cc} [get_canonical_archflags]" |
---|
48 | +build.args CC="${configure.cc}" CFLAGS="[get_canonical_archflags]" prefix=/opt/local |
---|
49 | +build.target fizmo-console fizmo-ncursesw |
---|
50 | + |
---|
51 | +destroot.args CC="${configure.cc}" CFLAGS="[get_canonical_archflags]" prefix=/opt/local DESTDIR="${destroot}/${prefix}" |
---|
52 | +destroot.target install-locales install-fizmo-console install-fizmo-ncursesw |
---|
53 | + |
---|
54 | +post-destroot { |
---|
55 | + file link -hard ${destroot}${prefix}/bin/fizmo \ |
---|
56 | + ${destroot}${prefix}/bin/fizmo-ncursesw |
---|
57 | + file link -hard ${destroot}${prefix}/share/man/man6/fizmo.6 \ |
---|
58 | + ${destroot}${prefix}/share/man/man6/fizmo-ncursesw.6 |
---|
59 | +} |
---|
60 | |
---|
61 | -destroot.args CC="${configure.cc} [get_canonical_archflags]" |
---|