Hi again,
> Thanks for the suggestion, but I failed to make it work.
>
> I added the following lines in Sconstruct :
>
> opts.Add("DATA_DIR", "Data Directory", "/sw/share")
>
> configfile.add("PACKAGE_DATA_DIR", "data directory", "\"" +
> env["DATA_DIR"] + "\"")
>
> and modified in the info file CompileScript :
>
> scons CXXFLAGS="-I%p/include -I%p/include/boost-1_34_1 -I/usr/X11R6/include
> " LINKFLAGS="-L%p/lib" osx="true" BINDIR=%i/bin INSTALLDIR=%i/share
> DATA_DIR=%p/share
>
> but there is actually no effect.
I am attaching something that works. Besides doing something reasonable
with %i/%d/%p it also enables OpenGL and sets release=1 (i.e. -O3). The
game is MUCH nicer with them :-)
But please remain the maintainer of the package!
> I also agree that commenting "exit 1" is not really clean, but as I do not
> understand why some .h are found and not the others, I will stay with this
> for now.
Mmmmkay, so most of them are fixed by doing
env.Append(CPPPATH=["/sw/include"]) and env.Append(LIBPATH=["/sw/lib"])
instead of setting them as CXXFLAGS. The reason being that SCons is
clever enough to look for header files without having to call gcc (or so
I believe) so CXXFLAGS is not actually used to look for them.
Only the OpenGL thing is problematic, and that seems to be a known
problem: g++ finds OpenGL/gl.h somewhere, but SCons doesn't. So I
removed those lines from the script altogether and set HAVE_OPENGL by
hand instead.
========
General question ti Fink developers, not glob2-specific:
BTW, one very nice thing about SCons is CacheDir() where it stores
object files and such. Setting this to be outside of the build dir (say
in /tmp or something) makes it possible to keep the cache across various
versions of a package. For packaging and debugging, it saves a lot of
time (second compilation is something like 15 seconds total).
Would it be a good idea to fix some canonical location
(/sw/var/cache/scons_cache) for it ?
Cheers,
/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
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel