> I am attaching something that works.
Hmm, well, _this_ time I am attaching them, sorry for the double post...
/v
--
Vincent Beffara
UMPA - ENS Lyon
46 Allée d'Italie
69364 LYON cedex 07
Tel: 04 72 72 85 25
Fax: 04 72 72 84 80
Package: glob2
Version: 0.9.1
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
BuildDepends: scons, vorbis-tools, libvorbis0, libogg, sdl, sdl-image, sdl-ttf,
sdl-net, speex3, boost1.34.nopython, fribidi, fribidi-dev
Conflicts:
Source: http://dl.sv.nongnu.org/releases/%n/%v/%n-%v.tar.gz
Source-MD5: 507da29c310f199f9b1a9a5f335b7a7a
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 TODO 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: <<
Scons does not find some files when checking, but compiling is ok, so exit
lines are commented.
<<
Homepage: http://www.globulation2.org/
License: GPL
diff -ruN glob2-0.9.1-orig/SConstruct glob2-0.9.1/SConstruct
--- glob2-0.9.1-orig/SConstruct 2007-09-02 05:14:53.000000000 +0200
+++ glob2-0.9.1/SConstruct 2007-09-14 00:10:19.000000000 +0200
@@ -4,12 +4,17 @@
opts.Add("LINKFLAGS", "Manually add to the LINKFLAGS", "")
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("mingw", "Build with mingw enabled if not
auto-detected", 0))
opts.Add(BoolOption("osx", "Build for OSX", 0))
Help(opts.GenerateHelpText(env))
opts.Update(env)
opts.Save('options_cache.py', env)
+
+ env.Append(CPPPATH = [ env["FINKPREFIX"] + "/include" ])
+ env.Append(LIBPATH = [ env["FINKPREFIX"] + "/lib"])
class Configuration:
@@ -29,7 +34,7 @@
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["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\"")
@@ -93,11 +98,6 @@
gl_libraries.append("GL")
elif conf.CheckLib('opengl32') and conf.CheckCHeader('GL/gl.h'):
gl_libraries.append("opengl32")
- else:
- #Quick fix for OSX, ignore libraries not found
- if not env['osx']:
- print "Could not find libGL or opengl32, or could not find GL/gl.h
or OpenGL/gl.h"
- Exit(1)
#Do checks for GLU, which is different on every system
if conf.CheckLib('GLU') and conf.CheckCHeader("GL/glu.h"):
@@ -106,13 +106,12 @@
gl_libraries.append("GLU")
elif conf.CheckLib('glu32') and conf.CheckCHeader('GL/glu.h'):
gl_libraries.append("glu32")
- else:
- print "Could not find libGLU or glu32, or could not find GL/glu.h or
OpenGL/glu.h"
- Exit(1)
if gl_libraries:
configfile.add("HAVE_OPENGL ", "Defined when OpenGL support is present
and compiled")
env.Append(LIBS=gl_libraries)
+
+ configfile.add("HAVE_OPENGL ", "Defined when OpenGL support is present and
compiled")
#Do checks for fribidi
if conf.CheckLib('fribidi') and conf.CheckCHeader('fribidi/fribidi.h'):
@@ -148,7 +147,7 @@
env.ParseConfig("sdl-config --cflags")
env.ParseConfig("sdl-config --libs")
if env['osx']:
- env.Append(CXXFLAGS="-framework OpenGL")
+ env.Append(FRAMEWORKS="OpenGL")
env.Append(LIBS=['vorbisfile', 'SDL_ttf', 'SDL_image', 'SDL_net', 'speex',
'boost_thread'])
env["TARFILE"] = env.Dir("#").abspath + "/glob2-" + env["VERSION"] +
".tar.gz"
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel