# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../wxwidgets/wxwidgets.conf # Copyright (C) 2004 - 2008 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- var_append confopt ' ' "--enable-optimise" var_append confopt ' ' "--enable-shared" var_append confopt ' ' "--enable-plugins" var_append confopt ' ' "--enable-controls" var_append confopt ' ' "--enable-calendar" var_append confopt ' ' "--with-regex" var_append confopt ' ' "--with-zlib" #not working in 2.5.3.1: var_append confopt ' ' "--enable-accessibility" pkginstalled mesa && var_append confopt ' ' "--with-opengl" pkginstalled libsdl && var_append confopt ' ' "--with-sdl" # 2.6 compatibility is generally enabled, 2.4 is off var_append confopt ' ' "--enable-compat24" wx_contrib() { local contrib # contrib/src/applet -> w$n - only #error in makefile: contrib/src/deprecated for contrib in fl foldbar gizmos mmedia ogl plot stc svg; do pushd contrib/src/$contrib eval "$MAKE $makeopt" eval "$MAKE $makeinstopt" popd done } #hook_add postmake 3 "wx_contrib" wx_main() { pkginstalled directfb && { var_append wxgui ' ' 'directfb' directfb_wx_opt="--disable-unicode --with-themes=mono --disable-accel --disable-popupwin --disable-help \ --disable-combobox --disable-menus --disable-mdi --disable-mdidoc --disable-docview \ --disable-printarch --disable-calendar --disable-choice --disable-choicebook --disable-dirdlg \ --disable-filedlg --disable-fontdlg --disable-filepicker --disable-dirpicker --disable-fontpicker \ --disable-datepick --disable-hyperlink --disable-aui --disable-richtext --disable-fontmap \ --disable-xrc --disable-html" } pkginstalled libx11 && { var_append wxgui ' ' 'x11' x11_wx_opt="--enable-unicode" } pkginstalled gtk+ && { var_append wxgui ' ' 'gtk' gtk_wx_opt="--enable-unicode" } # the last one gets the default toolkit - so gui order is important here configscript=../configure for gui in $wxgui; do mkdir build-$gui cd build-$gui hook_eval preconf options=`echo $gui''_wx_opt` optval=`eval echo \\$$options` echo_status "Build $gui: $options = $optval" eval_config_command $confopt $extraconfopt $optval --with-$gui hook_eval premake eval "$MAKE $makeopt" hook_eval inmake eval "$MAKE $makeinstopt" if [ "${gui/directfb/x}" != "x" ]; then wx_contrib fi cd .. done } custmain=wx_main