You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
5.3 KiB
90 lines
5.3 KiB
PACKAGE=qt |
|
$(package)_version=5.2.1 |
|
$(package)_download_path=http://download.qt-project.org/official_releases/qt/5.2/$($(package)_version)/single |
|
$(package)_file_name=$(package)-everywhere-opensource-src-$($(package)_version).tar.gz |
|
$(package)_sha256_hash=84e924181d4ad6db00239d87250cc89868484a14841f77fb85ab1f1dbdcd7da1 |
|
$(package)_dependencies=openssl |
|
$(package)_linux_dependencies=freetype fontconfig dbus libxcb libX11 xproto libXext |
|
$(package)_build_subdir=qtbase |
|
$(package)_qt_libs=corelib network widgets gui plugins testlib |
|
$(package)_patches=mac-qmake.conf fix-xcb-include-order.patch qt5-tablet-osx.patch |
|
|
|
define $(package)_set_vars |
|
$(package)_config_opts = -release -opensource -confirm-license |
|
$(package)_config_opts += -no-audio-backend -no-sql-tds -no-glib -no-icu |
|
$(package)_config_opts += -no-cups -no-iconv -no-gif -no-audio-backend -no-freetype |
|
$(package)_config_opts += -no-sql-sqlite -no-nis -no-cups -no-iconv -no-pch |
|
$(package)_config_opts += -no-gif -no-feature-style-plastique |
|
$(package)_config_opts += -no-qml-debug -no-pch -no-nis -nomake examples -nomake tests |
|
$(package)_config_opts += -no-feature-style-cde -no-feature-style-s60 -no-feature-style-motif |
|
$(package)_config_opts += -no-feature-style-windowsmobile -no-feature-style-windowsce |
|
$(package)_config_opts += -no-feature-style-cleanlooks |
|
$(package)_config_opts += -no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-tds -no-sql-mysql |
|
$(package)_config_opts += -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 |
|
$(package)_config_opts += -skip qtsvg -skip qtwebkit -skip qtwebkit-examples -skip qtserialport |
|
$(package)_config_opts += -skip qtdeclarative -skip qtmultimedia -skip qtimageformats -skip qtx11extras |
|
$(package)_config_opts += -skip qtlocation -skip qtsensors -skip qtquick1 -skip qtxmlpatterns |
|
$(package)_config_opts += -skip qtquickcontrols -skip qtactiveqt -skip qtconnectivity -skip qtmacextras |
|
$(package)_config_opts += -skip qtwinextras -skip qtxmlpatterns -skip qtscript -skip qtdoc |
|
|
|
$(package)_config_opts += -prefix $(host_prefix) -bindir $(build_prefix)/bin |
|
$(package)_config_opts += -no-c++11 -openssl-linked -v -static -silent -pkg-config |
|
$(package)_config_opts += -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre |
|
|
|
ifneq ($(build_os),darwin) |
|
$(package)_config_opts_darwin = -xplatform macx-clang-linux -device-option MAC_SDK_PATH=$(OSX_SDK) -device-option CROSS_COMPILE="$(host)-" |
|
$(package)_config_opts_darwin += -device-option MAC_MIN_VERSION=$(OSX_MIN_VERSION) -device-option MAC_TARGET=$(host) |
|
endif |
|
|
|
$(package)_config_opts_linux = -qt-xkbcommon -qt-xcb -no-eglfs -no-linuxfb -system-freetype -no-sm -fontconfig -no-xinput2 -no-libudev -no-egl -no-opengl |
|
$(package)_config_opts_arm_linux = -platform linux-g++ -xplatform $(host) |
|
$(package)_config_opts_i686_linux = -xplatform linux-g++-32 |
|
$(package)_config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option CROSS_COMPILE="$(host)-" |
|
$(package)_build_env = QT_RCC_TEST=1 |
|
endef |
|
|
|
define $(package)_preprocess_cmds |
|
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \ |
|
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \ |
|
sed -i.old "/XIproto.h/d" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \ |
|
mkdir -p qtbase/mkspecs/macx-clang-linux &&\ |
|
cp -f qtbase/mkspecs/macx-clang/Info.plist.lib qtbase/mkspecs/macx-clang-linux/ &&\ |
|
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\ |
|
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\ |
|
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \ |
|
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch && \ |
|
patch -p1 < $($(package)_patch_dir)/qt5-tablet-osx.patch |
|
endef |
|
|
|
define $(package)_config_cmds |
|
export PKG_CONFIG_SYSROOT_DIR=/ && \ |
|
export PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig && \ |
|
export PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig && \ |
|
export CPATH=$(host_prefix)/include && \ |
|
./configure $($(package)_config_opts) && \ |
|
$(MAKE) sub-src-clean && \ |
|
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \ |
|
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. &&\ |
|
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile |
|
endef |
|
|
|
define $(package)_build_cmds |
|
export CPATH=$(host_prefix)/include && \ |
|
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \ |
|
$(MAKE) -C ../qttools/src/linguist/lrelease && \ |
|
$(MAKE) -C ../qttranslations |
|
endef |
|
|
|
define $(package)_stage_cmds |
|
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. &&\ |
|
$(MAKE) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install_target && \ |
|
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets && \ |
|
if `test -f qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a`; then \ |
|
cp qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a $($(package)_staging_prefix_dir)/lib; \ |
|
fi |
|
endef |
|
|
|
define $(package)_postprocess_cmds |
|
rm -rf mkspecs/ lib/cmake/ && \ |
|
rm lib/libQt5Bootstrap.a lib/lib*.la lib/lib*.prl |
|
endef
|
|
|