section, category and icon fixes
[awish.git] / Jamrules.configure
blobd7daf9bda32670623d36ef2ce115692a4e947a2f
1 rule -configure-options-help- {
2   Echo "jam configure supports:" ;
3   Echo "  --prefix=dir           [/usr/local]" ;
4   Echo "  --disable-sound        disable sound support" ;
5   Echo "  --install-awasm        install Awish assembler" ;
6   Echo "  --install-vmsrc        install Awish VM source" ;
7   Exit "" ;
11 rule -configure-options-disable-sound- {
12   NOSOUND = tan ;
15 rule -configure-options-enable-sound- {
16   Echo "MESSAGE: forcing sound support" ;
17   NOSOUND = forced ;
20 rule -configure-options-with-title- {
21   WITH_TITLE = tan ;
25 rule -configure-options-with-tools- {
26   BUILD_TOOLS = tan ;
29 rule -configure-options-install-awasm- {
30   INSTALL_AWASM = tan ;
33 rule -configure-options-install-vmsrc- {
34   INSTALL_VMSRC = tan ;
37 rule -configure-options-windoze- {
38   WINDOZE = tan ;
42 rule -configure- {
43   if ! $(WINDOZE) {
44     -configure-pkg-config- "SDL" : sdl : : : "you need SDL to compile this!" ;
45   } else {
46     NOSOUND = "forced" ;
47   }
48   if $(NOSOUND) = "forced" {
49     -configure-add-line- "NOSOUND = ;" ;
50     -configure-add-line- "LINKLIBS.all += -lSDL_mixer ;" ;
51   } else if ! $(NOSOUND) {
52     -configure-pkg-config- "SDL_mixer" : SDL_mixer : "NOSOUND = ;" : "NOSOUND = tan ;" ;
53   } else {
54     -configure-add-line- "NOSOUND = tan ;" ;
55   }
56   -configure-add-line- "WITH_TITLE =" "$(WITH_TITLE)" ";" ;
57   -configure-add-line- "BUILD_TOOLS =" "$(BUILD_TOOLS)" ";" ;
58   -configure-add-line- "INSTALL_AWASM =" "$(INSTALL_AWASM)" ";" ;
59   -configure-add-line- "INSTALL_VMSRC =" "$(INSTALL_VMSRC)" ";" ;
60   -configure-add-line- "WINDOZE =" "$(WINDOZE)" ";" ;
64 rule -configure-preinit- {
65   WITH_TITLE = ;
66   NOSOUND = ;
67   BUILD_TOOLS = ;
68   INSTALL_AWASM = ;
69   INSTALL_VMSRC = ;
70   WINDOZE = ;
74 configure ;