[114469] trunk/dports/games/fife

ryandesign at macports.org ryandesign at macports.org
Mon Dec 9 05:23:35 PST 2013


Revision: 114469
          https://trac.macports.org/changeset/114469
Author:   ryandesign at macports.org
Date:     2013-12-09 05:23:35 -0800 (Mon, 09 Dec 2013)
Log Message:
-----------
fife:

 * add modeline
 * update to 0.3.5
 * license LGPL-2.1+
 * update homepage
 * rewrite master_sites to avoid redirects
 * use python27 instead of python26
 * support non-standard prefix and frameworks_dir
 * add universal variant
 * use the right -arch flags
 * use absolute path to scons just to be sure
 * fix the install_name of the library
 * fix livecheck

Modified Paths:
--------------
    trunk/dports/games/fife/Portfile

Added Paths:
-----------
    trunk/dports/games/fife/files/
    trunk/dports/games/fife/files/patch-build-darwin-config.py.diff

Modified: trunk/dports/games/fife/Portfile
===================================================================
--- trunk/dports/games/fife/Portfile	2013-12-09 13:20:18 UTC (rev 114468)
+++ trunk/dports/games/fife/Portfile	2013-12-09 13:23:35 UTC (rev 114469)
@@ -1,3 +1,4 @@
+# -*- 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
 # $Id$
 
 PortSystem              1.0
@@ -3,23 +4,24 @@
 
 name                    fife
-version                 0.3.1
+version                 0.3.5
 maintainers             nomaintainer
 categories              games python
 platforms               darwin
-homepage                http://www.fifengine.de/
+license                 LGPL-2.1+
 
 description             The FIFE game engine
 long_description        FIFE stands for Flexible Isometric Free Engine and \
                         is a cross platform game creation framework.
 
-master_sites            sourceforge
+homepage                http://www.fifengine.net/
+master_sites            sourceforge:project/fife/active/src
+distname                ${name}_${version}
 
-checksums               md5     c67561b85e9cd0c7cc25306460e3176c \
-                        sha1    79a1cf404be10c4b6ecd6b7334a3d76514612aa8 \
-                        rmd160  a963e9063e3b6ef29a76d3566ff45df19c97f20b
+checksums               rmd160  ccd94e7dd8c0487b81ee2e7076341ddb5e355018 \
+                        sha256  1d3c7a19d05ae426af6ccd50a8ba79a71eb6e6f18f0226d1abdaeae7fcf9d3a8
 
 depends_build           port:scons
 
-depends_lib             port:python26 \
+depends_lib             port:python27 \
                         port:libsdl \
                         port:libsdl_image \
@@ -31,18 +33,33 @@
                         port:libguichan \
                         port:swig-python
 
+patchfiles              patch-build-darwin-config.py.diff
+
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/build/darwin-config.py
+    reinplace "s|@FRAMEWORKS_DIR@|${frameworks_dir}|g" ${worksrcpath}/build/darwin-config.py
+}
+
 use_configure           no
 use_parallel_build      no
 
-build.cmd               scons
+variant universal {}
+
+build.cmd               ${prefix}/bin/scons
 build.target            fife
 build.args              --prefix=${prefix} \
-                        --python-prefix=${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
-build.env               CC=${configure.cc} CXX=${configure.cxx} \
-                        CPP=${configure.cpp} SWIG=${prefix}/bin/swig
+                        --python-prefix=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
+build.env               CXX="${configure.cxx} [get_canonical_archflags cxx]" \
+                        SWIG=${prefix}/bin/swig
 
-destroot.cmd            scons
+# Check if this is still needed in 0.3.6
+# http://fife.trac.cvsdude.com/engine/ticket/575
+post-build {
+    system "install_name_tool -id ${prefix}/lib/libfife.dylib ${worksrcpath}/build/engine/release/libfife.dylib"
+}
+
 destroot.target         install-all
-destroot.args           --prefix=${prefix} \
-                        --python-prefix=${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
-destroot.env            DESTDIR=${destroot}
+eval destroot.args      ${build.args}
+eval destroot.env       ${build.env}
+
+livecheck.regex         src/${name}_(\[0-9.r\]+)${extract.suffix}

Added: trunk/dports/games/fife/files/patch-build-darwin-config.py.diff
===================================================================
--- trunk/dports/games/fife/files/patch-build-darwin-config.py.diff	                        (rev 0)
+++ trunk/dports/games/fife/files/patch-build-darwin-config.py.diff	2013-12-09 13:23:35 UTC (rev 114469)
@@ -0,0 +1,35 @@
+--- build/darwin-config.py.orig	2011-05-31 06:58:29.000000000 -0500
++++ build/darwin-config.py	2012-12-10 05:59:21.000000000 -0600
+@@ -27,17 +27,15 @@
+ def initEnvironment(env):
+ 
+ 		
+-	include_dirs = ['/opt/local/include',
+-		        '/usr/local/include',
+-			'/usr/X11/include',
+-			'/opt/local/include/SDL',
+-			'/opt/local/include/guichan',
+-			'/opt/local/include/boost',
++	include_dirs = ['@PREFIX@/include',
++			'@PREFIX@/include/SDL',
++			'@PREFIX@/include/guichan',
++			'@PREFIX@/include/boost',
+ 			'/System/Library/Frameworks/OpenAL.framework/Headers',
+-			'/opt/local/include/vorbis/',
++			'@PREFIX@/include/vorbis',
+ 			get_python_inc()]
+ 
+-	lib_dirs = ['/System/Library', '/opt/local/lib', '/usr/X11/lib']
++	lib_dirs = ['/System/Library', '@PREFIX@/lib']
+ 
+ 	env.Append(CPPPATH = include_dirs)
+ 	env.Append(LIBPATH = lib_dirs)
+@@ -45,7 +43,7 @@
+ 	return env
+ 	
+ def addExtras(env, opengl):
+-	env.Append(SHLINKFLAGS='-F/opt/local/Library/Frameworks')
++	env.Append(SHLINKFLAGS='-F at FRAMEWORKS_DIR@')
+ 	env.Append(SHLINKFLAGS='-framework OpenAL')
+ 	env.Append(SHLINKFLAGS='-framework Cocoa')
+ 	env.Append(SHLINKFLAGS='-framework CoreFoundation')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131209/6e42caaa/attachment.html>


More information about the macports-changes mailing list