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 | configure.compiler llvm-gcc-4.2 |
---|
36 | |
---|
37 | configure.args ../ \ |
---|
38 | -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS" |
---|
39 | |
---|
40 | post-destroot { |
---|
41 | file mkdir ${destroot}/${applications_dir}/Widelands.app/Contents/Resources |
---|
42 | file copy ${worksrcpath}/../pics/widelands.icns ${destroot}/${applications_dir}/Widelands.app/Contents/Resources/widelands.icns |
---|
43 | set data " {\n\ |
---|
44 | CFBundleName = widelands;\n\ |
---|
45 | CFBundleDisplayName = Widelands;\n\ |
---|
46 | CFBundleIdentifier = \"org.widelands.wl\";\n\ |
---|
47 | CFBundleVersion = ${version};\n\ |
---|
48 | \"CFBundleInfoDictionaryVersion\" = \"6.0\";\n\ |
---|
49 | CFBundlePackageType = APPL;\n\ |
---|
50 | CFBundleSignature = wdld;\n\ |
---|
51 | CFBundleExecutable = widelands;\n\ |
---|
52 | CFBundleIconFile = \"widelands.icns\";\n\ |
---|
53 | }" |
---|
54 | set filename "${destroot}/${applications_dir}/Widelands.app/Contents/Info.plist" |
---|
55 | set fileId [open $filename "w"] |
---|
56 | puts -nonewline $fileId $data |
---|
57 | close $fileId |
---|
58 | } |
---|
59 | |
---|