On Tue, Aug 01, 2006 at 02:08:22PM +0200, Benjamin Prud'homme wrote: > > Now here is the interesting part of my .info file : > ConfigureParams: --with-sdl-gfx --with-sdl-sound > CompileScript: << > #!/bin/bash -ev > if [ "$(uname -p)" = "powerpc" ]; then > ./configure %c > else > ./configure %c --disable-sdltest > fi > make > << > > As you can see, I want fink to compile with the --with-sdl-gfx -- > with-sdl-sound options on both ppc and intel cpus and add the -- > disable-sdltest option for intel cpus as compiling would fail without > it... But it seems my CompileScript doesn't work... I don't know why > as it looks like the one in the example from fink documentation and > the same script does work very well when ran directly in the > Terminal... Here is the message I get on my ppc mac : > > > bzip2 -dc /sw/src/e-uae-0.8.29-WIP3.tar.bz2 | /sw/bin/tar -xf - --no- > same-owner --no-same-permissions > /var/tmp/tmp.1.3pCaUp > #!/bin/bash -ev > ./configure --prefix=/sw --with-sdl-gfx --with-sdl-sound -- > disable-sdltest > fi > /var/tmp/tmp.1.3pCaUp: line 3: syntax error near unexpected token `fi' > ### execution of /var/tmp/tmp.1.3pCaUp failed, exit code 2 > Removing build lock...
1. What version of fink? Does it work (or behave differently) if you remove all the leading whitespace on the #! line in the script? Does 'fink dumpinfo -fcompilescript YOURPACKAGENAME' indicate any weird parsing has happened? 2. Might be better to use %m instead of your own uname call (that's why we have it:) or at least hard-code it as /usr/bin/uname for safety. If you take the %m approach, I think you can use standard variant syntax in the ConfigureParams field. 3. Please disable sdl tests on powerpc also. The standard sdl test requires that the build process can access the Aqua GUI, which means it can't be built on remotely-accessed machines. dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-devel
