debian: fix build-deps for focal
[amule.git] / src / utils / scripts / MacOSX / defs-wx.sh
bloba2f63e9082b432751fa37d9ff870741193ae7cf5
1 # Definitions for MacOSX compilation of wxWidgets.
2 # (c) 2011 Angel Vidal ( kry@amule.org )
3 # Public domain. Use at your own risk.
5 . defs-functions.sh
7 pn "-- Begin wxWidgets def section --"
9 if [ "$WXVERSION" == "" ]; then
10 pc $BLUE "\tAutomatically setting wxWidgets version to 2.8.x - set WXVERSION to your desired version (accepted values are 2.8 and svn right now) if you want to use a different one."
11 WXVERSION=2.8
14 case "$WXVERSION" in
15 "2.8")
16 WXSVNROOT="branches/WX_2_8_BRANCH"
17 WXFOLDER="wxWidgets-2.8"
18 AUTOPORT=carbon
20 "svn"|"SVN")
21 WXSVNROOT="trunk/"
22 WXFOLDER="wxWidgets"
23 AUTOPORT=cocoa
26 pc $RED "Valid WXVERSION values are 2.8 and svn."
27 exit
29 esac
31 pc $GREEN "\tUsing wxWidgets $WXVERSION"
33 if [ "$WXPORT" = "" ]; then
34 pc $BLUE "\tAutomatically selecting the $AUTOPORT port for wxWidgets $WXVERSION - set WXPORT to your desired port (accepted values are carbon and cocoa right now) if you want to use a different one."
35 WXPORT=$AUTOPORT
38 case "$WXPORT" in
39 COCOA|cocoa)
40 if [ "$WXVERSION" == "2.8" ]; then
41 pc $RED "The $WXWIDGETS port on wxWidgets $WXVERSION is unusable for this application. Please select a different port, or a different wxWidgets version."
42 exit
44 PORTFLAGS="--with-cocoa"
46 CARBON|carbon)
47 PORTFLAGS="--with-carbon"
50 pc $RED "Valid WXPORT values are cocoa and carbon."
51 exit
53 esac
55 pc $GREEN "\tUsing wxWidgets $WXPORT port."
58 if [ "$SLIMWX" == "" ]; then
59 pc $BLUE "\tAutomatically selecting full wx compilation. Set SLIMWX to YES to compile only parts used by the application, which can result in a smaller binary (but can fail if the script hasn't been updated after adding new class usage)"
60 SLIMWX=NO
63 case "$SLIMWX" in
64 YES|yes)
65 pc $GREEN "\tUsing minimal wxWidgets compilation."
66 SLIM_WX_FLAGS="--without-odbc --without-expat --without-libtiff --without-libjpg \
67 --without-libmspack --without-sdl --without-gnomeprint --without-gnomevfs --without-opengl \
68 --without-dmalloc --without-themes --disable-sdltest --disable-gtktest \
69 --disable-pnm --disable-iff --disable-tga --disable-pcx \
70 --disable-dragimage --disable-metafiles --disable-joystick \
71 --disable-splines --disable-miniframe --disable-wizarddlg \
72 --disable-tipdlg --disable-numberdlg --disable-finddlg --disable-choicedlg \
73 --disable-popupwin --disable-tipwindow --disable-toolbook \
74 --disable-treebook --disable-tabdialog--disable-searchctrl \
75 --disable-odcombobox --disable-listbook --disable-hyperlink \
76 --disable-dataviewctrl --disable-grid --enable-fontpicker \
77 --disable-display --disable-datepick --disable-collpane --disable-choicebook \
78 --disable-caret --disable-calendar --disable-bmpcombobox --disable-animatectrl \
79 --disable-metafile --disable-postscript --disable-graphics_ctx --disable-richtext \
80 --disable-webkit --disable-mdidoc --disable-mdi --disable-aui \
81 --disable-htmlhelp --disable-html --disable-mshtmlhelp --disable-help --disable-variant \
82 --disable-printfposparam --disable-gstreamer8 --disable-mediactrl \
83 --disable-tarstream --disable-mslu --disable-ole \
84 --disable-dynamicloader --disable-dynlib --disable-dialupman --disable-apple_ieee \
85 --disable-palette --disable-compat26 --disable-docview --disable-aboutdlg"
87 NO|no)
88 pc $GREEN "\tUsing full wxWidgets compilation."
89 SLIM_WX_FLAGS=""
92 pc $RED "Valid SLIMWX values are YES and NO."
93 exit
95 esac
97 EXTRA_WXFLAGS="$PORTFLAGS $SLIMWXFLAGS --with-libpng --with-regex --enable-gif --enable-accesibility --enable-progressdlg \
98 --enable-textdlg --enable-busyinfo --enable-fontdlg --enable-filedlg --enable-coldlg \
99 --enable-treectrl --enable-slider --enable-listbox --enable-gauge --enable-filepicker \
100 --enable-dirpicker --enable-colourpicker --enable-checklst --enable-printarch \
101 --enable-protocol --enable-protocol-http --enable-protocol-ftp --enable-protocol-file \
102 --enable-sound --enable-unicode --enable-stopwatch --enable-snglinst --enable-ipc \
103 --enable-sockets --enable-protocols --enable-ftp --enable-config --with-zlib --enable-textfile \
104 --enable-textbuf --enable-url --enable-datetime --enable-http --enable-fileproto"
107 pn "-- End wxWidgets def section --"