Mercurial > mxe-octave
annotate src/wxwidgets.mk @ 5534:372ea4c0afb2
Move of-ocs PKG_XXXX to inst dir and add break patch
* src/of-ocs-3-break-fixes.patch,
src/of-ocs-4-pkgadd-fixes.patch: new files
* dist-files.mk: add ref to files
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 13 Sep 2020 08:15:14 -0400 |
parents | 1e19369650f1 |
children | 3aad637952e6 |
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 := |
5406
1e19369650f1
* src/wxwidgets.mk: update to v3.0.5.1
John Donoghue <john.donoghue@ieee.org>
parents:
4622
diff
changeset
|
6 $(PKG)_VERSION := 3.0.5.1 |
1e19369650f1
* src/wxwidgets.mk: update to v3.0.5.1
John Donoghue <john.donoghue@ieee.org>
parents:
4622
diff
changeset
|
7 $(PKG)_CHECKSUM := 406ac736f61d88a3a866aa501e01e408a642c6e7 |
4294 | 8 $(PKG)_SUBDIR := wxWidgets-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2 | |
4414 | 10 $(PKG)_URL := https://github.com/wxWidgets/wxWidgets/releases/download/v$($(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 | |
4578
cc5c74d855f3
* src/wxwidgets.mk: update version, checksum for v3.0.3.1
John D
parents:
4414
diff
changeset
|
14 $(WGET) -q -O- 'https://github.com//wxWidgets/wxWidgets/tags' | \ |
cc5c74d855f3
* src/wxwidgets.mk: update version, checksum for v3.0.3.1
John D
parents:
4414
diff
changeset
|
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | grep -v '^3\.1' | $(SORT) -V | \ |
cc5c74d855f3
* src/wxwidgets.mk: update version, checksum for v3.0.3.1
John D
parents:
4414
diff
changeset
|
16 tail -1 |
244 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
20 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
21 # build the wxWidgets variant without unicode support |
4294 | 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)' \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
26 --enable-compat24 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
27 --enable-compat26 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
28 --enable-gui \ |
4353
ae1280afbc8c
wxwidgets: add fixes for stdc++11 issues in later gcc versions
John D
parents:
4298
diff
changeset
|
29 --disable-stl \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
30 --enable-threads \ |
4353
ae1280afbc8c
wxwidgets: add fixes for stdc++11 issues in later gcc versions
John D
parents:
4298
diff
changeset
|
31 --enable-unicode \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
32 --disable-universal \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
33 --with-themes=all \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
34 --with-msw \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
35 --with-opengl \ |
1621
64fdb94ef9f2
package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
1619
diff
changeset
|
36 --with-libpng=sys \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
37 --with-libjpeg=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
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 \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
40 --with-zlib=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
41 --with-expat=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
42 --with-sdl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
43 --without-gtk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
44 --without-motif \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
45 --without-mac \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
46 --without-macosx-sdk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
47 --without-cocoa \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
48 --without-wine \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
49 --without-pm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
50 --without-microwin \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
51 --without-libxpm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
52 --without-libmspack \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
53 --without-gnomeprint \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
54 --without-gnomevfs \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
55 --without-hildon \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
56 --without-dmalloc \ |
2190
861ed76f2041
packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2153
diff
changeset
|
57 --without-odbc \ |
4353
ae1280afbc8c
wxwidgets: add fixes for stdc++11 issues in later gcc versions
John D
parents:
4298
diff
changeset
|
58 LIBS=" `'$(MXE_PKG_CONFIG)' --libs-only-l libtiff-4`" \ |
ae1280afbc8c
wxwidgets: add fixes for stdc++11 issues in later gcc versions
John D
parents:
4298
diff
changeset
|
59 CXXFLAGS='-std=gnu++11' \ |
ae1280afbc8c
wxwidgets: add fixes for stdc++11 issues in later gcc versions
John D
parents:
4298
diff
changeset
|
60 CXXCPP='$(MXE_CXX) -E -std=gnu++11' |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
61 |
4353
ae1280afbc8c
wxwidgets: add fixes for stdc++11 issues in later gcc versions
John D
parents:
4298
diff
changeset
|
62 $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_DOCS) $(MXE_DISABLE_PROGS) |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
63 |
4353
ae1280afbc8c
wxwidgets: add fixes for stdc++11 issues in later gcc versions
John D
parents:
4298
diff
changeset
|
64 $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_DOCS) $(MXE_DISABLE_PROGS) __install_wxrc___depname= |
1477
52b652c3e927
add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
diff
changeset
|
65 |
4294 | 66 $(INSTALL) -m755 '$(HOST_BINDIR)/wx-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)wx-config' |
4298 | 67 mv $(HOST_LIBDIR)/wxbase30*.dll $(HOST_BINDIR)/ |
68 mv $(HOST_LIBDIR)/wxmsw30*.dll $(HOST_BINDIR)/ | |
4294 | 69 |
244 | 70 endef |