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 139308 2015-08-12 02:46:18Z jmr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | PortGroup cxx11 1.0 |
---|
7 | name widelands-devel |
---|
8 | conflicts widelands |
---|
9 | version build19 |
---|
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 | long_description Widelands is an open-source real-time strategy game. It \ |
---|
17 | is built upon the SDL and other open source libraries and \ |
---|
18 | is (and will always be) under heavy development. If you \ |
---|
19 | knew Settlers I & II™ (© Bluebyte), then you already have \ |
---|
20 | a rough idea what Widelands is all about because \ |
---|
21 | widelands is heavily inspired by those two games. |
---|
22 | |
---|
23 | homepage http://wl.widelands.org/ |
---|
24 | |
---|
25 | fetch.type bzr |
---|
26 | bzr.url lp:widelands |
---|
27 | bzr.revision 8131 |
---|
28 | |
---|
29 | depends_lib port:libsdl2 \ |
---|
30 | port:libsdl2_image \ |
---|
31 | port:libsdl2_mixer \ |
---|
32 | port:libsdl2_net \ |
---|
33 | port:libsdl2_ttf \ |
---|
34 | port:libsdl_gfx \ |
---|
35 | port:boost \ |
---|
36 | port:libpng \ |
---|
37 | port:glew \ |
---|
38 | port:lua |
---|
39 | |
---|
40 | cmake.out_of_source yes |
---|
41 | configure.args -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS" |
---|
42 | |
---|
43 | pre-destroot { |
---|
44 | xinstall -d ${destroot}${applications_dir}/Widelands.app/Contents/Resources \ |
---|
45 | ${destroot}${applications_dir}/Widelands.app/MacOS |
---|
46 | file copy ${worksrcpath}/data/images/logos/widelands.icns ${destroot}${applications_dir}/Widelands.app/Contents/Resources/widelands.icns |
---|
47 | set data " {\n\ |
---|
48 | CFBundleName = widelands;\n\ |
---|
49 | CFBundleDisplayName = Widelands;\n\ |
---|
50 | CFBundleIdentifier = \"org.widelands.wl\";\n\ |
---|
51 | CFBundleVersion = ${version};\n\ |
---|
52 | \"CFBundleInfoDictionaryVersion\" = \"6.0\";\n\ |
---|
53 | CFBundlePackageType = APPL;\n\ |
---|
54 | CFBundleSignature = \"????\";\n\ |
---|
55 | CFBundleExecutable = widelands;\n\ |
---|
56 | CFBundleIconFile = \"widelands.icns\";\n\ |
---|
57 | }" |
---|
58 | set filename "${destroot}${applications_dir}/Widelands.app/Contents/Info.plist" |
---|
59 | set fileId [open $filename "w"] |
---|
60 | puts -nonewline $fileId $data |
---|
61 | close $fileId |
---|
62 | } |
---|