# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4 # $Id: Portfile 139469 2015-08-18 01:10:17Z jmr@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup fph bastet 2c9d978e22ea78f47e3c522ac7c11d2223a1b8b4 version 0.43.1 revision 1 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 447fae4e2134ee4552ab2f82fa2f95d2e4841112 \ sha256 064cc85c95c057b04b3d3f14d1c6bda56d6b0bec9e086df7f7d0188aadc69dea depends_lib-append port:boost \ port:ncurses post-patch { reinplace "s|/var/games|${prefix}/var/games|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]" set scoredir ${prefix}/var/games/bastet set scorefile ${scoredir}/bastet.scores2 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 666 } }