Ticket #52609: PortFile

File PortFile, 2.5 KB (added by jfcaron3, 8 years ago)

Updated PortFile, linted, with maintainer.

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$
3
4PortSystem          1.0
5
6name                angband
7version             4.0.5
8set branch          [join [lrange [split ${version} .] 0 1] .]
9categories          games
10license             Noncommercial
11platforms           darwin
12maintainers         phas.ubc.ca:jfcaron
13description         a rogue-like dungeon exploration game (curses-based)
14long_description    Angband is a freeware computer dungeon exploration game \
15based (loosely) on the books of J.R.R.Tolkien. You explore a very deep \
16dungeon, kill monsters, try to equip yourself with the best weapons and \
17armor you can find, and finally face Morgoth - The Dark Enemy.
18homepage            http://rephial.org/
19master_sites        ${homepage}downloads/${branch}
20checksums           rmd160  3ef1c798f974fa03edc54b898d093bf6d5681b66 \
21                    sha256  0d769a0f349842b0c78cbcd1804a9e08f064e75ca26b957710e4c2a3eb14f852
22depends_build       port:autoconf \
23                    port:automake \
24                    port:libtool
25post-patch {
26    addgroup games
27}
28use_autoreconf      yes
29autoreconf.cmd      ./autogen.sh
30configure.args      --with-setgid=games --bindir=${prefix}/bin --without-x
31notes "
32If you receive the error 'Angband requires UTF-8 support', you need to set\
33LANG to a valid UTF-8 language such as:
34export LANG=en_US.UTF-8
35"
36variant x11 conflicts aqua universal {
37    depends_lib-append      port:ncurses \
38                            port:xorg-libXaw
39    configure.args-replace  --without-x --with-x
40}
41if {${os.platform} ne "darwin"} {
42    default_variants +x11
43}
44platform darwin {
45    variant aqua conflicts x11 requires universal description {Build the Cocoa front-end} {
46        # Makefile.osx hardcodes an i386/x86_64 universal build
47        supported_archs         i386 x86_64
48        configure.universal_archs i386 x86_64
49        use_configure       no
50        build {
51            system -W ${worksrcpath}/src "make -f Makefile.osx"
52        }
53        destroot.keepdirs   ${destroot}${applications_dir}/Angband.app/Contents/Resources/lib/info
54        destroot {
55            copy ${worksrcpath}/Angband.app ${destroot}${applications_dir}
56        }
57    }
58    if {![variant_isset x11]} {
59        default_variants +aqua
60    }
61    if {[variant_isset aqua]} {
62        default_variants +universal
63        variant_set universal
64    }
65}
66livecheck.type      regex
67livecheck.regex     ${name}-v(\[0-9.\]+)${extract.suffix}