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 | name widelands |
---|
6 | version 0.17.0-rc2 |
---|
7 | distname build17 |
---|
8 | distfiles ${name}-${distname}-rc2-src.tar.bz2 |
---|
9 | worksrcdir ${name}-${distname}-rc2-src/build |
---|
10 | use_bzip2 yes |
---|
11 | PortGroup cmake 1.0 |
---|
12 | categories games |
---|
13 | license GPL-2+ |
---|
14 | platforms darwin |
---|
15 | maintainers nomaintainer |
---|
16 | description widelands is an open source real-time strategy game. It is built upon the SDL and other open source libraries and is (and will always be) under heavy development. If you knew Settlers I & II™ (© Bluebyte), then you already have a rough idea what Widelands is all about because widelands is heavily inspired by those two games. |
---|
17 | |
---|
18 | homepage http://wl.widelands.org |
---|
19 | |
---|
20 | master_sites https://launchpad.net/${name}/${distname}/${distname}-rc2/+download/ |
---|
21 | |
---|
22 | checksums rmd160 98cfc877823cd1ca765be1ef9d8c59ad889cf5be \ |
---|
23 | sha256 5fb9f51ccde51c2854b4a8302cef9716cbe471dd7c6d57db66c745f8dc9489cc |
---|
24 | |
---|
25 | depends_lib port:libsdl \ |
---|
26 | port:libsdl_image \ |
---|
27 | port:libsdl_mixer \ |
---|
28 | port:libsdl_net \ |
---|
29 | port:libsdl_ttf \ |
---|
30 | port:libsdl_gfx \ |
---|
31 | port:boost \ |
---|
32 | port:glew \ |
---|
33 | port:lua |
---|
34 | |
---|
35 | #https://bugs.launchpad.net/widelands/+bug/744595 |
---|
36 | if {${configure.compiler} == "clang"} { |
---|
37 | configure.compiler llvm-gcc-4.2 |
---|
38 | } |
---|
39 | |
---|
40 | configure.args ../ \ |
---|
41 | -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS" |
---|
42 | |
---|
43 | post-destroot { |
---|
44 | file mkdir ${destroot}${applications_dir}/Widelands.app/Contents/Resources |
---|
45 | file copy ${worksrcpath}/../pics/widelands.icns ${destroot}${applications_dir}/Widelands.app/Contents/Resources/widelands.icns |
---|
46 | set data " {\n\ |
---|
47 | CFBundleName = widelands;\n\ |
---|
48 | CFBundleDisplayName = Widelands;\n\ |
---|
49 | CFBundleIdentifier = \"org.widelands.wl\";\n\ |
---|
50 | CFBundleVersion = ${version};\n\ |
---|
51 | \"CFBundleInfoDictionaryVersion\" = \"6.0\";\n\ |
---|
52 | CFBundlePackageType = APPL;\n\ |
---|
53 | CFBundleSignature = wdld;\n\ |
---|
54 | CFBundleExecutable = widelands;\n\ |
---|
55 | CFBundleIconFile = \"widelands.icns\";\n\ |
---|
56 | }" |
---|
57 | set filename "${destroot}${applications_dir}/Widelands.app/Contents/Info.plist" |
---|
58 | set fileId [open $filename "w"] |
---|
59 | puts -nonewline $fileId $data |
---|
60 | close $fileId |
---|
61 | } |
---|