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 "auto" "don't use timegm()"
18 rule -configure-test-timegm- {
20 -configure-test-compile-cc- "timegm()" :
24 "struct tm _tm = { 0 };"
37 -configure-pkg-config-necessary-
38 "GLib" "glib-2.0 >= 2.30.0"
39 "GObject" "gobject-2.0 >= 2.30.0"
40 "LibXML2" "libxml-2.0 >= 2.9"
43 -configure-pkg-config-necessary-
47 -configure-add-line- "DEFINES += HAVE_GTK HAVE_LIBXML ;" ;
50 if $(USE_SQLITE) { -configure-pkg-config- "SQLite3" : "sqlite3" : "DEFINES += HAVE_SQLITE3 ;" ; }
52 if $(USE_GTKSPELL) { -configure-pkg-config- "GTKSpell" : "gtkspell-2.0" : "DEFINES += HAVE_GTKSPELL ;" ; }
53 if $(USE_GTKHTML) { -configure-pkg-config- "libgtkhtml3.30" : "libgtkhtml-3.30" : "DEFINES += HAVE_GTKHTML330 HAVE_GTKHTML ;" ; }
55 if ! [-configure-pkg-config- "librsvg" : "librsvg-2.0 > 2.2.3" : "DEFINES += HAVE_LIBRSVG ;" ] { USE_RSVG = ; } else { USE_RSVG = "tan" ; }
57 -configure-add-line- "USE_RSVG =" $(USE_RSVG) ";" ;
61 if ! [ -configure-pkg-config- "libcurl" : "libcurl >= 7.30" : "DEFINES += HAVE_CURL ;" ] { USE_CURL = ; }
65 Echo "WARNING: libcurl wasn't found! using VERY LIMITED LibXML http code!" ;
68 if $(USE_TIMEGM) = "auto" {
69 USE_TIMEGM = [ -configure-test-timegm- ] ;
71 -configure-add-line- "# timegm()" ;
73 Echo "CFG: timegm() enabled" ;
74 -configure-add-line- "DEFINES += HAVE_TIMEGM ;" ;
76 Echo "CFG: timegm() disabled" ;
77 -configure-add-line- "# timegm() disabled" ;
81 -configure-add-line- "# dock" ;
83 Echo "CFG: dock icon enabled" ;
84 -configure-add-line- "DEFINES += USE_DOCK ;" ;
86 Echo "CFG: dock icon disabled" ;
87 -configure-add-line- "# dock disabled" ;
91 #-configure-add-line- "# other autocrap shit" ;
92 #-configure-add-line- "DEFINES += HAVE_GTK_MULTIHEAD ;" ;
95 Echo "CFG: building CLI version" ;
97 Echo "CFG: building GUI version" ;