source: trunk/dports/games/fife/Portfile

Last change on this file was 120981, checked in by devans@…, 3 years ago

fife: rebuild to remove references to libpng15 from archived binary.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
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 120981 2014-06-13 16:12:26Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    fife
7version                 0.3.5
8revision                1
9maintainers             nomaintainer
10categories              games python
11platforms               darwin
12license                 LGPL-2.1+
13
14description             The FIFE game engine
15long_description        FIFE stands for Flexible Isometric Free Engine and \
16                        is a cross platform game creation framework.
17
18homepage                http://www.fifengine.net/
19master_sites            sourceforge:project/fife/active/src
20distname                ${name}_${version}
21
22checksums               rmd160  ccd94e7dd8c0487b81ee2e7076341ddb5e355018 \
23                        sha256  1d3c7a19d05ae426af6ccd50a8ba79a71eb6e6f18f0226d1abdaeae7fcf9d3a8
24
25depends_build           port:scons
26
27depends_lib             port:python27 \
28                        port:libsdl \
29                        port:libsdl_image \
30                        port:libsdl_ttf \
31                        port:boost \
32                        port:libogg \
33                        port:libvorbis \
34                        port:libguichan \
35                        port:swig-python
36
37patchfiles              patch-build-darwin-config.py.diff
38
39post-patch {
40    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/build/darwin-config.py
41    reinplace "s|@FRAMEWORKS_DIR@|${frameworks_dir}|g" ${worksrcpath}/build/darwin-config.py
42}
43
44use_configure           no
45use_parallel_build      no
46
47variant universal {}
48
49build.cmd               ${prefix}/bin/scons
50build.target            fife
51build.args              --prefix=${prefix} \
52                        --python-prefix=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
53build.env               CXX="${configure.cxx} [get_canonical_archflags cxx]" \
54                        SWIG=${prefix}/bin/swig
55
56# Check if this is still needed in 0.3.6
57# http://fife.trac.cvsdude.com/engine/ticket/575
58post-build {
59    system "install_name_tool -id ${prefix}/lib/libfife.dylib ${worksrcpath}/build/engine/release/libfife.dylib"
60}
61
62destroot.target         install-all
63eval destroot.args      ${build.args}
64eval destroot.env       ${build.env}
65
66livecheck.regex         src/${name}_(\[0-9.r\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.