2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2009-02-27 14:26:55 +00:00
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := wxwidgets
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.wxwidgets.org/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := wxWidgets
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2020-05-29 13:58:03 +01:00
|
|
|
$(PKG)_VERSION := 3.0.5.1
|
|
|
|
$(PKG)_CHECKSUM := bae4d9f289e33a05fb8553fcc580564d30efe6a882ff08e3d4e09ef01f5f6578
|
|
|
|
$(PKG)_GH_CONF := wxWidgets/wxWidgets/releases/downloads,v
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc expat jpeg libiconv libpng sdl tiff zlib
|
2009-02-27 14:26:55 +00:00
|
|
|
|
2013-07-28 13:24:38 +01:00
|
|
|
define $(PKG)_CONFIGURE_OPTS
|
2017-05-26 16:59:23 +01:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2009-03-05 14:20:14 +00:00
|
|
|
--enable-gui \
|
2013-08-15 11:38:15 +01:00
|
|
|
--disable-stl \
|
2009-03-05 14:20:14 +00:00
|
|
|
--enable-threads \
|
|
|
|
--disable-universal \
|
2009-02-27 14:26:55 +00:00
|
|
|
--with-themes=all \
|
|
|
|
--with-msw \
|
|
|
|
--with-opengl \
|
2011-03-03 19:41:57 +00:00
|
|
|
--with-libpng=sys \
|
2009-02-27 14:26:55 +00:00
|
|
|
--with-libjpeg=sys \
|
|
|
|
--with-libtiff=sys \
|
2009-10-03 23:17:02 +01:00
|
|
|
--with-regex=yes \
|
2009-02-27 14:26:55 +00:00
|
|
|
--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 \
|
2011-12-23 18:22:13 +00:00
|
|
|
--without-odbc \
|
2014-11-09 18:49:57 +00:00
|
|
|
LIBS=" `'$(TARGET)-pkg-config' --libs-only-l libtiff-4`" \
|
|
|
|
CXXFLAGS='-std=gnu++11' \
|
|
|
|
CXXCPP='$(TARGET)-g++ -E -std=gnu++11'
|
2013-07-28 13:24:38 +01:00
|
|
|
endef
|
|
|
|
|
2014-11-09 18:54:57 +00:00
|
|
|
define $(PKG)_BUILD
|
2013-07-28 13:24:38 +01:00
|
|
|
# build the wxWidgets variant with unicode support
|
|
|
|
mkdir '$(1).unicode'
|
|
|
|
cd '$(1).unicode' && '$(1)/configure' \
|
|
|
|
$($(PKG)_CONFIGURE_OPTS) \
|
|
|
|
--enable-unicode
|
2014-11-09 18:53:42 +00:00
|
|
|
$(MAKE) -C '$(1).unicode' -j '$(JOBS)' \
|
|
|
|
$(MXE_DISABLE_CRUFT)
|
|
|
|
-$(MAKE) -C '$(1).unicode/locale' -j '$(JOBS)' allmo \
|
|
|
|
$(MXE_DISABLE_CRUFT)
|
|
|
|
$(MAKE) -C '$(1).unicode' -j 1 install \
|
2017-05-26 16:59:23 +01:00
|
|
|
$(if $(BUILD_SHARED),DLLDEST='/../bin') \
|
2014-11-09 18:53:42 +00:00
|
|
|
$(MXE_DISABLE_CRUFT) __install_wxrc___depname=
|
|
|
|
$(INSTALL) -m755 '$(PREFIX)/$(TARGET)/bin/wx-config' \
|
|
|
|
'$(PREFIX)/bin/$(TARGET)-wx-config'
|
2009-03-05 14:20:47 +00:00
|
|
|
|
2010-12-05 17:37:02 +00:00
|
|
|
# build test program
|
|
|
|
'$(TARGET)-g++' \
|
2013-03-23 20:27:45 +00:00
|
|
|
-W -Wall -Werror -Wno-error=unused-local-typedefs -pedantic -std=gnu++0x \
|
2020-05-29 13:58:03 +01:00
|
|
|
-Wno-deprecated-copy -Wno-cast-function-type \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-wxwidgets.exe' \
|
2010-12-05 17:37:02 +00:00
|
|
|
`'$(TARGET)-wx-config' --cflags --libs`
|
2009-02-27 14:26:55 +00:00
|
|
|
endef
|
2013-05-23 15:38:06 +01:00
|
|
|
|