Mercurial > mxe-octave
annotate src/wxwidgets.mk @ 414:d2a6561bcb6d
add a copyright notice and license to each source file
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Fri, 21 Aug 2009 06:58:11 +0200 |
parents | 413750a629be |
children | c82e9294b774 |
rev | line source |
---|---|
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
1 # Copyright (C) 2009 Volker Grabsch <vog@notjusthosting.com> |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
2 # |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
3 # Permission is hereby granted, free of charge, to any person obtaining |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
4 # a copy of this software and associated documentation files (the |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
5 # "Software"), to deal in the Software without restriction, including |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
6 # without limitation the rights to use, copy, modify, merge, publish, |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
7 # distribute, sublicense, and/or sell copies of the Software, and to |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
8 # permit persons to whom the Software is furnished to do so, subject |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
9 # to the following conditions: |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
10 # |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
11 # The above copyright notice and this permission notice shall be |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
12 # included in all copies or substantial portions of the Software. |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
13 # |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
17 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
18 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
19 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
20 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
21 |
244 | 22 # wxWidgets |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
23 PKG := wxwidgets |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
24 $(PKG)_VERSION := 2.8.10 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
25 $(PKG)_CHECKSUM := e674086391ce5c8e64ef1823654d6f88b064c8e0 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
26 $(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
27 $(PKG)_FILE := wxMSW-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
28 $(PKG)_WEBSITE := http://www.wxwidgets.org/ |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
29 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/wxwindows/$($(PKG)_FILE) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
302
diff
changeset
|
30 $(PKG)_DEPS := gcc libiconv libpng jpeg tiff sdl tre zlib expat |
244 | 31 |
32 define $(PKG)_UPDATE | |
408
413750a629be
improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
33 $(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
|
34 $(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
|
35 tail -1 |
244 | 36 endef |
37 | |
38 define $(PKG)_BUILD | |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
39 $(SED) 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' -i '$(1)/configure' |
244 | 40 cd '$(1)' && ./configure \ |
41 --host='$(TARGET)' \ | |
42 --disable-shared \ | |
43 --prefix='$(PREFIX)/$(TARGET)' \ | |
44 --enable-compat24 \ | |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
45 --enable-compat26 \ |
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
46 --enable-gui \ |
244 | 47 --enable-stl \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
48 --enable-threads \ |
244 | 49 --enable-unicode \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
50 --disable-universal \ |
244 | 51 --with-themes=all \ |
52 --with-msw \ | |
53 --with-opengl \ | |
54 --with-libpng=sys \ | |
55 --with-libjpeg=sys \ | |
56 --with-libtiff=sys \ | |
57 --with-regex=sys \ | |
58 --with-zlib=sys \ | |
59 --with-expat=sys \ | |
60 --with-sdl \ | |
61 --without-gtk \ | |
62 --without-motif \ | |
63 --without-mac \ | |
64 --without-macosx-sdk \ | |
65 --without-cocoa \ | |
66 --without-wine \ | |
67 --without-pm \ | |
68 --without-microwin \ | |
69 --without-libxpm \ | |
70 --without-libmspack \ | |
71 --without-gnomeprint \ | |
72 --without-gnomevfs \ | |
73 --without-hildon \ | |
74 --without-dmalloc \ | |
75 --without-odbc \ | |
76 CFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \ | |
77 CXXFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \ | |
78 LIBS=" `$(TARGET)-pkg-config tre --libs`" | |
79 $(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
|
80 $(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
|
81 $(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
|
82 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
83 # 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
|
84 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,wxwidgets) |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
85 $(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
|
86 cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
87 --host='$(TARGET)' \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
88 --disable-shared \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
89 --prefix='$(PREFIX)/$(TARGET)' \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
90 --enable-compat24 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
91 --enable-compat26 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
92 --enable-gui \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
93 --enable-stl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
94 --enable-threads \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
95 --disable-unicode \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
96 --disable-universal \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
97 --with-themes=all \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
98 --with-msw \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
99 --with-opengl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
100 --with-libpng=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
101 --with-libjpeg=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
102 --with-libtiff=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
103 --with-regex=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
104 --with-zlib=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
105 --with-expat=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
106 --with-sdl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
107 --without-gtk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
108 --without-motif \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
109 --without-mac \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
110 --without-macosx-sdk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
111 --without-cocoa \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
112 --without-wine \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
113 --without-pm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
114 --without-microwin \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
115 --without-libxpm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
116 --without-libmspack \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
117 --without-gnomeprint \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
118 --without-gnomevfs \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
119 --without-hildon \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
120 --without-dmalloc \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
121 --without-odbc \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
122 CFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
123 CXXFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
124 LIBS=" `$(TARGET)-pkg-config tre --libs`" |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
125 $(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
|
126 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
127 # 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
|
128 # 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
|
129 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
|
130 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
131 $(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
|
132 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
|
133 $(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
|
134 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
135 # restore the unicode wx-config script |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
136 mv '$(PREFIX)/$(TARGET)/bin/wx-config-backup' '$(PREFIX)/$(TARGET)/bin/wx-config' |
244 | 137 endef |