source: trunk/dports/games/bastet/Portfile @ 139469

Last change on this file since 139469 was 139469, checked in by jmr@…, 4 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
2# $Id: Portfile 139469 2015-08-18 01:10:17Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        fph bastet 2c9d978e22ea78f47e3c522ac7c11d2223a1b8b4
8version             0.43.1
9revision            1
10categories          games
11platforms           darwin
12maintainers         ryandesign openmaintainer
13license             GPL-3+
14
15description         Bastard Tetris is an antagonistic Tetris clone
16long_description \
17  Bastet stands for bastard tetris, and is a Tetris(R) \
18  clone which, instead of choosing your next brick at \
19  random, expressly checks to see which one causes you \
20  the most trouble. Playing Bastet can be a painful \
21  experience.
22
23homepage            http://fph.altervista.org/prog/bastet.shtml
24
25checksums           rmd160  447fae4e2134ee4552ab2f82fa2f95d2e4841112 \
26                    sha256  064cc85c95c057b04b3d3f14d1c6bda56d6b0bec9e086df7f7d0188aadc69dea
27
28depends_lib-append  port:boost \
29                    port:ncurses
30
31post-patch {
32    reinplace "s|/var/games|${prefix}/var/games|g" ${worksrcpath}/bastet.6 ${worksrcpath}/Config.cpp
33}
34
35use_configure       no
36
37variant universal {}
38
39build.env           BOOST_PO=-lboost_program_options-mt \
40                    CXX=${configure.cxx} \
41                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
42                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
43
44set scoredir        ${prefix}/var/games/bastet
45set scorefile       ${scoredir}/bastet.scores2
46
47destroot.keepdirs   ${scoredir}
48
49destroot {
50  xinstall -m 755 ${worksrcpath}/bastet ${destroot}${prefix}/bin/
51
52    set docdir ${prefix}/share/doc/${subport}
53    xinstall -m 755 -d ${destroot}${docdir}
54    xinstall -m 644 -W ${worksrcpath} AUTHORS LICENSE NEWS README \
55        ${destroot}${docdir}
56}
57
58post-activate {
59    if {![file exists ${scorefile}]} {
60        touch ${scorefile}
61        file attributes ${scorefile} -permissions 666
62    }
63}
Note: See TracBrowser for help on using the repository browser.