diff options
author | oliver <oliver@FreeBSD.org> | 2005-10-06 02:08:44 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2005-10-06 02:08:44 +0800 |
commit | 181def1a51773acdb3bbae0a370a9d127cc15939 (patch) | |
tree | 32a8cca95a3af46b4e6eef2343203441b39a2474 /games/ember | |
parent | 12368b8112ef786b1378ca8b63f68258170e9250 (diff) | |
download | freebsd-ports-gnome-181def1a51773acdb3bbae0a370a9d127cc15939.tar.gz freebsd-ports-gnome-181def1a51773acdb3bbae0a370a9d127cc15939.tar.zst freebsd-ports-gnome-181def1a51773acdb3bbae0a370a9d127cc15939.zip |
depend on wfut since it is needed to run ember (right now)
Diffstat (limited to 'games/ember')
-rw-r--r-- | games/ember/Makefile | 7 | ||||
-rw-r--r-- | games/ember/files/patch-ember | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/games/ember/Makefile b/games/ember/Makefile index f5f86d7ac573..44dadde6229f 100644 --- a/games/ember/Makefile +++ b/games/ember/Makefile @@ -7,6 +7,7 @@ PORTNAME= ember PORTVERSION= 0.3.2 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=worldforge @@ -25,6 +26,8 @@ LIB_DEPENDS= sigc-2.0:${PORTSDIR}/devel/libsigc++20 \ mercator-0.2.4:${PORTSDIR}/devel/mercator \ openal.0:${PORTSDIR}/audio/openal +RUN_DEPENDS= ${X11BASE}/bin/WFUT.jar:${PORTSDIR}/devel/wfut + CONFIGURE_ARGS= --with-png-prefix=${LOCALBASE} --enable-binreloc --program-transform-name= USE_SDL= sdl image USE_REINPLACE= YES @@ -57,6 +60,10 @@ post-patch: @${REINPLACE_CMD} -e 's|#include "OgrePagingLandScapeIntersectionSceneQuery.h"||' \ ${WRKSRC}/src/components/ogre/SceneManagers/EmberPagingSceneManager/src/OgrePagingLandScapeSceneManager.cpp @${REINPLACE_CMD} -e 's| install-dist_docDATA | |g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e '\ + /Plugin=Plugin_CgProgramManager.so/d; \ + s|/usr/lib/OGRE|${X11BASE}/lib/OGRE|' \ + ${WRKSRC}/src/components/ogre/plugins.cfg .if ${OSVERSION} < 500000 @${REINPLACE_CMD} -e 's|lrintf|(long int)rintf|g' \ ${WRKSRC}/src/components/ogre/environment/meshtree/TStem.cpp \ diff --git a/games/ember/files/patch-ember b/games/ember/files/patch-ember index 18aa9e40e171..0a5e86dfba96 100644 --- a/games/ember/files/patch-ember +++ b/games/ember/files/patch-ember @@ -1,6 +1,6 @@ --- /dev/null Mon Oct 3 20:13:37 2005 +++ ember Mon Oct 3 20:17:51 2005 -@@ -0,0 +1,128 @@ +@@ -0,0 +1,129 @@ +#!/bin/sh + + @@ -80,12 +80,12 @@ + # See if Updater exists in home dir + if [ ! -e $homedata/$WFUT_JAR ] ; then + # Check to see if its in the install dir -+ if [ -e $datadir/$WFUT_JAR ] ; then ++ if [ -e $bindir/$WFUT_JAR ] ; then + # Install into home dir + echo "Installing Updater" + + # Copy WFUT to home dir -+ cp $datadir/$WFUT_JAR $homedata ++ cp $bindir/$WFUT_JAR $homedata + + fi + fi @@ -127,5 +127,6 @@ +# Execute real ember binary +echo "Starting Ember...." +#we have to do the LD_PRELOAD thing, because else at least I get an error: libnvidia-tls.so.1: cannot handle TLS data /ehj -+LD_PRELOAD=libGL.so.1 $bindir/ember.bin --binrelocloading ++[ ! -f $homedata/plugins.cfg ] && cp $etcdir/plugins.cfg $homedata/ ++LD_PRELOAD=libGL.so.1 $bindir/ember.bin + |