games/py-fife: Update to 0.3.5, fix make package
- Update to 0.3.5 - Update pkg-plist - Add missing PKGNAMEPREFIX - Enable STAGE support - Switch BUILD_DEPENDS from swig13 to swig20 - Add LICENSE (LGPL21) - Replace USE_SCONS / SCONS_* with USES=scons - Re-order USE_* section - Patch and backport Sconscript changes to: a) Silence addition warnings [1] b) Set SWIG includes and outdir that are not being honoured by scons at the moment This commit combined with that from ports/185684 fixes building on 10.0+. [1] https://github.com/fifengine/fifengine/issues/792 PR: ports/182433 Approved by: Green Dog <fiziologus@gmail.com> (maintainer, via email) MFH: 2014Q1
This commit is contained in:
parent
747aa787c5
commit
b0d78a2bb7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339669
@ -2,11 +2,12 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= fife
|
||||
PORTVERSION= 0.3.4
|
||||
PORTVERSION= 0.3.5
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://sourceforge.net/projects/${PORTNAME}/files/active/src/:source \
|
||||
http://sourceforge.net/projects/${PORTNAME}/files/active/demos/:demo \
|
||||
http://sourceforge.net/projects/${PORTNAME}/files/active/tools/:tools
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
DISTFILES+= ${DISTNAME}.tar.gz:source \
|
||||
${DISTNAME}_demos.tar.gz:demo \
|
||||
@ -15,41 +16,39 @@ DISTFILES+= ${DISTNAME}.tar.gz:source \
|
||||
MAINTAINER= fiziologus@gmail.com
|
||||
COMMENT= Flexible Isometric Free Engine
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13
|
||||
LICENSE= LGPL21
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/swig2.0:${PORTSDIR}/devel/swig20
|
||||
LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
|
||||
libguichan.so:${PORTSDIR}/devel/guichan \
|
||||
libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \
|
||||
libpng15.so:${PORTSDIR}/graphics/png
|
||||
|
||||
USE_SDL= sdl ttf image
|
||||
|
||||
USE_SCONS= yes
|
||||
SCONS_ARGS= --prefix=${PREFIX} --python-prefix=${PYTHON_SITELIBDIR}
|
||||
SCONS_BUILDENV= SWIG=${LOCALBASE}/bin/swig \
|
||||
CXX=${CXX}
|
||||
SCONS_TARGET= fife-python
|
||||
SCONS_INSTALL_TARGET= install-python
|
||||
|
||||
USE_PYTHON= 2
|
||||
|
||||
USE_XORG= xcursor
|
||||
USES= openal:al pkgconfig scons
|
||||
USE_GL= gl
|
||||
USE_PYTHON= 2
|
||||
USE_SDL= sdl ttf image
|
||||
USE_XORG= xcursor
|
||||
|
||||
USES= openal:al pkgconfig
|
||||
ALL_TARGET= fife-python
|
||||
INSTALL_TARGET= install-python
|
||||
MAKE_ENV+= SWIG=${LOCALBASE}/bin/swig2.0
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's/X11R6/local/g; s/libpng/ligpng15/g' ${WRKSRC}/build/openbsd4-config.py && \
|
||||
${MV} ${WRKSRC}/build/openbsd4-config.py ${WRKSRC}/build/${PYTHON_PLATFORM}-config.py
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${DATADIR}
|
||||
${MV} ${WRKDIR}/tools ${DATADIR}
|
||||
${MV} ${WRKDIR}/demos ${DATADIR}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${MV} ${WRKDIR}/tools ${STAGEDIR}${DATADIR}
|
||||
${MV} ${WRKDIR}/demos ${STAGEDIR}${DATADIR}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for FILE in README AUTHORS CHANGES COPYING
|
||||
${MV} ${WRKSRC}/${FILE} ${DOCSDIR}
|
||||
${MV} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
SHA256 (fife_0.3.4.tar.gz) = 8a28d570ef8166b0b571047b8bdc482b09c05c4f9bb754f5564964b8c06dd6f7
|
||||
SIZE (fife_0.3.4.tar.gz) = 1398594
|
||||
SHA256 (fife_0.3.4_demos.tar.gz) = 4f76b921f2a8782ebaf168b24cdc2c94099084e260a61fa30a467b5edf3b5fc6
|
||||
SIZE (fife_0.3.4_demos.tar.gz) = 23355196
|
||||
SHA256 (fife_0.3.4_tools.tar.gz) = 90a3ea6c1b15ce87a535209f3f726e82fb06b518f3bbcf985b6950782227f98f
|
||||
SIZE (fife_0.3.4_tools.tar.gz) = 506204
|
||||
SHA256 (fife_0.3.5.tar.gz) = 1d3c7a19d05ae426af6ccd50a8ba79a71eb6e6f18f0226d1abdaeae7fcf9d3a8
|
||||
SIZE (fife_0.3.5.tar.gz) = 1383813
|
||||
SHA256 (fife_0.3.5_demos.tar.gz) = 3e4ae747da68c9a9a014b09312c7e62cd2fa1928aeda72200fec15bf9bbb4fe0
|
||||
SIZE (fife_0.3.5_demos.tar.gz) = 23347311
|
||||
SHA256 (fife_0.3.5_tools.tar.gz) = 47b6fe045c734813f14e71279cd0d999ae1485f928714950d90a2a20cd7b4fc1
|
||||
SIZE (fife_0.3.5_tools.tar.gz) = 502981
|
||||
|
14
games/py-fife/files/patch-engine__SConscript
Normal file
14
games/py-fife/files/patch-engine__SConscript
Normal file
@ -0,0 +1,14 @@
|
||||
# Add in -Iengine/core to includes can be found
|
||||
# Backport https://github.com/fifengine/fifengine/issues/792
|
||||
|
||||
--- ./engine/SConscript.orig 2014-01-11 21:05:39.567308621 +1100
|
||||
+++ ./engine/SConscript 2014-01-11 21:06:18.367282812 +1100
|
||||
@@ -161,7 +161,7 @@
|
||||
os.path.join('swigwrappers', 'python' ,'fife_wrap.h'),
|
||||
os.path.join('python', 'fife', 'fife.py')],
|
||||
source = os.path.join('swigwrappers', 'python' ,'fife.i'),
|
||||
- SWIGFLAGS=['-python','-c++','-w511'],
|
||||
+ SWIGFLAGS=['-python','-c++','-w511','-w473', '-w404','-Iengine/core','-outdir','engine/python/fife'],
|
||||
SWIGPATH='core',
|
||||
SWIGOUTDIR=Dir('#/engine/python/fife').srcnode().path)
|
||||
|
@ -526,7 +526,6 @@
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/scripts/common
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/scripts/agents
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/scripts
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/saves
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/objects/crates/empty_lid
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/objects/crates/dynamites_lid
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/objects/crates
|
||||
@ -558,11 +557,9 @@
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/misc/current_rendersetup
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/misc
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/maps
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/imports
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/gui/icons
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/gui
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/fonts
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola/cursors
|
||||
@dirrm %%DATADIR%%/demos/rio_de_hola
|
||||
@dirrm %%DATADIR%%/demos/pychan_demo/gui/icons
|
||||
@dirrm %%DATADIR%%/demos/pychan_demo/gui/backgrounds
|
||||
|
Loading…
Reference in New Issue
Block a user