Ticket #33662: udiff-portfile-0.6.10-to-portfile-0.7.2-1.txt

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