Mercurial > mxe-octave
annotate src/wxwidgets.mk @ 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
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 16:59:24 -0400 |
parents | bcc26ffe9a0f |
children | 951da75fd09c |
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 := |
1716 | 6 $(PKG)_CHECKSUM := 39552f3e49341197fea8373824ec609c757e890b |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
7 $(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
8 $(PKG)_FILE := wxMSW-$($(PKG)_VERSION).tar.bz2 |
1122 | 9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/wxwindows/$($(PKG)_VERSION)/$($(PKG)_FILE) |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
10 $(PKG)_DEPS := gcc libiconv libpng jpeg tiff sdl zlib expat |
244 | 11 |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(WGET) -q -O- 'http://sourceforge.net/projects/wxwindows/files/' | \ |
1122 | 14 $(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
|
15 head -1 |
244 | 16 endef |
17 | |
18 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
|
19 $(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
|
20 $(SED) -i 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' '$(1)/configure' |
244 | 21 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
22 $(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
|
23 $(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
|
24 --prefix='$(HOST_PREFIX)' \ |
244 | 25 --enable-compat24 \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
26 --enable-compat26 \ |
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
27 --enable-gui \ |
244 | 28 --enable-stl \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
29 --enable-threads \ |
244 | 30 --enable-unicode \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
31 --disable-universal \ |
244 | 32 --with-themes=all \ |
33 --with-msw \ | |
34 --with-opengl \ | |
1621
64fdb94ef9f2
package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
1619
diff
changeset
|
35 --with-libpng=sys \ |
244 | 36 --with-libjpeg=sys \ |
37 --with-libtiff=sys \ | |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
38 --with-regex=yes \ |
244 | 39 --with-zlib=sys \ |
40 --with-expat=sys \ | |
41 --with-sdl \ | |
42 --without-gtk \ | |
43 --without-motif \ | |
44 --without-mac \ | |
45 --without-macosx-sdk \ | |
46 --without-cocoa \ | |
47 --without-wine \ | |
48 --without-pm \ | |
49 --without-microwin \ | |
50 --without-libxpm \ | |
51 --without-libmspack \ | |
52 --without-gnomeprint \ | |
53 --without-gnomevfs \ | |
54 --without-hildon \ | |
55 --without-dmalloc \ | |
2190
861ed76f2041
packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2153
diff
changeset
|
56 --without-odbc \ |
861ed76f2041
packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2153
diff
changeset
|
57 LIBS=" `'$(TARGET)-pkg-config' --libs-only-l libtiff-4`" |
244 | 58 $(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
|
59 -$(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
|
60 $(MAKE) -C '$(1)' -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
|
61 $(INSTALL) -m755 '$(HOST_BINDIR)/wx-config' '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-wx-config' |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
62 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
63 # build the wxWidgets variant without unicode support |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
64 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,wxwidgets) |
1621
64fdb94ef9f2
package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
1619
diff
changeset
|
65 $(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
|
66 (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
|
67 $(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
|
68 $(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
|
69 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
|
70 $(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
|
71 $(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
|
72 --prefix='$(HOST_PREFIX)' \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
73 --enable-compat24 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
74 --enable-compat26 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
75 --enable-gui \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
76 --enable-stl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
77 --enable-threads \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
78 --disable-unicode \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
79 --disable-universal \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
80 --with-themes=all \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
81 --with-msw \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
82 --with-opengl \ |
1621
64fdb94ef9f2
package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
1619
diff
changeset
|
83 --with-libpng=sys \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
84 --with-libjpeg=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
85 --with-libtiff=sys \ |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
86 --with-regex=yes \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
87 --with-zlib=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
88 --with-expat=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
89 --with-sdl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
90 --without-gtk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
91 --without-motif \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
92 --without-mac \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
93 --without-macosx-sdk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
94 --without-cocoa \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
95 --without-wine \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
96 --without-pm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
97 --without-microwin \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
98 --without-libxpm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
99 --without-libmspack \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
100 --without-gnomeprint \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
101 --without-gnomevfs \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
102 --without-hildon \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
103 --without-dmalloc \ |
2190
861ed76f2041
packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2153
diff
changeset
|
104 --without-odbc \ |
861ed76f2041
packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents:
2153
diff
changeset
|
105 LIBS=" `'$(TARGET)-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
|
106 $(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
|
107 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
108 # 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
|
109 # 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
|
110 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
|
111 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
112 $(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
|
113 mv '$(HOST_BINDIR)/wx-config' '$(HOST_BINDIR)/wx-config-nounicode' |
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 $(INSTALL) -m755 '$(HOST_BINDIR)/wx-config-nounicode' '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-wx-config-nounicode' |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
115 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
116 # 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
|
117 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
|
118 |
52b652c3e927
add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
diff
changeset
|
119 # build test program |
52b652c3e927
add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
diff
changeset
|
120 '$(TARGET)-g++' \ |
52b652c3e927
add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
diff
changeset
|
121 -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
|
122 '$(2).cpp' -o '$(HOST_BINDIR)/test-wxwidgets.exe' \ |
1477
52b652c3e927
add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
diff
changeset
|
123 `'$(TARGET)-wx-config' --cflags --libs` |
244 | 124 endef |