Ticket #34001: Portfile.2

File Portfile.2, 2.5 KB (added by pusteblumekuchen@…, 13 years ago)

widelands1

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$
3
4PortSystem      1.0
5name            widelands
6version         0.17.0-rc2
7distname        build17
8distfiles       ${name}-${distname}-rc2-src.tar.bz2
9worksrcdir      ${name}-${distname}-rc2-src/build
10use_bzip2       yes
11PortGroup       cmake 1.0
12categories      games
13license         GPL-2+
14platforms       darwin
15maintainers     nomaintainer
16description     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
18homepage        http://wl.widelands.org
19
20master_sites    https://launchpad.net/${name}/${distname}/${distname}-rc2/+download/
21
22checksums       rmd160  98cfc877823cd1ca765be1ef9d8c59ad889cf5be \
23                sha256  5fb9f51ccde51c2854b4a8302cef9716cbe471dd7c6d57db66c745f8dc9489cc
24
25depends_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
36if {${configure.compiler} == "clang"} {
37    configure.compiler llvm-gcc-4.2
38}
39
40configure.args      ../ \
41                    -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS"
42
43post-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}