# -*- 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 # $Id$ PortSystem 1.0 name angband version 4.0.5 set branch [join [lrange [split ${version} .] 0 1] .] categories games license Noncommercial platforms darwin maintainers phas.ubc.ca:jfcaron description a rogue-like dungeon exploration game (curses-based) long_description Angband is a freeware computer dungeon exploration game \ based (loosely) on the books of J.R.R.Tolkien. You explore a very deep \ dungeon, kill monsters, try to equip yourself with the best weapons and \ armor you can find, and finally face Morgoth - The Dark Enemy. homepage http://rephial.org/ master_sites ${homepage}downloads/${branch} checksums rmd160 3ef1c798f974fa03edc54b898d093bf6d5681b66 \ sha256 0d769a0f349842b0c78cbcd1804a9e08f064e75ca26b957710e4c2a3eb14f852 depends_build port:autoconf \ port:automake \ port:libtool post-patch { addgroup games } use_autoreconf yes autoreconf.cmd ./autogen.sh configure.args --with-setgid=games --bindir=${prefix}/bin --without-x notes " If you receive the error 'Angband requires UTF-8 support', you need to set\ LANG to a valid UTF-8 language such as: export LANG=en_US.UTF-8 " variant x11 conflicts aqua universal { depends_lib-append port:ncurses \ port:xorg-libXaw configure.args-replace --without-x --with-x } if {${os.platform} ne "darwin"} { default_variants +x11 } platform darwin { variant aqua conflicts x11 requires universal description {Build the Cocoa front-end} { # Makefile.osx hardcodes an i386/x86_64 universal build supported_archs i386 x86_64 configure.universal_archs i386 x86_64 use_configure no build { system -W ${worksrcpath}/src "make -f Makefile.osx" } destroot.keepdirs ${destroot}${applications_dir}/Angband.app/Contents/Resources/lib/info destroot { copy ${worksrcpath}/Angband.app ${destroot}${applications_dir} } } if {![variant_isset x11]} { default_variants +aqua } if {[variant_isset aqua]} { default_variants +universal variant_set universal } } livecheck.type regex livecheck.regex ${name}-v(\[0-9.\]+)${extract.suffix}