# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4 # $Id: Portfile 142449 2015-11-12 08:30:00Z ryandesign@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup fph bastet 5037e410fde6fafe8e6bc4cf17a12ad98e01c17e version 0.43.1 revision 2 categories games platforms darwin maintainers ryandesign openmaintainer license GPL-3+ description Bastard Tetris is an antagonistic Tetris clone long_description \ Bastet stands for bastard tetris, and is a Tetris(R) \ clone which, instead of choosing your next brick at \ random, expressly checks to see which one causes you \ the most trouble. Playing Bastet can be a painful \ experience. homepage http://fph.altervista.org/prog/bastet.shtml checksums rmd160 ff411887c8326f120b859db7d52970cb895bf8f1 \ sha256 8dd16613623a3e0086fd2a2c036b47aadf9f96effe1513609d50f956f76a76db depends_lib-append port:boost \ port:ncurses set scoredir ${prefix}/var/games/${name} set scorefile ${scoredir}/bastet.scores2 post-patch { reinplace "s|/var/games|${scoredir}|g" ${worksrcpath}/bastet.6 ${worksrcpath}/Config.cpp } use_configure no variant universal {} build.env BOOST_PO=-lboost_program_options-mt \ CXX=${configure.cxx} \ CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" destroot.keepdirs ${scoredir} destroot { xinstall -m 755 ${worksrcpath}/bastet ${destroot}${prefix}/bin/ set docdir ${prefix}/share/doc/${subport} xinstall -m 755 -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} AUTHORS LICENSE NEWS README \ ${destroot}${docdir} } post-activate { if {![file exists ${scorefile}]} { touch ${scorefile} file attributes ${scorefile} -permissions 0666 } # Fix incorrect permissions set by previous versions of this port. if {[file attributes ${scorefile} -permissions] == 666} { file attributes ${scorefile} -permissions 0666 } }