annotate src/wxwidgets.mk @ 2365:b5321bdec505

Move full package names from src/*.mk into package list (index.html)
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 29 Mar 2012 21:41:44 +0200
parents 99516e73b368
children 4d0f3a9da57e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
d9063b46f9dc update package wxwidgets
Mark Brand <mabrand@mabrand.nl>
parents: 1621
diff changeset
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
0714de3e00b9 upgrade package wxwidgets
Mark Brand <mabrand@mabrand.nl>
parents: 1120
diff changeset
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
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
1462
61dda1d437e2 improved update script of packages: boost cppunit cunit expat freetype glew pcre pdcurses wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 1122
diff changeset
13 wget -q -O- 'http://sourceforge.net/projects/wxwindows/files/' | \
1122
0714de3e00b9 upgrade package wxwidgets
Mark Brand <mabrand@mabrand.nl>
parents: 1120
diff changeset
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
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
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
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --host='$(TARGET)' \
2153
e4c83fa61a5b replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents: 2148
diff changeset
23 --build="`config.guess`" \
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --disable-shared \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --enable-compat24 \
267
045b457ea6cd improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
27 --enable-compat26 \
045b457ea6cd improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
28 --enable-gui \
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --enable-stl \
267
045b457ea6cd improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
30 --enable-threads \
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --enable-unicode \
267
045b457ea6cd improved build rules for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
32 --disable-universal \
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --with-themes=all \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --with-msw \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --with-opengl \
1621
64fdb94ef9f2 package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents: 1619
diff changeset
36 --with-libpng=sys \
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --with-libjpeg=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --with-libtiff=sys \
459
678687647a17 use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
39 --with-regex=yes \
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --with-zlib=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 --with-expat=sys \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 --with-sdl \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 --without-gtk \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 --without-motif \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 --without-mac \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 --without-macosx-sdk \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --without-cocoa \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --without-wine \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 --without-pm \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 --without-microwin \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 --without-libxpm \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --without-libmspack \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 --without-gnomeprint \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 --without-gnomevfs \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 --without-hildon \
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 --without-dmalloc \
2190
861ed76f2041 packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents: 2153
diff changeset
57 --without-odbc \
861ed76f2041 packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents: 2153
diff changeset
58 LIBS=" `'$(TARGET)-pkg-config' --libs-only-l libtiff-4`"
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
59 $(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
60 -$(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
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)
1621
64fdb94ef9f2 package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents: 1619
diff changeset
66 $(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
67 (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
68 $(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
69 $(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
70 cd '$(1)/$(wxwidgets_SUBDIR)' && ./configure \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
71 --host='$(TARGET)' \
2153
e4c83fa61a5b replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents: 2148
diff changeset
72 --build="`config.guess`" \
268
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
73 --disable-shared \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
74 --prefix='$(PREFIX)/$(TARGET)' \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
75 --enable-compat24 \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
76 --enable-compat26 \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
77 --enable-gui \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
78 --enable-stl \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
79 --enable-threads \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
80 --disable-unicode \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
81 --disable-universal \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
82 --with-themes=all \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
83 --with-msw \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
84 --with-opengl \
1621
64fdb94ef9f2 package wxwidgets: libpng 1.5 compatibility
Mark Brand <mabrand@mabrand.nl>
parents: 1619
diff changeset
85 --with-libpng=sys \
268
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
86 --with-libjpeg=sys \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
87 --with-libtiff=sys \
459
678687647a17 use wxwidget's internal regex library instead of tre
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
88 --with-regex=yes \
268
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
89 --with-zlib=sys \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
90 --with-expat=sys \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
91 --with-sdl \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
92 --without-gtk \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
93 --without-motif \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
94 --without-mac \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
95 --without-macosx-sdk \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
96 --without-cocoa \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
97 --without-wine \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
98 --without-pm \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
99 --without-microwin \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
100 --without-libxpm \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
101 --without-libmspack \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
102 --without-gnomeprint \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
103 --without-gnomevfs \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
104 --without-hildon \
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
105 --without-dmalloc \
2190
861ed76f2041 packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents: 2153
diff changeset
106 --without-odbc \
861ed76f2041 packages gdk-pixbuf wxwidgets: tiff 4 compatibility
Mark Brand <mabrand@mabrand.nl>
parents: 2153
diff changeset
107 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
108 $(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
109
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
110 # 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
111 # 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
112 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
113
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
114 $(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
115 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
116 $(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
117
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
118 # restore the unicode wx-config script
996ac8524605 build also the wxWidgets variant without unicode support
Volker Grabsch <vog@notjusthosting.com>
parents: 267
diff changeset
119 mv '$(PREFIX)/$(TARGET)/bin/wx-config-backup' '$(PREFIX)/$(TARGET)/bin/wx-config'
1477
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 1462
diff changeset
120
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 1462
diff changeset
121 # build test program
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 1462
diff changeset
122 '$(TARGET)-g++' \
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 1462
diff changeset
123 -W -Wall -Werror -pedantic -std=gnu++0x \
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 1462
diff changeset
124 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-wxwidgets.exe' \
52b652c3e927 add test program for package wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents: 1462
diff changeset
125 `'$(TARGET)-wx-config' --cflags --libs`
244
31df7a34dae4 new package: wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
126 endef