blob: 241771b763521b96adf15e2ea4d8079b815d2699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# This file is part of MXE.
# See index.html for further information.
PKG := qt5
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 0be5c66e9132e4d7c82a1f6f5569165186dba5f6
$(PKG)_SUBDIR := qt-everywhere-opensource-src-$($(PKG)_VERSION)
$(PKG)_FILE := qt-everywhere-opensource-src-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://releases.qt-project.org/qt5.0/rc2/single/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libodbc++ postgresql freetds openssl zlib libpng jpeg libmng tiff sqlite dbus pcre fontconfig freetype
define $(PKG)_UPDATE
echo 'Warning: Updates are temporarily disabled for package qt5.' >&2;
endef
define $(PKG)_BUILD
cd '$(1)' && \
OPENSSL_LIBS="`'$(TARGET)-pkg-config' --libs-only-l openssl`" \
PSQL_LIBS="-lpq -lsecur32 `'$(TARGET)-pkg-config' --libs-only-l openssl` -lws2_32" \
SYBASE_LIBS="-lsybdb `'$(TARGET)-pkg-config' --libs-only-l gnutls` -liconv -lws2_32" \
./configure \
-opensource \
-confirm-license \
-fast \
-xplatform win32-g++ \
-device-option CROSS_COMPILE=${TARGET}- \
-device-option PKG_CONFIG='${TARGET}-pkg-config' \
-force-pkg-config \
-release \
-static \
-prefix '$(PREFIX)/$(TARGET)/qt5' \
-opengl desktop \
-no-glib \
-accessibility \
-no-reduce-exports \
-no-rpath \
-nomake demos \
-nomake examples \
-nomake docs \
-nomake tests \
-qt-sql-sqlite \
-qt-sql-odbc \
-qt-sql-psql \
-qt-sql-tds -D Q_USE_SYBASE \
-system-zlib \
-system-libpng \
-system-libjpeg \
-system-sqlite \
-system-pcre \
-openssl-linked \
-dbus-linked \
-v
$(MAKE) -C '$(1)' -j '$(JOBS)'
rm -rf '$(PREFIX)/$(TARGET)/qt5'
$(MAKE) -C '$(1)' -j 1 install
# missing plugin description files
$(INSTALL) -m644 '$(1)/qtbase/mkspecs/modules/qt_plugin_'*'.pri' '$(PREFIX)/$(TARGET)/qt5/mkspecs/modules/'
mkdir '$(1)/test-qt'
cd '$(1)/test-qt' && '$(PREFIX)/$(TARGET)/qt5/bin/qmake' '$(PWD)/src/qt-test.pro'
$(MAKE) -C '$(1)/test-qt' -j '$(JOBS)'
$(INSTALL) -m755 '$(1)/test-qt/release/test-qt5.exe' '$(PREFIX)/$(TARGET)/bin/'
endef
|