Ticket #34001: Portfile

File Portfile, 2.4 KB (added by pusteblumekuchen@…, 12 years ago)

widelands

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
35configure.compiler  llvm-gcc-4.2
36
37configure.args      ../ \
38                    -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS"
39
40post-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