aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2009-05-07 17:05:10 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2009-05-07 17:05:10 +0000
commitce04012d047e561f282386bad48d27b64d335cee (patch)
treea0aa11ccb4fc8168c5632403ec9fccef75792dae /games
parent9a0e4bdac5e2948bf5a42d2c3f998367fe5829ed (diff)
downloadports-ce04012d047e561f282386bad48d27b64d335cee.tar.gz
ports-ce04012d047e561f282386bad48d27b64d335cee.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/freeorion/Makefile8
-rw-r--r--games/freeorion/pkg-plist1
2 files changed, 9 insertions, 0 deletions
diff --git a/games/freeorion/Makefile b/games/freeorion/Makefile
index 651946a65ff0..6c35a7f60269 100644
--- a/games/freeorion/Makefile
+++ b/games/freeorion/Makefile
@@ -40,6 +40,14 @@ SCONS_ARGS+= release=yes
post-patch:
@${REINPLACE_CMD} -e 's|ND_coord_i|ND_coord|g' \
${WRKSRC}/UI/TechTreeWnd.cpp
+ @${REINPLACE_CMD} -e 's|"ogre_plugins.cfg"|"${DATADIR}/ogre_plugins.cfg"|g' \
+ ${WRKSRC}/client/human/chmain.cpp
+ @${REINPLACE_CMD} -e 's|Plugin=Plugin_CgProgramManager|#&|g; \
+ s|\(PluginFolder=\)\.|\1${LOCALBASE}/lib/OGRE|g' \
+ ${WRKSRC}/ogre_plugins.cfg
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/ogre_plugins.cfg ${DATADIR}
maint-gen-distfile:
@if [ -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
diff --git a/games/freeorion/pkg-plist b/games/freeorion/pkg-plist
index cd13f2a062f8..ee0429c924af 100644
--- a/games/freeorion/pkg-plist
+++ b/games/freeorion/pkg-plist
@@ -1517,6 +1517,7 @@ bin/freeoriond
%%DATADIR%%/default/swe_stringtable.txt
%%DATADIR%%/default/techs.txt
%%DATADIR%%/default/universe_tables.txt
+%%DATADIR%%/ogre_plugins.cfg
@dirrm %%DATADIR%%/default/AI
@dirrm %%DATADIR%%/default/data/art/stars_sidepanel
@dirrm %%DATADIR%%/default/data/art/hulls_design