comparison src/wxwidgets.mk @ 4294:b4ed09b828f6

* src/wxwidgets.mk: update tarball name and build
author John D
date Mon, 26 Dec 2016 14:19:18 -0500
parents a20ad5581689
children b753293ad067
comparison
equal deleted inserted replaced
4293:7fa4425df344 4294:b4ed09b828f6
3 3
4 PKG := wxwidgets 4 PKG := wxwidgets
5 $(PKG)_IGNORE := 5 $(PKG)_IGNORE :=
6 $(PKG)_VERSION := 3.0.2 6 $(PKG)_VERSION := 3.0.2
7 $(PKG)_CHECKSUM := 6461eab4428c0a8b9e41781b8787510484dea800 7 $(PKG)_CHECKSUM := 6461eab4428c0a8b9e41781b8787510484dea800
8 $(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION) 8 $(PKG)_SUBDIR := wxWidgets-$($(PKG)_VERSION)
9 $(PKG)_FILE := wxMSW-$($(PKG)_VERSION).tar.bz2 9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/wxwindows/$($(PKG)_VERSION)/$($(PKG)_FILE) 10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/wxwindows/$($(PKG)_VERSION)/$($(PKG)_FILE)
11 $(PKG)_DEPS := libiconv libpng jpeg tiff sdl zlib expat 11 $(PKG)_DEPS := libiconv libpng jpeg tiff sdl zlib expat
12 12
13 define $(PKG)_UPDATE 13 define $(PKG)_UPDATE
14 $(WGET) -q -O- 'http://sourceforge.net/projects/wxwindows/files/' | \ 14 $(WGET) -q -O- 'http://sourceforge.net/projects/wxwindows/files/' | \
15 $(SED) -n 's,.*/\([0-9][^"9]*\)/".*,\1,p' | \ 15 $(SED) -n 's,.*/\([0-9][^"9]*\)/".*,\1,p' | \
16 head -1 16 head -1
17 endef 17 endef
18 18
19 define $(PKG)_BUILD 19 define $(PKG)_BUILD
20 $(SED) -i 's,png_check_sig,png_sig_cmp,g' '$(1)/configure'
21 $(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/configure'
22 cd '$(1)' && ./configure \
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
24 $(ENABLE_SHARED_OR_STATIC) \
25 --prefix='$(HOST_PREFIX)' \
26 --enable-compat24 \
27 --enable-compat26 \
28 --enable-gui \
29 --enable-stl \
30 --enable-threads \
31 --enable-unicode \
32 --disable-universal \
33 --with-themes=all \
34 --with-msw \
35 --with-opengl \
36 --with-libpng=sys \
37 --with-libjpeg=sys \
38 --with-libtiff=sys \
39 --with-regex=yes \
40 --with-zlib=sys \
41 --with-expat=sys \
42 --with-sdl \
43 --without-gtk \
44 --without-motif \
45 --without-mac \
46 --without-macosx-sdk \
47 --without-cocoa \
48 --without-wine \
49 --without-pm \
50 --without-microwin \
51 --without-libxpm \
52 --without-libmspack \
53 --without-gnomeprint \
54 --without-gnomevfs \
55 --without-hildon \
56 --without-dmalloc \
57 --without-odbc \
58 LIBS=" `'$(MXE_PKG_CONFIG)' --libs-only-l libtiff-4`"
59 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
60 -$(MAKE) -C '$(1)/locale' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= allmo
61 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= __install_wxrc___depname=
62 $(INSTALL) -m755 '$(HOST_BINDIR)/wx-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)wx-config'
63 20
64 # build the wxWidgets variant without unicode support 21 # build the wxWidgets variant without unicode support
65 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,wxwidgets,$(TAR)) 22 cd '$(1)' && ./configure \
66 $(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/wxwidgets-*.patch)),
67 (cd '$(1)/$(wxwidgets_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
68 $(SED) -i 's,png_check_sig,png_sig_cmp,g' '$(1)/$(wxwidgets_SUBDIR)/configure'
69 $(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/$(wxwidgets_SUBDIR)/configure'
70 cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \
71 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ 23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
72 $(ENABLE_SHARED_OR_STATIC) \ 24 $(ENABLE_SHARED_OR_STATIC) \
73 --prefix='$(HOST_PREFIX)' \ 25 --prefix='$(HOST_PREFIX)' \
74 --enable-compat24 \ 26 --enable-compat24 \
75 --enable-compat26 \ 27 --enable-compat26 \
102 --without-gnomevfs \ 54 --without-gnomevfs \
103 --without-hildon \ 55 --without-hildon \
104 --without-dmalloc \ 56 --without-dmalloc \
105 --without-odbc \ 57 --without-odbc \
106 LIBS=" `'$(MXE_PKG_CONFIG)' --libs-only-l libtiff-4`" 58 LIBS=" `'$(MXE_PKG_CONFIG)' --libs-only-l libtiff-4`"
107 $(MAKE) -C '$(1)/$(wxwidgets_SUBDIR)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
108 59
109 # backup of the unicode wx-config script 60 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
110 # such that "make install" won't overwrite it
111 mv '$(HOST_BINDIR)/wx-config' '$(HOST_BINDIR)/wx-config-backup'
112 61
113 $(MAKE) -C '$(1)/$(wxwidgets_SUBDIR)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= __install_wxrc___depname= 62 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= __install_wxrc___depname=
114 mv '$(HOST_BINDIR)/wx-config' '$(HOST_BINDIR)/wx-config-nounicode'
115 $(INSTALL) -m755 '$(HOST_BINDIR)/wx-config-nounicode' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)wx-config-nounicode'
116 63
117 # restore the unicode wx-config script 64 $(INSTALL) -m755 '$(HOST_BINDIR)/wx-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)wx-config'
118 mv '$(HOST_BINDIR)/wx-config-backup' '$(HOST_BINDIR)/wx-config'
119 65
120 # build test program
121 '$(MXE_CXX)' \
122 -W -Wall -Werror -pedantic -std=gnu++0x \
123 '$(2).cpp' -o '$(HOST_BINDIR)/test-wxwidgets.exe' \
124 `'$(MXE_TOOL_PREFIX)wx-config' --cflags --libs`
125 endef 66 endef