cosmetix
[k8lowj.git] / Jamrules.configure
blob0f4da0d937cbfbc163bfa35c47503a3eaa2f5ef1
1 PROJECT_NAME = k8logjam ;
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   #"cli"       USE_CLI       ""      "build cli-only version"
8   "sqlite"    USE_SQLITE    "auto"  "don't use sqlite"
9   "gtkhtml"   USE_GTKHTML   "auto"  "don't use GTKHTML"
10   "gtkspell"  USE_GTKSPELL  "auto"  "don't use GTKSpell"
11   "svg"       USE_RSVG      "auto"  "don't use librsvg"
12   "curl"      USE_CURL      "auto"  "don't use libcurl"
13   "dock"      USE_DOCK      "tan"   "disable dock icon"
14   "timegm"    USE_TIMEGM    "tan"   "don't use timegm()"
18 rule -configure- {
19   USE_CLI = ;
20   -configure-pkg-config-necessary-
21     "GLib"    "glib-2.0 >= 2.30.0"
22     "GObject" "gobject-2.0 >= 2.30.0"
23     "LibXML2" "libxml-2.0 >= 2.9"
24   ;
25   if ! $(USE_CLI) {
26     -configure-pkg-config-necessary-
27       "GTK+2"   "gtk+-2.0"
28       "X11"     "x11"
29     ;
30     -configure-add-line- "DEFINES += HAVE_GTK HAVE_LIBXML ;" ;
31   }
33   if $(USE_SQLITE) { -configure-pkg-config- "SQLite3" : "sqlite3" : "DEFINES += HAVE_SQLITE3 ;" ; }
34   if ! $(USE_CLI) {
35     if $(USE_GTKSPELL) { -configure-pkg-config- "GTKSpell" : "gtkspell-2.0" : "DEFINES += HAVE_GTKSPELL ;" ; }
36     if $(USE_GTKHTML) { -configure-pkg-config- "libgtkhtml3.30" : "libgtkhtml-3.30" : "DEFINES += HAVE_GTKHTML330 HAVE_GTKHTML ;" ; }
37     if $(USE_RSVG) {
38       if ! [-configure-pkg-config- "librsvg" : "librsvg-2.0 > 2.2.3" : "DEFINES += HAVE_LIBRSVG ;" ] { USE_RSVG = ; } else { USE_RSVG = "tan" ; }
39     }
40     -configure-add-line- "USE_RSVG =" $(USE_RSVG) ";" ;
41   }
43   if $(USE_CURL) {
44     if ! [ -configure-pkg-config- "libcurl" : "libcurl >= 7.30" : "DEFINES += HAVE_CURL ;" ] { USE_CURL = ; }
45   }
47   if ! $(USE_CURL) {
48     Echo "WARNING: libcurl wasn't found! using VERY LIMITED LibXML http code!" ;
49   }
51   if ! $(USE_CLI) {
52     -configure-add-line- "# dock" ;
53     if $(USE_DOCK) {
54       Echo "CFG: dock icon enabled" ;
55       -configure-add-line- "DEFINES += USE_DOCK ;" ;
56     } else {
57       Echo "CFG: dock icon disabled" ;
58       -configure-add-line- "# dock disabled" ;
59     }
60   }
62   -configure-add-line- "# timegm()" ;
63   if $(USE_TIMEGM) {
64     Echo "CFG: timegm() enabled" ;
65     -configure-add-line- "DEFINES += HAVE_TIMEGM ;" ;
66   } else {
67     Echo "CFG: timegm() disabled" ;
68     -configure-add-line- "# timegm() disabled" ;
69   }
71   #-configure-add-line- "# other autocrap shit" ;
72   #-configure-add-line- "DEFINES += HAVE_GTK_MULTIHEAD ;" ;
74   if $(USE_CLI) {
75     Echo "CFG: building CLI version" ;
76   } else {
77     Echo "CFG: building GUI version" ;
78   }
82 configure ;