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 khindenburg@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | PortGroup cxx11 1.0 |
---|
7 | |
---|
8 | name widelands |
---|
9 | version build18 |
---|
10 | categories games |
---|
11 | platforms darwin |
---|
12 | maintainers nomaintainer |
---|
13 | license GPL-2+ |
---|
14 | |
---|
15 | description open-source real-time strategy game inspired by Settlers |
---|
16 | |
---|
17 | long_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 | |
---|
24 | homepage http://wl.widelands.org/ |
---|
25 | master_sites https://launchpad.net/${name}/${version}/build-18/+download/ |
---|
26 | use_bzip2 yes |
---|
27 | distfiles ${distname}-src${extract.suffix} |
---|
28 | worksrcdir ${distname}-src/ |
---|
29 | checksums rmd160 9af8cf7b8108475bec23ac94c2ac05f4d9a60d67 \ |
---|
30 | sha256 6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3 |
---|
31 | |
---|
32 | depends_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 | |
---|
42 | cmake.out_of_source yes |
---|
43 | configure.env LUA_DIR=${prefix}/lib/lua-5.1 |
---|
44 | configure.args -DLUA_INCLUDE_DIR="${prefix}/include/lua-5.1" -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS" |
---|
45 | |
---|
46 | pre-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 | |
---|
67 | notes \ |
---|
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 | |
---|