configure fixes, N900 fixes
[awish.git] / Jamrules.configure
blobbb5f1a33ad3a0c5411a45f399177b5bcb7b08186
1 PROJECT_NAME = Awish ;
3 # "auto": check with pkg-config or so, show '--disable-xxx'
4 # "": disabled by default, show '--enable-xxx'
5 # non-empty string: enabled by default, show '--disable-xxx'
6 -configure-enable-disable-vars- +=
7   "sound"  USE_SOUND  "auto"  "sound support"
11 rule -configure-user-help- {
12   Echo "install options:" ;
13   Echo "  --install-awasm  install Awish assembler" ;
14   Echo "  --install-vmsrc  install Awish VM source" ;
18 rule -configure-options-with-title- { WITH_TITLE = tan ; }
19 rule -configure-options-without-title- { WITH_TITLE = ; }
21 rule -configure-options-with-tools- { BUILD_TOOLS = tan ; }
22 rule -configure-options-without-tools- { BUILD_TOOLS = ; }
24 rule -configure-options-install-awasm- { INSTALL_AWASM = tan ; }
25 rule -configure-options-install-vmsrc- { INSTALL_VMSRC = tan ; }
27 rule -configure-options-force-sound- { USE_SOUND = forced ; }
29 rule -configure-options-windoze- { WINDOZE = tan ; }
32 rule -configure- {
33   if ! $(WINDOZE) {
34     -configure-pkg-config-necessary- "SDL" "sdl < 2.0" ;
35   } else {
36     if $(USE_SOUND) { USE_SOUND = "forced" ; }
37   }
38   if $(USE_SOUND) = "auto" || $(USE_SOUND) = "tan" {
39     if ! [ -configure-pkg-config- "SDL_mixer" : SDL_mixer : "NOSOUND = ;" : "NOSOUND = tan ;" ] { USE_SOUND = ; }
40   }
41   if $(USE_SOUND) = "forced" {
42     -configure-add-line- "USE_SOUND = ;" ;
43     -configure-add-line- "LINKLIBS.all += -lSDL_mixer ;" ;
44   } else if ! $(USE_SOUND) {
45     -configure-add-line- "NOSOUND = tan ;" ;
46   }
47   -configure-add-line- "WITH_TITLE =" "$(WITH_TITLE)" ";" ;
48   -configure-add-line- "BUILD_TOOLS =" "$(BUILD_TOOLS)" ";" ;
49   -configure-add-line- "INSTALL_AWASM =" "$(INSTALL_AWASM)" ";" ;
50   -configure-add-line- "INSTALL_VMSRC =" "$(INSTALL_VMSRC)" ";" ;
51   -configure-add-line- "WINDOZE =" "$(WINDOZE)" ";" ;
55 rule -configure-preinit- {
56   WITH_TITLE = ;
57   BUILD_TOOLS = ;
58   INSTALL_AWASM = ;
59   INSTALL_VMSRC = ;
60   WINDOZE = ;
64 configure ;