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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name angband |
---|
7 | version 4.0.5 |
---|
8 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
9 | categories games |
---|
10 | license Noncommercial |
---|
11 | platforms darwin |
---|
12 | maintainers phas.ubc.ca:jfcaron |
---|
13 | description a rogue-like dungeon exploration game (curses-based) |
---|
14 | long_description Angband is a freeware computer dungeon exploration game \ |
---|
15 | based (loosely) on the books of J.R.R.Tolkien. You explore a very deep \ |
---|
16 | dungeon, kill monsters, try to equip yourself with the best weapons and \ |
---|
17 | armor you can find, and finally face Morgoth - The Dark Enemy. |
---|
18 | homepage http://rephial.org/ |
---|
19 | master_sites ${homepage}downloads/${branch} |
---|
20 | checksums rmd160 3ef1c798f974fa03edc54b898d093bf6d5681b66 \ |
---|
21 | sha256 0d769a0f349842b0c78cbcd1804a9e08f064e75ca26b957710e4c2a3eb14f852 |
---|
22 | depends_build port:autoconf \ |
---|
23 | port:automake \ |
---|
24 | port:libtool |
---|
25 | post-patch { |
---|
26 | addgroup games |
---|
27 | } |
---|
28 | use_autoreconf yes |
---|
29 | autoreconf.cmd ./autogen.sh |
---|
30 | configure.args --with-setgid=games --bindir=${prefix}/bin --without-x |
---|
31 | notes " |
---|
32 | If you receive the error 'Angband requires UTF-8 support', you need to set\ |
---|
33 | LANG to a valid UTF-8 language such as: |
---|
34 | export LANG=en_US.UTF-8 |
---|
35 | " |
---|
36 | variant x11 conflicts aqua universal { |
---|
37 | depends_lib-append port:ncurses \ |
---|
38 | port:xorg-libXaw |
---|
39 | configure.args-replace --without-x --with-x |
---|
40 | } |
---|
41 | if {${os.platform} ne "darwin"} { |
---|
42 | default_variants +x11 |
---|
43 | } |
---|
44 | platform 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 | } |
---|
66 | livecheck.type regex |
---|
67 | livecheck.regex ${name}-v(\[0-9.\]+)${extract.suffix} |
---|