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 |
48 | | build.args CONFIG_FILE=config.macports.mk \ |
49 | | CC="${configure.cc} [get_canonical_archflags]" |
| 45 | build.args CC="${configure.cc}" CFLAGS="[get_canonical_archflags]" prefix=${prefix} |
| 46 | build.target fizmo-console fizmo-ncursesw |
| 47 | |
| 48 | destroot.args CC="${configure.cc}" CFLAGS="[get_canonical_archflags]" prefix=${prefix} DESTDIR="${destroot}/${prefix}" |
| 49 | destroot.target install-locales install-fizmo-console install-fizmo-ncursesw |
| 50 | |
| 51 | post-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 | } |