Hi everybody... I'm trying to make a package for e-uae, an amiga emulator (my first fink package)... The problem is that I want to use different compiling options on ppc and x86 architecture...
I followed the example given at http://fink.sourceforge.net/doc/ packaging/reference.php?phpLang=fr Here is the example : Info2: << Package: bar%type_pkg[-x11] Type: -x11 (boolean) Depends: (%type_raw[-x11] = -x11) x11 CompileScript: << #!/bin/bash -ev if [ "%type_raw[-x11]" == "-x11" ]; then ./configure %c --with-x11 else ./configure %c --without-x11 fi make << << 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... Any idea on the error in my CompileScript ? Is there another way to send different compile options on ppc and intel macs ? ------------------------------------------------------------------------- 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
