source: trunk/dports/games/angband/Portfile

Last change on this file was 154284, checked in by mf2k@…, 11 months ago

angband: Add maintainer. Update to version 4.0.5. (#52609)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 154284 2016-10-26 14:17:08Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                angband
7version             4.0.5
8set branch          [join [lrange [split ${version} .] 0 1] .]
9
10categories          games
11license             Noncommercial
12platforms           darwin
13
14maintainers         phas.ubc.ca:jfcaron
15
16description         a rogue-like dungeon exploration game (curses-based)
17long_description    Angband is a freeware computer dungeon exploration game \
18based (loosely) on the books of J.R.R.Tolkien. You explore a very deep \
19dungeon, kill monsters, try to equip yourself with the best weapons and \
20armor you can find, and finally face Morgoth - The Dark Enemy.
21
22homepage            http://rephial.org/
23master_sites        ${homepage}downloads/${branch}
24
25checksums           rmd160  3ef1c798f974fa03edc54b898d093bf6d5681b66 \
26                    sha256  0d769a0f349842b0c78cbcd1804a9e08f064e75ca26b957710e4c2a3eb14f852
27
28depends_build       port:autoconf \
29                    port:automake \
30                    port:libtool
31
32post-patch {
33    addgroup games
34}
35
36use_autoreconf      yes
37autoreconf.cmd      ./autogen.sh
38
39configure.args      --with-setgid=games --bindir=${prefix}/bin --without-x
40
41notes "
42If you receive the error 'Angband requires UTF-8 support', you need to set\
43LANG to a valid UTF-8 language such as:
44
45export LANG=en_US.UTF-8
46"
47
48variant x11 conflicts aqua universal {
49    depends_lib-append      port:ncurses \
50                            port:xorg-libXaw
51
52    configure.args-replace  --without-x --with-x
53}
54
55if {${os.platform} ne "darwin"} {
56    default_variants +x11
57}
58
59platform darwin {
60    variant aqua conflicts x11 requires universal description {Build the Cocoa front-end} {
61        # Makefile.osx hardcodes an i386/x86_64 universal build
62        supported_archs         i386 x86_64
63        configure.universal_archs i386 x86_64
64
65        use_configure       no
66
67        build {
68            system -W ${worksrcpath}/src "make -f Makefile.osx"
69        }
70
71        destroot.keepdirs   ${destroot}${applications_dir}/Angband.app/Contents/Resources/lib/info
72        destroot {
73            copy ${worksrcpath}/Angband.app ${destroot}${applications_dir}
74        }
75    }
76
77    if {![variant_isset x11]} {
78        default_variants +aqua
79    }
80
81    if {[variant_isset aqua]} {
82        default_variants +universal
83        variant_set universal
84    }
85}
86
87livecheck.type      regex
88livecheck.regex     ${name}-v(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.