mxe/src/qt.mk

89 lines
3.0 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2009-10-03 20:11:16 +01:00
PKG := qt
$(PKG)_IGNORE :=
2012-09-03 16:13:09 +01:00
$(PKG)_CHECKSUM := bc352a283610e0cd2fe0dbedbc45613844090fcb
2009-10-03 20:11:16 +01:00
$(PKG)_SUBDIR := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-everywhere-opensource-src-$($(PKG)_VERSION).tar.gz
2012-05-22 12:59:29 +01:00
$(PKG)_URL := http://releases.qt-project.org/qt4/source/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libodbc++ postgresql freetds openssl zlib libpng jpeg libmng tiff sqlite dbus
2009-10-03 20:11:16 +01:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://qt.gitorious.org/qt/qt/commits' | \
2009-10-03 20:11:16 +01:00
grep '<li><a href="/qt/qt/commit/' | \
$(SED) -n 's,.*<a[^>]*>v\([0-9][^<-]*\)<.*,\1,p' | \
2009-10-03 20:11:16 +01:00
tail -1
endef
define $(PKG)_BUILD
2011-10-15 00:58:08 +01:00
cd '$(1)' && QTDIR='$(1)' ./bin/syncqt
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 \
2009-10-03 20:11:16 +01:00
-opensource \
-confirm-license \
-fast \
-xplatform win32-g++-4.6 \
-device-option CROSS_COMPILE=$(TARGET)- \
-force-pkg-config \
-release \
2009-10-03 20:11:16 +01:00
-exceptions \
-static \
-prefix '$(PREFIX)/$(TARGET)' \
-prefix-install \
-script \
-no-iconv \
-opengl desktop \
-no-webkit \
-no-glib \
-no-gstreamer \
-no-phonon \
2009-10-03 20:11:16 +01:00
-no-phonon-backend \
-accessibility \
-no-reduce-exports \
-no-rpath \
-make libs \
-nomake demos \
-nomake docs \
-nomake examples \
2010-08-26 21:45:04 +01:00
-qt-sql-sqlite \
-qt-sql-odbc \
-qt-sql-psql \
-qt-sql-tds -D Q_USE_SYBASE \
-system-zlib \
-system-libpng \
-system-libjpeg \
-system-libtiff \
-system-libmng \
-system-sqlite \
-openssl-linked \
2011-01-04 00:17:16 +00:00
-dbus-linked \
-v
2009-10-03 20:11:16 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)'
rm -rf '$(PREFIX)/$(TARGET)/mkspecs'
$(MAKE) -C '$(1)' -j 1 install
$(INSTALL) -m755 '$(1)/bin/moc' '$(PREFIX)/bin/$(TARGET)-moc'
$(INSTALL) -m755 '$(1)/bin/rcc' '$(PREFIX)/bin/$(TARGET)-rcc'
$(INSTALL) -m755 '$(1)/bin/uic' '$(PREFIX)/bin/$(TARGET)-uic'
$(INSTALL) -m755 '$(1)/bin/qmake' '$(PREFIX)/bin/$(TARGET)-qmake'
2010-01-22 23:07:21 +00:00
cd '$(1)/tools/assistant' && '$(1)/bin/qmake' assistant.pro
$(MAKE) -C '$(1)/tools/assistant' -j '$(JOBS)' install
cd '$(1)/tools/designer' && '$(1)/bin/qmake' designer.pro
$(MAKE) -C '$(1)/tools/designer' -j '$(JOBS)' install
# at least some of the qdbus tools are useful on target
cd '$(1)/tools/qdbus' && '$(1)/bin/qmake' qdbus.pro
$(MAKE) -C '$(1)/tools/qdbus' -j '$(JOBS)' install
2010-01-22 23:07:21 +00:00
mkdir '$(1)/test-qt'
2011-11-02 22:49:19 +00:00
cd '$(1)/test-qt' && '$(TARGET)-qmake' '$(PWD)/$(2).pro'
2010-01-22 23:07:21 +00:00
$(MAKE) -C '$(1)/test-qt' -j '$(JOBS)'
$(INSTALL) -m755 '$(1)/test-qt/release/test-qt.exe' '$(PREFIX)/$(TARGET)/bin/'
2009-10-03 20:11:16 +01:00
endef