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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # wxWidgets
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_SUBDIR := wxMSW-$($(PKG)_VERSION)
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/wxwindows/$($(PKG)_FILE)
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_DEPS := gcc libiconv libpng jpeg tiff sdl tre zlib expat
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=9863&package_id=14078' | \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 head -1
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --host='$(TARGET)' \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --disable-shared \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --prefix='$(PREFIX)/$(TARGET)' \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --enable-stl \
267
045b457ea6cd improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
28 --enable-threads \
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --enable-unicode \
267
045b457ea6cd improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
30 --disable-universal \
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --with-themes=all \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --with-msw \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --with-opengl \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --with-libpng=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --with-libjpeg=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --with-libtiff=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --with-regex=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --with-zlib=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --with-expat=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --with-sdl \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 --without-gtk \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 --without-motif \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 --without-mac \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 --without-macosx-sdk \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 --without-cocoa \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 --without-wine \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --without-pm \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --without-microwin \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 --without-libxpm \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 --without-libmspack \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 --without-gnomeprint \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --without-gnomevfs \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 --without-hildon \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 --without-dmalloc \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 --without-odbc \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 CFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
57 CXXFLAGS="-I$(PREFIX)/$(TARGET)/include/tre" \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
58 LIBS=" `$(TARGET)-pkg-config tre --libs`"
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
117 endef