it compiles, but still not working
[k8jam.git] / misc / configure_samples / Jamrules.configure.0
blobb918765b00409a5d0ec23522bcf95fb7d5102200
1 rule -configure-jim-found- {
2   -configure-add-line- LINKFLAGS.all "+=" -L$(1)/lib ";" ;
3   -configure-add-line- LINKLIBS.all "+=" -ljim -lm -ldl ";" ;
4   if [ pkg-config-has sqlite3 ] { -configure-add-line- LINKLIBS.all "+=" -lsqlite3 ";" ; }
5   -configure-add-line- HDRS "+=" $(1)/include ";" ;
9 rule -configure-jim-not-found- {
10   -configure-fatal- ;
11   Echo "you need Jim Tcl ( http://jim.tcl.tk/ ) to compile ZXEmuT!" ;
15 rule -configure-libspectrum-found- {
16   #-configure-add-line- LINKFLAGS.all "+=" -L$(1)/lib ";" ;
17   -configure-add-line- LINKLIBS.all "+=" -lspectrum ";" ;
21 rule -configure-libspectrum-not-found- {
22   -configure-fatal- ;
23   Echo "you need libspectrum ( http://fuse-emulator.sourceforge.net/libspectrum.php/ ) to compile ZXEmuT!" ;
27 rule -configure- {
28   -configure-pkg-config- "SDL" : sdl : : : "you need SDL to compile ZXEmuT!" ;
29   -configure-pkg-config- "alsa" : alsa : DEFINES "+=" USE_SOUND ";" ;
30   -configure-pkg-config- "libzip" : libzip : DEFINES "+=" USE_LIBZIP ";" ;
31   -configure-pkg-config- "imlib2" : imlib2 : DEFINES "+=" USE_IMLIB2 ";" ;
32   -configure-detect-library- "jim-tcl" : libjim.a : jim.h : /opt/jim /opt/jim/jim-tcl : -configure-jim-found- : -configure-jim-not-found- ;
33   -configure-detect-library- "libspectrum" : libspectrum.a : libspectrum.h : : -configure-libspectrum-found- : -configure-libspectrum-not-found- ;
35   local ca ;
36   for ca in $(JAMCONFIGARGS) {
37     local nv ;
38     nv = [ Match "^(\\-\\-.*?)=(.*)\$" : $(ca) : regexp ] ;
39     if $(nv[1]) {
40       Echo "$(ca)" ;
41       Echo "name:" "$(nv[1])" ;
42       Echo "value:" "$(nv[2])" ;
43       #if $(nv[1]) == "--prefix" {
44       #  -configure-add-line- "PREFIX ?= $(nv[2]) ;" ;
45       #}
46     } else {
47       Echo "single:" "$(ca)" ;
48     }
49   }
53 configure ;