summaryrefslogtreecommitdiffstats
path: root/src/wxwidgets.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-03-05 14:20:47 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-03-05 14:20:47 (GMT)
commit49a3b91ee4fe3d62af870689bd46005ca7fd00e2 (patch)
tree51ab19b4af88f2296ed576e9362808e0da30b54a /src/wxwidgets.mk
parent0f005eb7246bc3126d1728fea95cd0ff06ddae19 (diff)
downloadmxe-49a3b91ee4fe3d62af870689bd46005ca7fd00e2.zip
mxe-49a3b91ee4fe3d62af870689bd46005ca7fd00e2.tar.gz
mxe-49a3b91ee4fe3d62af870689bd46005ca7fd00e2.tar.bz2
build also the wxWidgets variant without unicode support
Diffstat (limited to 'src/wxwidgets.mk')
-rw-r--r--src/wxwidgets.mk55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/wxwidgets.mk b/src/wxwidgets.mk
index 3209f78..9eea20c 100644
--- a/src/wxwidgets.mk
+++ b/src/wxwidgets.mk
@@ -59,4 +59,59 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= __install_wxrc___depname=
install -m755 '$(PREFIX)/$(TARGET)/bin/wx-config' '$(PREFIX)/bin/$(TARGET)-wx-config'
+
+ # build the wxWidgets variant without unicode support
+ cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,wxwidgets)
+ $(SED) 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' -i '$(1)/$(wxwidgets_SUBDIR)/configure'
+ cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --enable-compat24 \
+ --enable-compat26 \
+ --enable-gui \
+ --enable-stl \
+ --enable-threads \
+ --disable-unicode \
+ --disable-universal \
+ --with-themes=all \
+ --with-msw \
+ --with-opengl \
+ --with-libpng=sys \
+ --with-libjpeg=sys \
+ --with-libtiff=sys \
+ --with-regex=sys \
+ --with-zlib=sys \
+ --with-expat=sys \
+ --with-sdl \
+ --without-gtk \
+ --without-motif \
+ --without-mac \
+ --without-macosx-sdk \
+ --without-cocoa \
+ --without-wine \
+ --without-pm \
+ --without-microwin \
+ --without-libxpm \
+ --without-libmspack \
+ --without-gnomeprint \
+ --without-gnomevfs \
+ --without-hildon \
+ --without-dmalloc \
+ --without-odbc \
+ CFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \
+ CXXFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \
+ LIBS=" `$(TARGET)-pkg-config tre --libs`"
+ $(MAKE) -C '$(1)/$(wxwidgets_SUBDIR)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+
+ # backup of the unicode wx-config script
+ # such that "make install" won't overwrite it
+ mv '$(PREFIX)/$(TARGET)/bin/wx-config' '$(PREFIX)/$(TARGET)/bin/wx-config-backup'
+
+ $(MAKE) -C '$(1)/$(wxwidgets_SUBDIR)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= __install_wxrc___depname=
+ mv '$(PREFIX)/$(TARGET)/bin/wx-config' '$(PREFIX)/$(TARGET)/bin/wx-config-nounicode'
+ install -m755 '$(PREFIX)/$(TARGET)/bin/wx-config-nounicode' '$(PREFIX)/bin/$(TARGET)-wx-config-nounicode'
+
+ # restore the unicode wx-config script
+ mv '$(PREFIX)/$(TARGET)/bin/wx-config-backup' '$(PREFIX)/$(TARGET)/bin/wx-config'
endef