1 PROJECT_NAME = I.V.A.N. ;
3 -configure-enable-disable-vars- +=
4 "sound" USE_SOUND "auto" "enable sound"
5 "zlib" USE_ZLIB "auto" "use ZLib"
6 "imlib2" USE_IMLIB2 "auto" "use imlib2"
8 "wizard" USE_WIZARD "auto" "disable 'wizard' mode"
9 "global-saves" USE_GLOBAL_SAVES "auto" "enable saves in \$HOME"
10 "pngshots" USE_PNG_SHOTS "tan" "disable png savegame shots (use IPU)"
14 rule -configure-preinit- {
20 -configure-pkg-config-necessary-
25 for local ca in $(JAMCONFIGARGS) {
26 if [ Match '^--prefix=.+$' : $(ca) ] {
33 # this is 'install' version, fix options
34 if $(USE_WIZARD) == "auto" { USE_WIZARD = ; }
35 if $(USE_GLOBAL_SAVES) == "auto" { USE_GLOBAL_SAVES = tan ; }
37 if $(USE_WIZARD) == "auto" { USE_WIZARD = tan ; }
38 if $(USE_GLOBAL_SAVES) == "auto" { USE_GLOBAL_SAVES = ; }
40 #Echo "PREFIX:" $(has-prefix) ;
41 #Echo "USE_WIZARD:" $(USE_WIZARD) ;
42 #Echo "USE_GLOBAL_SAVES:" $(USE_GLOBAL_SAVES) ;
45 -configure-add-line- "# sound disabled" ;
46 -configure-add-line- "DEFINES += DISABLE_SOUND ;" ;
48 -configure-pkg-config- "SDL Mixer" : SDL_mixer : : "DEFINES += DISABLE_SOUND ;" ;
52 -configure-add-line- "# ZLib disabled" ;
54 if ! [ -configure-pkg-config- "ZLib" : zlib : "DEFINES += USE_ZLIB ;" ] { USE_ZLIB = ; }
58 -configure-add-line- "# imlib2 disabled" ;
60 if ! [ -configure-pkg-config- "imlib2" : imlib2 : "DEFINES += HAVE_IMLIB2 ;" ] { USE_IMLIB2 = ; }
63 ### if $(HAVE_LIBPNG) {
64 ### Echo "MSG: libpng found" ;
65 ### lib-config "pkg-config libpng" ;
66 ### DEFINES += HAVE_LIBPNG ;
69 -configure-add-line- "# other options" ;
71 Echo "CFG: wizard mode enabled" ;
72 -configure-add-line- "DEFINES += WIZARD ;" ;
75 if $(USE_GLOBAL_SAVES) {
76 Echo "CFG: using saves in \$HOME" ;
78 Echo "CFG: using local saves" ;
79 -configure-add-line- "DEFINES += LOCAL_SAVES ;" ;
83 Echo "CFG: support for compressed saves turned on" ;
86 if $(USE_IMLIB2) && $(USE_PNG_SHOTS) {
87 Echo "CFG: savegame screenshots will be in PNG format" ;
89 Echo "CFG: savegame screenshots will be in internal format" ;
90 -configure-add-line- "DEFINES += SGAME_SHOTS_IPU ;" ;