source: trunk/dports/games/widelands/Portfile

Last change on this file was 153719, checked in by khindenburg@…, 10 months ago

widelands: update to build18 maintainer #52188

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 153719 2016-10-09 00:52:00Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           cxx11 1.0
7
8name                widelands
9version             build18
10categories          games
11platforms           darwin
12maintainers         nomaintainer
13license             GPL-2+
14
15description         open-source real-time strategy game inspired by Settlers
16
17long_description    Widelands is an open-source real-time strategy game. It \
18                    is built upon the SDL and other open source libraries and \
19                    is (and will always be) under heavy development. If you \
20                    knew Settlers I & II (© Bluebyte), then you already have \
21                    a rough idea what Widelands is all about because \
22                    widelands is heavily inspired by those two games.
23
24homepage            http://wl.widelands.org/
25master_sites        https://launchpad.net/${name}/${version}/build-18/+download/
26use_bzip2           yes
27distfiles           ${distname}-src${extract.suffix}
28worksrcdir          ${distname}-src/
29checksums           rmd160  9af8cf7b8108475bec23ac94c2ac05f4d9a60d67 \
30                    sha256  6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3
31
32depends_lib         port:libsdl \
33                    port:libsdl_image \
34                    port:libsdl_mixer \
35                    port:libsdl_net \
36                    port:libsdl_ttf \
37                    port:libsdl_gfx \
38                    port:boost \
39                    port:glew \
40                    port:lua51
41
42cmake.out_of_source yes
43configure.env       LUA_DIR=${prefix}/lib/lua-5.1
44configure.args      -DLUA_INCLUDE_DIR="${prefix}/include/lua-5.1" -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS"
45
46pre-destroot {
47    xinstall -d ${destroot}${applications_dir}/Widelands.app/Contents/Resources \
48                ${destroot}${applications_dir}/Widelands.app/MacOS
49    file copy ${worksrcpath}/pics/widelands.icns ${destroot}${applications_dir}/Widelands.app/Contents/Resources/widelands.icns
50    set data    " {\n\
51                CFBundleName = widelands;\n\
52                CFBundleDisplayName = Widelands;\n\
53                CFBundleIdentifier = \"org.widelands.wl\";\n\
54                CFBundleVersion = ${version};\n\
55                \"CFBundleInfoDictionaryVersion\" = \"6.0\";\n\
56                CFBundlePackageType = APPL;\n\
57                CFBundleSignature = \"????\";\n\
58                CFBundleExecutable = widelands;\n\
59                CFBundleIconFile = \"widelands.icns\";\n\
60                }"
61    set filename "${destroot}${applications_dir}/Widelands.app/Contents/Info.plist"
62    set fileId [open $filename "w"]
63    puts -nonewline $fileId $data
64    close $fileId
65}
66
67notes \
68"On some systems, Widelands might demonstrate button artifacts or other visual \
69 \nanomalies. If this occurs, consider editing ~/.widelands/config to change \
70 \nthe opengl setting to opengl=\"false.\""
71
Note: See TracBrowser for help on using the repository browser.