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- {
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- {
23 Echo "you need libspectrum ( http://fuse-emulator.sourceforge.net/libspectrum.php/ ) to compile ZXEmuT!" ;
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- ;
36 for ca in $(JAMCONFIGARGS) {
38 nv = [ Match "^(\\-\\-.*?)=(.*)\$" : $(ca) : regexp ] ;
41 Echo "name:" "$(nv[1])" ;
42 Echo "value:" "$(nv[2])" ;
43 #if $(nv[1]) == "--prefix" {
44 # -configure-add-line- "PREFIX ?= $(nv[2]) ;" ;
47 Echo "single:" "$(ca)" ;