1 | --- Portfile-0.6.10.txt 2011-08-17 02:58:29.000000000 +0200 |
---|
2 | +++ Portfile-0.7.1.txt 2011-11-07 20:26:06.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.1 |
---|
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 d5b864acf7a8a1fee22f973088f84df361a180b4 \ |
---|
21 | + rmd160 c180093513b7abcd98d53d53912f71bf1245c4e5 |
---|
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]" |
---|
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]" |
---|