Ticket #52542: widelands-devel Portfile 1.9 v3

File widelands-devel Portfile 1.9 v3, 2.6 KB (added by ken-cunningham-webuse, 5 years ago)

update to r8131 from the dev tree (latest)

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 139308 2015-08-12 02:46:18Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           cxx11 1.0
7name                widelands-devel
8conflicts           widelands
9version             build19
10categories          games
11platforms           darwin
12maintainers         nomaintainer
13license             GPL-2+
14
15description         open-source real-time strategy game inspired by Settlers
16long_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
23homepage            http://wl.widelands.org/
24
25fetch.type          bzr
26bzr.url             lp:widelands
27bzr.revision        8131
28
29depends_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
40cmake.out_of_source yes
41configure.args      -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS"
42
43pre-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}