Mercurial > mxe-octave
annotate src/wxwidgets.mk @ 714:29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 08 Feb 2010 00:58:06 +0100 |
parents | dab071eac9c0 |
children | bf4bcb3370fa |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
634
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
2 # See doc/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 |
244 | 4 # wxWidgets |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
5 PKG := wxwidgets |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
422
diff
changeset
|
6 $(PKG)_IGNORE := |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
7 $(PKG)_VERSION := 2.8.10 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
8 $(PKG)_CHECKSUM := e674086391ce5c8e64ef1823654d6f88b064c8e0 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
9 $(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
10 $(PKG)_FILE := wxMSW-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
11 $(PKG)_WEBSITE := http://www.wxwidgets.org/ |
422
d2f5eb27e051
improved download URLs for all SourceForge packages to ensure that the selected SOURCEFORGE_MIRROR is really used
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/wxwindows/wxMSW/$($(PKG)_VERSION)/$($(PKG)_FILE) |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
13 $(PKG)_DEPS := gcc libiconv libpng jpeg tiff sdl zlib expat |
244 | 14 |
15 define $(PKG)_UPDATE | |
408
413750a629be
improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
16 $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/wxwindows/files/wxMSW/) | \ |
266
b94424e6c37f
improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
17 $(SED) -n 's,.*wxMSW-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
408
413750a629be
improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
18 tail -1 |
244 | 19 endef |
20 | |
21 define $(PKG)_BUILD | |
634
891ee2b83294
update version of package libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
459
diff
changeset
|
22 $(SED) 's,png_check_sig,png_sig_cmp,g' -i '$(1)/configure' |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
23 $(SED) 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' -i '$(1)/configure' |
244 | 24 cd '$(1)' && ./configure \ |
25 --host='$(TARGET)' \ | |
26 --disable-shared \ | |
27 --prefix='$(PREFIX)/$(TARGET)' \ | |
28 --enable-compat24 \ | |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
29 --enable-compat26 \ |
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
30 --enable-gui \ |
244 | 31 --enable-stl \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
32 --enable-threads \ |
244 | 33 --enable-unicode \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
34 --disable-universal \ |
244 | 35 --with-themes=all \ |
36 --with-msw \ | |
37 --with-opengl \ | |
38 --with-libpng=sys \ | |
39 --with-libjpeg=sys \ | |
40 --with-libtiff=sys \ | |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
41 --with-regex=yes \ |
244 | 42 --with-zlib=sys \ |
43 --with-expat=sys \ | |
44 --with-sdl \ | |
45 --without-gtk \ | |
46 --without-motif \ | |
47 --without-mac \ | |
48 --without-macosx-sdk \ | |
49 --without-cocoa \ | |
50 --without-wine \ | |
51 --without-pm \ | |
52 --without-microwin \ | |
53 --without-libxpm \ | |
54 --without-libmspack \ | |
55 --without-gnomeprint \ | |
56 --without-gnomevfs \ | |
57 --without-hildon \ | |
58 --without-dmalloc \ | |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
59 --without-odbc |
244 | 60 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
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= |
285
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
268
diff
changeset
|
62 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/bin/wx-config' '$(PREFIX)/bin/$(TARGET)-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 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
65 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,wxwidgets) |
634
891ee2b83294
update version of package libpng
Volker Grabsch <vog@notjusthosting.com>
parents:
459
diff
changeset
|
66 $(SED) 's,png_check_sig,png_sig_cmp,g' -i '$(1)/$(wxwidgets_SUBDIR)/configure' |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
67 $(SED) 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' -i '$(1)/$(wxwidgets_SUBDIR)/configure' |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
68 cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
69 --host='$(TARGET)' \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
70 --disable-shared \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
71 --prefix='$(PREFIX)/$(TARGET)' \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
72 --enable-compat24 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
73 --enable-compat26 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
74 --enable-gui \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
75 --enable-stl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
76 --enable-threads \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
77 --disable-unicode \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
78 --disable-universal \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
79 --with-themes=all \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
80 --with-msw \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
81 --with-opengl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
82 --with-libpng=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
83 --with-libjpeg=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
84 --with-libtiff=sys \ |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
85 --with-regex=yes \ |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
86 --with-zlib=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
87 --with-expat=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
88 --with-sdl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
89 --without-gtk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
90 --without-motif \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
91 --without-mac \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
92 --without-macosx-sdk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
93 --without-cocoa \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
94 --without-wine \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
95 --without-pm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
96 --without-microwin \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
97 --without-libxpm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
98 --without-libmspack \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
99 --without-gnomeprint \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
100 --without-gnomevfs \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
101 --without-hildon \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
102 --without-dmalloc \ |
459
678687647a17
use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents:
448
diff
changeset
|
103 --without-odbc |
268
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
104 $(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
|
105 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
106 # 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
|
107 # such that "make install" won't overwrite it |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
108 mv '$(PREFIX)/$(TARGET)/bin/wx-config' '$(PREFIX)/$(TARGET)/bin/wx-config-backup' |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
109 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
110 $(MAKE) -C '$(1)/$(wxwidgets_SUBDIR)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= __install_wxrc___depname= |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
111 mv '$(PREFIX)/$(TARGET)/bin/wx-config' '$(PREFIX)/$(TARGET)/bin/wx-config-nounicode' |
285
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
268
diff
changeset
|
112 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/bin/wx-config-nounicode' '$(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
|
113 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
114 # restore the unicode wx-config script |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
115 mv '$(PREFIX)/$(TARGET)/bin/wx-config-backup' '$(PREFIX)/$(TARGET)/bin/wx-config' |
244 | 116 endef |