Ticket #41914: bastet-0.43.diff
File bastet-0.43.diff, 2.4 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name bastet 7 version 0.4 17 version 0.43 8 8 categories games 9 9 platforms darwin 10 10 maintainers sfiera 11 license GPL-3+ 12 11 13 description Bastard Tetris is an antagonistic Tetris clone 12 14 long_description \ 13 15 Bastet stands for bastard tetris, and is a Tetris(R) \ … … 18 20 19 21 homepage http://fph.altervista.org/prog/bastet.shtml 20 22 master_sites http://fph.altervista.org/prog/files/ 21 checksums md5 48379dc98916ba083e9be5544f552a0622 23 extract.suffix .tgz 23 patchfiles patch-Makefile.diff24 24 25 depends_lib-append port:ncurses 25 checksums rmd160 d84fe09316238443ee884d2932b3ecb4c0191cb0 \ 26 sha256 e208c68684cc9b818a08b0d3f5f1e7ef381b1e4d8bc801a90b5ff6a8f00d8168 26 27 27 use_configure no 28 depends_lib-append port:boost \ 29 port:ncurses 28 30 29 build.args PREFIX=${prefix} 31 patchfiles patch-Makefile.diff 30 32 31 33 post-patch { 32 reinplace "s|termio\.h|termios.h|" ${worksrcpath}/bast.c34 reinplace "s|/var/games|${prefix}/var/games|g" ${worksrcpath}/bastet.6 ${worksrcpath}/Config.cpp 33 35 } 34 36 37 use_configure no 38 39 variant universal {} 40 41 build.env CXX=${configure.cxx} \ 42 CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \ 43 LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" 44 45 set scoredir ${prefix}/var/games/bastet 46 set scorefile ${scoredir}/bastet.scores 47 48 destroot.keepdirs ${scoredir} 49 35 50 destroot { 36 51 xinstall -m 755 ${worksrcpath}/bastet ${destroot}${prefix}/bin/ 37 xinstall -m 755 -d ${destroot}${prefix}/var/games/bastet \ 38 ${destroot}${prefix}/share/doc/${name} 39 xinstall -m 666 ${filespath}/bastet.scores \ 40 ${destroot}${prefix}/var/games/bastet/ 41 xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS COPYING NEWS README \ 42 README-Petris TODO ${destroot}${prefix}/share/doc/${name} 52 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} 53 xinstall -m 644 -W ${worksrcpath} AUTHORS LICENSE NEWS README \ 54 ${destroot}${prefix}/share/doc/${subport} 55 } 56 57 post-activate { 58 if {![file exists ${scorefile}]} { 59 touch ${scorefile} 60 file attributes ${scorefile} -permissions 666 61 } 43 62 } 44 63 45 64 livecheck.type regex