Mercurial > mxe-octave
annotate src/wxwidgets.mk @ 4043:b54e00ea56bc
of-fl-core: readd fl-core patch in dos mode
* src/of-fl-core-1-fixes.patch: readd patch
author | John Donoghue |
---|---|
date | Fri, 02 Oct 2015 10:24:38 -0400 |
parents | a20ad5581689 |
children | b4ed09b828f6 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2190
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
4 PKG := wxwidgets |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
422
diff
changeset
|
5 $(PKG)_IGNORE := |
3733 | 6 $(PKG)_VERSION := 3.0.2 |
7 $(PKG)_CHECKSUM := 6461eab4428c0a8b9e41781b8787510484dea800 | |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
8 $(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
9 $(PKG)_FILE := wxMSW-$($(PKG)_VERSION).tar.bz2 |
1122 | 10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/wxwindows/$($(PKG)_VERSION)/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := libiconv libpng jpeg tiff sdl zlib expat |
244 | 12 |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(WGET) -q -O- 'http://sourceforge.net/projects/wxwindows/files/' | \ |
1122 | 15 $(SED) -n 's,.*/\([0-9][^"9]*\)/".*,\1,p' | \ |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1006
diff
changeset
|
16 head -1 |
244 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
20 $(SED) -i 's,png_check_sig,png_sig_cmp,g' '$(1)/configure' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
21 $(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/configure' |
244 | 22 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
24 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
25 --prefix='$(HOST_PREFIX)' \ |
244 | 26 --enable-compat24 \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
27 --enable-compat26 \ |
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
28 --enable-gui \ |
244 | 29 --enable-stl \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
30 --enable-threads \ |
244 | 31 --enable-unicode \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
32 --disable-universal \ |
244 | 33 --with-themes=all \ |
34 --with-msw \ | |
35 --with-opengl \ | |
1621
64fdb94ef9f2
package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
1619
diff
changeset
|
36 --with-libpng=sys \ |
244 | 37 --with-libjpeg=sys \ |
38 --with-libtiff=sys \ | |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
39 --with-regex=yes \ |
244 | 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 \ | |
2190
861ed76f2041
packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2153
diff
changeset
|
57 --without-odbc \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
58 LIBS=" `'$(MXE_PKG_CONFIG)' --libs-only-l libtiff-4`" |
244 | 59 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
2050
856a49e99000
package wxwidgets: build locales
Moritz Bunkus <moritz@bunkus.org>
parents:
1716
diff
changeset
|
60 -$(MAKE) -C '$(1)/locale' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= allmo |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
61 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= __install_wxrc___depname= |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
62 $(INSTALL) -m755 '$(HOST_BINDIR)/wx-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)wx-config' |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
63 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
64 # build the wxWidgets variant without unicode support |
3174
6e323510f5b5
Fix calls to UNPACK_PKG_ARCHIVE in src/*.mk files.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
65 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,wxwidgets,$(TAR)) |
1621
64fdb94ef9f2
package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
1619
diff
changeset
|
66 $(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/wxwidgets-*.patch)), |
64fdb94ef9f2
package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
1619
diff
changeset
|
67 (cd '$(1)/$(wxwidgets_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH)) |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
68 $(SED) -i 's,png_check_sig,png_sig_cmp,g' '$(1)/$(wxwidgets_SUBDIR)/configure' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
69 $(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/$(wxwidgets_SUBDIR)/configure' |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
70 cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
71 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
72 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
73 --prefix='$(HOST_PREFIX)' \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
74 --enable-compat24 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
75 --enable-compat26 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
76 --enable-gui \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
77 --enable-stl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
78 --enable-threads \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
79 --disable-unicode \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
80 --disable-universal \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
81 --with-themes=all \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
82 --with-msw \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
83 --with-opengl \ |
1621
64fdb94ef9f2
package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
1619
diff
changeset
|
84 --with-libpng=sys \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
85 --with-libjpeg=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
86 --with-libtiff=sys \ |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
87 --with-regex=yes \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
88 --with-zlib=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
89 --with-expat=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
90 --with-sdl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
91 --without-gtk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
92 --without-motif \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
93 --without-mac \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
94 --without-macosx-sdk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
95 --without-cocoa \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
96 --without-wine \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
97 --without-pm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
98 --without-microwin \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
99 --without-libxpm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
100 --without-libmspack \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
101 --without-gnomeprint \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
102 --without-gnomevfs \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
103 --without-hildon \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
104 --without-dmalloc \ |
2190
861ed76f2041
packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2153
diff
changeset
|
105 --without-odbc \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
106 LIBS=" `'$(MXE_PKG_CONFIG)' --libs-only-l libtiff-4`" |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
107 $(MAKE) -C '$(1)/$(wxwidgets_SUBDIR)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
108 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
109 # backup of the unicode wx-config script |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
110 # such that "make install" won't overwrite it |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
111 mv '$(HOST_BINDIR)/wx-config' '$(HOST_BINDIR)/wx-config-backup' |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
112 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
113 $(MAKE) -C '$(1)/$(wxwidgets_SUBDIR)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= __install_wxrc___depname= |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
114 mv '$(HOST_BINDIR)/wx-config' '$(HOST_BINDIR)/wx-config-nounicode' |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
115 $(INSTALL) -m755 '$(HOST_BINDIR)/wx-config-nounicode' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)wx-config-nounicode' |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
116 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
117 # restore the unicode wx-config script |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
118 mv '$(HOST_BINDIR)/wx-config-backup' '$(HOST_BINDIR)/wx-config' |
1477
52b652c3e927
add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
diff
changeset
|
119 |
52b652c3e927
add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
diff
changeset
|
120 # build test program |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
121 '$(MXE_CXX)' \ |
1477
52b652c3e927
add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
diff
changeset
|
122 -W -Wall -Werror -pedantic -std=gnu++0x \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
123 '$(2).cpp' -o '$(HOST_BINDIR)/test-wxwidgets.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
124 `'$(MXE_TOOL_PREFIX)wx-config' --cflags --libs` |
244 | 125 endef |