[SM-Commit] GIT changes to master games grimoire by Pol Vinogradov (eabc514880b677cecbfffc263398b8c12653898a)

Pol Vinogradov scm at mail.sourcemage.org
Thu Aug 17 15:49:27 EDT 2006


GIT changes to master games grimoire by Pol Vinogradov <vin.public at gmail.com>:

 games-strategy-rts/glest/BUILD     |    7 ++++++
 games-strategy-rts/glest/DEPENDS   |   16 +++++++++++++++
 games-strategy-rts/glest/DETAILS   |   17 ++++++++++++++++
 games-strategy-rts/glest/HISTORY   |    2 +
 games-strategy-rts/glest/INSTALL   |    6 +++++
 games-strategy-rts/glest/PRE_BUILD |   38 +++++++++++++++++++++++++++++++++++++
 games-strategy-rts/glest/glest     |    7 ++++++
 7 files changed, 93 insertions(+)

New commits:
commit eabc514880b677cecbfffc263398b8c12653898a
Author: Pol Vinogradov <vin.public at gmail.com>
Commit: Pol Vinogradov <vin.public at gmail.com>

    sorry, forgot to add spell files, fixing this issue

diff --git a/games-strategy-rts/glest/BUILD b/games-strategy-rts/glest/BUILD
new file mode 100755
index 0000000..da8558c
--- /dev/null
+++ b/games-strategy-rts/glest/BUILD
@@ -0,0 +1,7 @@
+cd mk/linux                                          &&
+# default_games_build
+OPTS="$OPTS --bindir=${INSTALL_ROOT}/usr/games       \
+           --datadir=${INSTALL_ROOT}/usr/share/games \
+     --localstatedir=${INSTALL_ROOT}/var/games"      &&
+./configure ${OPTS}                                  &&
+jam
diff --git a/games-strategy-rts/glest/DEPENDS b/games-strategy-rts/glest/DEPENDS
new file mode 100755
index 0000000..a6cf155
--- /dev/null
+++ b/games-strategy-rts/glest/DEPENDS
@@ -0,0 +1,16 @@
+depends g++                                          &&
+depends jam                                          &&
+depends libvorbis "--with-vorbis=${TRACK_ROOT}/usr"  &&
+depends libogg "--with-ogg=${TRACK_ROOT}/usr"        &&
+depends openal                                       &&
+depends OPENGL                                       &&
+depends sdl                                          &&
+depends X11-LIBS                                     &&
+depends xerces-c                                     &&
+
+source  $GRIMOIRE/FUNCTIONS                          &&
+
+if  check_if_xorg_modular_libs  ;  then
+  depends libx11                                     &&
+  depends libxt
+fi
diff --git a/games-strategy-rts/glest/DETAILS b/games-strategy-rts/glest/DETAILS
new file mode 100755
index 0000000..22054fb
--- /dev/null
+++ b/games-strategy-rts/glest/DETAILS
@@ -0,0 +1,17 @@
+           SPELL=glest
+         VERSION=2.0.0
+          SOURCE=${SPELL}_source_${VERSION}.zip
+   SOURCE_URL[0]=${SOURCEFORGE_URL}/${SPELL}/${SOURCE}
+     SOURCE_HASH=sha512:75e2f68257b553bcff266544aaa2c53bc0f572c32bcd43712f03e85fa63953b29aca70e1f67883de15d36bacf1536c7c40790bcb9194823e4165511f93610ba7
+         SOURCE2=${SPELL}_data_${VERSION}.zip
+  SOURCE2_URL[0]=${SOURCEFORGE_URL}/${SPELL}/${SOURCE2}
+    SOURCE2_HASH=sha512:025c0b6135c3a40e6a851aea3a2ab59924ccfbab33c073b50bd84aba8e68a5b542f5868777df674b53e9e021513f2a2a3402a9fcc5bee2068b5e86c6ba005f9b
+SOURCE_DIRECTORY=${BUILD_DIRECTORY}/${SPELL}_source_${VERSION}
+        WEB_SITE=http://glest.org/
+         ENTERED=20060818
+      LICENSE[0]=GPL
+           SHORT="Glest is a cross-platform 3D realtime strategy game"
+cat << EOF
+Glest is a free 3D real time strategy game, available for several operating
+systems and that can be modified using XML and a set of tools
+EOF
diff --git a/games-strategy-rts/glest/HISTORY b/games-strategy-rts/glest/HISTORY
new file mode 100644
index 0000000..12349ae
--- /dev/null
+++ b/games-strategy-rts/glest/HISTORY
@@ -0,0 +1,2 @@
+2006-08-18 Pol Vinogradov <vin.public at gmail.com>
+	* BUILD, DETAILS, DEPENDS, INSTALL, PRE_BUILD, glest: created spell
diff --git a/games-strategy-rts/glest/INSTALL b/games-strategy-rts/glest/INSTALL
new file mode 100755
index 0000000..551d642
--- /dev/null
+++ b/games-strategy-rts/glest/INSTALL
@@ -0,0 +1,6 @@
+install ${SCRIPT_DIRECTORY}/${SPELL} ${INSTALL_ROOT}/usr/games/${SPELL}                      &&
+sedit "s:SMGL_DIR:${TRACK_ROOT}/usr/share/games/${SPELL}:" ${TRACK_ROOT}/usr/games/${SPELL}  &&
+cd ${SOURCE_DIRECTORY}  &&
+install -m 0755 mk/linux/${SPELL} ${INSTALL_ROOT}/usr/share/games/${SPELL}                   &&
+install -m 0644 mk/linux/${SPELL}.ini ${INSTALL_ROOT}/usr/share/games/${SPELL}               &&
+cp -R source/${SPELL}_game/{techs,data,maps,tilesets} ${INSTALL_ROOT}/usr/share/games/${SPELL}
diff --git a/games-strategy-rts/glest/PRE_BUILD b/games-strategy-rts/glest/PRE_BUILD
new file mode 100755
index 0000000..3df8686
--- /dev/null
+++ b/games-strategy-rts/glest/PRE_BUILD
@@ -0,0 +1,38 @@
+default_pre_build                &&
+cd ${SOURCE_DIRECTORY}           &&
+
+# dos2unix conversion
+local file                       &&
+for file in $(find {source,mk} -type f); do
+  sedit "s:\r::g" ${file}
+done                             &&
+
+cd ${SOURCE_DIRECTORY}/source    &&
+unpack_file 2                    &&
+
+# dirty hacks ;)
+sedit "s/ProjectileParticleSystem::strToTrajectory/strToTrajectory/"                             \
+shared_lib/include/graphics/particle.h  &&
+cd ${SPELL}_game       &&
+sedit "s:setFile(\"glest.log\"):setFile(\"${TRACK_ROOT}/var/log/glest.log\"):" main/program.cpp       &&
+sedit 's:#include "main_menu.h":#include <stdlib.h>\n#include <string.h>\n\n#include "main_menu.h":'  \
+menu/main_menu.cpp     &&
+sedit 's:config.save("glest.ini"):config.save(strcat(getenv("HOME"), "/.glest/glest.ini")):'          \
+menu/main_menu.cpp     &&
+sedit 's:#include "renderer.h":#include <stdlib.h>\n#include <string.h>\n\n#include "renderer.h":'    \
+graphics/renderer.cpp  &&
+sedit 's:config.save("glest.ini"):config.save(strcat(getenv("HOME"), "/.glest/glest.ini")):'          \
+graphics/renderer.cpp  &&
+sedit 's:#include "config.h":#include <stdlib.h>\n#include <string.h>\n\n#include "config.h":'   \
+global/config.cpp      &&
+sedit 's:properties.load("glest.ini"):properties.load(strcat(getenv("HOME"), "/.glest/glest.ini")):'  \
+global/config.cpp      &&
+cd ${SOURCE_DIRECTORY}/mk/linux  &&
+sedit "/COMPILER_CFLAGS_optimize/s:-O3 -g3:${CFLAGS}:" Jamrules      &&
+sedit "/COMPILER_C++FLAGS_optimize/s:-O3 -g3:${CXXFLAGS}:" Jamrules  &&
+sedit "/COMPILER_LFLAGS_optimize/s:-O3 -g3:${LDFLAGS}:" Jamrules     &&
+chmod a+x *.sh                   &&
+if [[ ! -e configure ]] ; then
+  ./autogen.sh
+fi                               &&
+cd ${SOURCE_DIRECTORY}
diff --git a/games-strategy-rts/glest/glest b/games-strategy-rts/glest/glest
new file mode 100644
index 0000000..76a9824
--- /dev/null
+++ b/games-strategy-rts/glest/glest
@@ -0,0 +1,7 @@
+#!/bin/sh
+mkdir -p $HOME/.glest
+cd SMGL_DIR
+if [[ ! -e $HOME/.glest/glest.ini ]] ; then
+  cp glest.ini $HOME/.glest
+fi
+./glest "${@}"



More information about the SM-Commit mailing list