Hello,
I am curently trying to build the new glob2 version 0.9.2. Since version
0.9.1, the build process is managed by scons, and it was already tricky
to find how to deal with it.
For version 0.9.2, I tried the same trick (mainly defining DATADIR in
addition to INSTALLDIR and BINDIR), but it looks like something was
changed again. After succesfully compiling, trying glob2 gives :
Fatal error : while loading data/texts.list.txt
src/GlobalContainer.cpp:436: failed assertion `false'
Abort trap
So it appears that glob2 is not looking at the right place, ie
/sw/share/glob2, as the files are there but not found.
I had a look on the macport page
http://trac.macports.org/projects/macports/browser/trunk/dports/games/glob2
where they patch FileManager.cpp, but I did not succeed using this method.
I attach my current glob2.info and glob2.patch.
Scons is still a long way to go.
Thanks for any help,
Alexandre
Package: glob2
Version: 0.9.2
Revision: 1
GCC: 4.0
Architecture: powerpc, i386
Maintainer: Alexandre Vial [EMAIL PROTECTED]
Depends: libvorbis0-shlibs, sdl-image-shlibs, sdl-ttf-shlibs, sdl-net-shlibs,
speex3-shlibs, boost1.34.nopython-shlibs, fribidi-shlibs, x11-shlibs
BuildDepends: scons, vorbis-tools, libvorbis0, libogg, sdl, sdl-image, sdl-ttf,
sdl-net, speex3, boost1.34.nopython, fribidi, fribidi-dev, x11-dev
Conflicts:
Source: http://dl.sv.nongnu.org/releases/%n/%v/%n-%v_withSound.tar.gz
Source-MD5: 946673cfb31dfbb54b4c768fc97aef14
SourceDirectory: glob2-%v
Patch: %n.patch
CompileScript:
scons osx=1 release=1 INSTALLDIR=%i/share BINDIR=%i/bin
DATADIR=%p/share/glob2/ FINKPREFIX=%p
InstallScript:
scons install
DocFiles: AUTHORS COPYING README README.hg INSTALL
InfoDocs:
Description: Innovative Real-Time Strategy (RTS) game
DescDetail:
Globulation 2 brings a new type of gameplay to RTS games. The player chooses
the number of units to assign to various tasks, and the units do their best
to satisfy the requests. This allows players to manage more units and focus on
strategy rather than individual unit's jobs. Globulation 2 also features AI
allowing single-player games or any possible combination of human-computer
teams. Also included is a scripting language for versatile gameplay or
tutorials and an integrated map editor. Globulation2 can be played in single
player mode, through your local network, or over the Internet with
Ysagoon Online Gaming (or YOG for short).
To play, type glob2 in Terminal.app.
DescPort:
To do...
Homepage: http://www.globulation2.org/
License: GPL
--- glob2-0.9.2/SConstruct.orig 2008-03-22 12:08:31.0 +0100
+++ glob2-0.9.2/SConstruct 2008-03-22 14:09:42.0 +0100
@@ -14,6 +14,8 @@
opts.Add(LINKFLAGS, Manually add to the LINKFLAGS, -g)
opts.Add(INSTALLDIR, Installation Directory, /usr/local/share)
opts.Add(BINDIR, Binary Installation Directory, /usr/local/bin)
+opts.Add(DATADIR, Final destination of data files, /usr/local/share)
+opts.Add(FINKPREFIX, Fink directory, /sw)
opts.Add(BoolOption(release, Build for release, 0))
opts.Add(BoolOption(profile, 'Build with profiling on', 0))
opts.Add(BoolOption(mingw, Build with mingw enabled if not
auto-detected, 0))
@@ -21,6 +23,10 @@
Help(opts.GenerateHelpText(env))
opts.Update(env)
opts.Save('options_cache.py', env)
+env.Append(CPPPATH = [ env[FINKPREFIX] + /include ])
+env.Append(CPPPATH = [ /usr/X11R6/include ])
+env.Append(LIBPATH = [ env[FINKPREFIX] + /lib])
+env.Append(LIBPATH = [ /usr/X11R6/lib ])
class Configuration:
@@ -40,7 +46,8 @@
configfile = Configuration()
configfile.add(PACKAGE, Name of package, \glob2\)
configfile.add(PACKAGE_BUGREPORT, Define to the address where bug
reports for this package should be sent., \[EMAIL PROTECTED])
-configfile.add(PACKAGE_DATA_DIR, data directory, \ +
env[INSTALLDIR] + \)
+#configfile.add(PACKAGE_DATA_DIR, data directory, \ +
env[INSTALLDIR] + \)
+configfile.add(PACKAGE_DATA_DIR, data directory, \ + env[DATADIR]
+ \)
configfile.add(PACKAGE_SOURCE_DIR, source directory, \
+env.Dir(#).abspath.replace(\\, ) + \)
configfile.add(PACKAGE_NAME, Define to the full name of this package.,
\Globulation 2\)
configfile.add(PACKAGE_TARNAME, Define to the one symbol short name of
this package., \glob2\)
@@ -176,8 +183,6 @@
else:
env.ParseConfig(sdl-config --cflags)
env.ParseConfig(sdl-config --libs)
-if isDarwinPlatform:
-env.Append(CXXFLAGS= -framework OpenGL )
env.Append(LIBS=['vorbisfile', 'SDL_ttf', 'SDL_image', 'SDL_net', 'speex'])
env[TARFILE] = env.Dir(#).abspath + /glob2- + env[VERSION] +
.tar.gz
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.