1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/wxwidgets/wxwidgets.conf
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 var_append confopt ' ' "--enable-optimise --enable-monolithic"
17 var_append confopt ' ' "--enable-shared --enable-debug"
18 var_append confopt ' ' "--enable-plugins"
19 var_append confopt ' ' "--enable-controls"
20 var_append confopt ' ' "--enable-calendar"
21 var_append confopt ' ' "--with-regex"
22 var_append confopt ' ' "--with-zlib"
23 var_append confopt ' ' "--disable-precomp-headers" # easily ENOSPACE w/ tmpfs
24 #not working in 2.5.3.1: var_append confopt ' ' "--enable-accessibility"
26 var_remove_regex extraconfopt " " ".*mysql.*"
27 var_remove_regex extraconfopt " " ".*pam.*"
29 pkginstalled mesa && var_append confopt ' ' "--with-opengl"
30 pkginstalled libsdl && var_append confopt ' ' "--with-sdl"
32 # 2.6 compatibility is generally enabled, 2.4 is off
33 #not working in 3.1: var_append confopt ' ' "--enable-compat24"
38 # contrib/src/applet -> w$n - only
39 #error in makefile: contrib/src/deprecated
41 for contrib in fl foldbar gizmos mmedia ogl plot stc svg; do
42 pushd contrib/src/$contrib
44 eval "$MAKE $makeinstopt"
48 #hook_add postmake 3 "wx_contrib"
50 false && pkginstalled directfb && {
51 var_append wxgui ' ' 'directfb'
52 directfb_wx_opt="--disable-unicode --with-themes=mono --disable-accel --disable-popupwin --disable-help \
53 --disable-combobox --disable-menus --disable-mdi --disable-mdidoc --disable-docview \
54 --disable-printarch --disable-calendar --disable-choice --disable-choicebook --disable-dirdlg \
55 --disable-filedlg --disable-fontdlg --disable-filepicker --disable-dirpicker --disable-fontpicker \
56 --disable-datepick --disable-hyperlink --disable-aui --disable-richtext --disable-fontmap \
57 --disable-xrc --disable-html"
60 if pkginstalled gtk+; then
61 var_append extraconfopt ' ' '--enable-unicode --with-gtk=3'
62 elif pkginstalled gtk+2; then
63 var_append extraconfopt ' ' '--enable-unicode --with-gtk'
64 elif pkginstalled libx11; then
65 var_append extraconfopt ' ' '--enable-unicode --with-x11'
67 abort "no default toolkit"