Mercurial > mxe-octave
annotate src/wxwidgets.mk @ 302:6098a4a72b60
update version of packages freetype, glib, gtk, pango, pdflib_lite and wxwidgets
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 23 Mar 2009 01:30:44 +0100 |
parents | 08a32251156c |
children | 85ffa9259036 |
rev | line source |
---|---|
244 | 1 # wxWidgets |
2 | |
3 PKG := wxwidgets | |
302
6098a4a72b60
update version of packages freetype, glib, gtk, pango, pdflib_lite and wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
4 $(PKG)_VERSION := 2.8.10 |
244 | 5 $(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION) |
6 $(PKG)_FILE := wxMSW-$($(PKG)_VERSION).tar.bz2 | |
265
5bf9071e67b6
put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents:
244
diff
changeset
|
7 $(PKG)_WEBSITE := http://www.wxwidgets.org/ |
244 | 8 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/wxwindows/$($(PKG)_FILE) |
9 $(PKG)_DEPS := gcc libiconv libpng jpeg tiff sdl tre zlib expat | |
10 | |
11 define $(PKG)_UPDATE | |
12 wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=9863&package_id=14078' | \ | |
13 grep 'wxMSW-' | \ | |
266
b94424e6c37f
improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
14 $(SED) -n 's,.*wxMSW-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
244 | 15 head -1 |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
19 $(SED) 's,wx_cv_cflags_mthread=yes,wx_cv_cflags_mthread=no,' -i '$(1)/configure' |
244 | 20 cd '$(1)' && ./configure \ |
21 --host='$(TARGET)' \ | |
22 --disable-shared \ | |
23 --prefix='$(PREFIX)/$(TARGET)' \ | |
24 --enable-compat24 \ | |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
25 --enable-compat26 \ |
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
26 --enable-gui \ |
244 | 27 --enable-stl \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
28 --enable-threads \ |
244 | 29 --enable-unicode \ |
267
045b457ea6cd
improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
30 --disable-universal \ |
244 | 31 --with-themes=all \ |
32 --with-msw \ | |
33 --with-opengl \ | |
34 --with-libpng=sys \ | |
35 --with-libjpeg=sys \ | |
36 --with-libtiff=sys \ | |
37 --with-regex=sys \ | |
38 --with-zlib=sys \ | |
39 --with-expat=sys \ | |
40 --with-sdl \ | |
41 --without-gtk \ | |
42 --without-motif \ | |
43 --without-mac \ | |
44 --without-macosx-sdk \ | |
45 --without-cocoa \ | |
46 --without-wine \ | |
47 --without-pm \ | |
48 --without-microwin \ | |
49 --without-libxpm \ | |
50 --without-libmspack \ | |
51 --without-gnomeprint \ | |
52 --without-gnomevfs \ | |
53 --without-hildon \ | |
54 --without-dmalloc \ | |
55 --without-odbc \ | |
56 CFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \ | |
57 CXXFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \ | |
58 LIBS=" `$(TARGET)-pkg-config tre --libs`" | |
59 $(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
|
60 $(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
|
61 $(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
|
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) |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
65 $(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
|
66 cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
67 --host='$(TARGET)' \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
68 --disable-shared \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
69 --prefix='$(PREFIX)/$(TARGET)' \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
70 --enable-compat24 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
71 --enable-compat26 \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
72 --enable-gui \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
73 --enable-stl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
74 --enable-threads \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
75 --disable-unicode \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
76 --disable-universal \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
77 --with-themes=all \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
78 --with-msw \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
79 --with-opengl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
80 --with-libpng=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
81 --with-libjpeg=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
82 --with-libtiff=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
83 --with-regex=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
84 --with-zlib=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
85 --with-expat=sys \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
86 --with-sdl \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
87 --without-gtk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
88 --without-motif \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
89 --without-mac \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
90 --without-macosx-sdk \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
91 --without-cocoa \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
92 --without-wine \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
93 --without-pm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
94 --without-microwin \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
95 --without-libxpm \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
96 --without-libmspack \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
97 --without-gnomeprint \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
98 --without-gnomevfs \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
99 --without-hildon \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
100 --without-dmalloc \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
101 --without-odbc \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
102 CFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
103 CXXFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \ |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
104 LIBS=" `$(TARGET)-pkg-config tre --libs`" |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
105 $(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
|
106 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
107 # 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
|
108 # 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
|
109 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
|
110 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
111 $(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
|
112 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
|
113 $(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
|
114 |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
115 # restore the unicode wx-config script |
996ac8524605
build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents:
267
diff
changeset
|
116 mv '$(PREFIX)/$(TARGET)/bin/wx-config-backup' '$(PREFIX)/$(TARGET)/bin/wx-config' |
244 | 117 endef |