Ticket #65405: Portfile.diff
File Portfile.diff, 2.7 KB (added by mbrethen, 2 years ago) |
---|
-
Portfile
old new 4 4 5 5 name frotz 6 6 version 2.53 7 revision 1 7 8 categories games 8 9 platforms darwin 9 10 maintainers nomaintainer … … 14 15 virtual machine used for all Infocom text adventures and many of those \ 15 16 written by other authors. 16 17 homepage https://davidgriffith.gitlab.io/frotz/ 17 master_sites http ://www.ifarchive.org/if-archive/infocom/interpreters/frotz/18 master_sites https://gitlab.com/DavidGriffith/frotz/-/archive/${version}/ 18 19 19 20 checksums rmd160 323e24a026b1418713c84ad170ad36f3680d0bb8 \ 20 21 sha256 ed288b2ddad6c100f7ad7cb6ee8c867053d75144e96160b5ba00abb8969cdf30 \ … … 24 25 depends_lib port:ncurses 25 26 patchfiles patch-Makefile 26 27 28 post-patch { 29 reinplace "s|@PREFIX@|${prefix}|" "${worksrcpath}/Makefile" 30 } 31 27 32 use_configure no 28 33 29 variant universal {} 34 universal_variant no 35 36 variant snd description {enable sound support} { 37 depends_lib-append port:libao \ 38 port:libmodplug \ 39 port:libsamplerate \ 40 port:libsndfile \ 41 port:libvorbis 42 } 43 44 variant sdl requires snd description {SDL interface} { 45 depends_lib-append port:freetype \ 46 port:libsdl \ 47 port:libsdl2_mixer \ 48 port:libpng \ 49 port:openjpeg \ 50 port:zlib 51 } 52 53 build.args CC="${configure.cc} [get_canonical_archflags cc]" 30 54 31 build.env PREFIX=${prefix} \ 32 SYSCONFDIR=${prefix}/etc \ 33 CC=${configure.cc} \ 34 CFLAGS=[get_canonical_archflags cc] \ 35 SOUND_TYPE=none 36 build.target curses 55 if {![variant_isset sdl] && ![variant_isset snd]} { 56 build.target nosound 57 destroot.target install_frotz 58 } elseif {![variant_isset sdl] && [variant_isset snd]} { 59 build.target curses 60 destroot.target install_frotz 61 } else { 62 build.target sdl 63 destroot.target install_sdl 64 } 37 65 38 destroot.env {*}${build.env} 66 destroot.args {*}${build.args} 67 68 post-destroot { 69 set docdir ${prefix}/share/doc/${name} 70 xinstall -d ${destroot}${docdir} 71 xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog CONTRIBUTORS \ 72 COPYING HOW_TO_PLAY README TODO ${destroot}${docdir} 73 } 39 74 40 75 if {${os.platform} eq "darwin" && ${os.major} <= 10} { 41 76 build.env-append NO_STRDUP=yes 42 77 } 43 78 44 # TODO: sound and SDL variants or subports