You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.8 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../wxwidgets/wxwidgets.conf
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# 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.
# --- SDE-COPYRIGHT-NOTE-END ---
var_append confopt ' ' "--enable-optimise"
var_append confopt ' ' "--enable-shared"
var_append confopt ' ' "--enable-plugins"
# FIXME: should be set via a config.in
#SDECFG_PKG_WXWIDGETS_GUI=gtk
for gui in gtk motif microwin x11 nanox; do
if [ "$gui" == "$SDECFG_PKG_WXWIDGETS_GUI" ]; then
var_append confopt ' ' "--with-$gui"
fi
done
var_append confopt ' ' "--enable-unicode"
var_append confopt ' ' "--enable-calendar"
var_append confopt ' ' "--with-opengl"
pkginstalled libsdl && var_append confopt ' ' "--with-sdl"
var_append confopt ' ' "--with-regex"
var_append confopt ' ' "--with-zlib"
#not working in 2.5.3.1: var_append confopt ' ' "--enable-accessibility"
var_append confopt ' ' "--enable-controls"
# needed for xmule and audacity
var_append confopt ' ' "--enable-compat22"
wx_contrib() {
local contrib
#error in makefile: contrib/src/applet
#error in sources: contrib/src/mmedia
#currently empty: contrib/src/xrc
for contrib in deprecated fl foldbar gizmos net ogl plot stc svg; do
pushd contrib/src/$contrib
eval "$MAKE $makeopt"
eval "$MAKE $makeinstopt"
popd
done
}
hook_add postmake 3 "wx_contrib"