Ticket #12152: frotz.diff

File frotz.diff, 1.3 KB (added by ehainry@…, 17 years ago)
  • (a) Portfile vs. (b) frotz.Portfile.new

    a b  
    88long_description  Frotz provides a portable implementation of the zcode \
    99                  virtual machine used for all Infocom text adventures and \
    1010                  many of those written by other authors.
    11 homepage          http://www.cs.csubak.edu/~driffi/proj/frotz/
    12 master_sites      http://www.cs.csubak.edu/~dgriffi/proj/frotz/files/frotz-2.43.tar.gz
    13 checksums         frotz-2.43.tar.gz md5 efe51879e012b92bb8d5f4a82e982677
     11homepage          http://frotz.homeunix.org/frotz/
     12master_sites      ${homepage}files/
     13checksums         md5 efe51879e012b92bb8d5f4a82e982677
     14depends_lib   port:ncurses
    1415patchfiles        patch-Makefile patch-src-common-main.c \
    1516                  patch-src-common-process.c
    1617configure        {
     
    1819                "${worksrcpath}/Makefile"
    1920        reinplace "s|MAN_PREFIX = \$(PREFIX)|MAN_PREFIX = \$(PREFIX)/share|" \
    2021                "${worksrcpath}/Makefile"
     22        reinplace "s|#LIB = -L/usr/local/lib|LIB = -L${prefix}/lib|" \
     23                "${worksrcpath}/Makefile"
     24        reinplace "s|#INCL = -I/usr/local/include|INCL = -I${prefix}/include|" \
     25                "${worksrcpath}/Makefile"
    2126}
    2227
    23 destroot {
     28pre-destroot {
    2429        reinplace "s|^PREFIX = ${prefix}|PREFIX = ${destroot}${prefix}|" \
    2530                "${worksrcpath}/Makefile"
    26         system "cd ${worksrcpath} && make install"
    2731}
    2832