forked from ElementsProject/elements
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depends: Add a package for qt4.6. Linux uses it by default.
We're not ready to switch to a static qt5 for Linux yet due to missing plugin support. This adds a recipe for building a shared qt4 that we build and link against, but don't distribute. make USE_LINUX_STATIC_QT5=1 can be used to build static qt5 as before.
- Loading branch information
Showing
7 changed files
with
136 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package=libICE | ||
$(package)_version=1.0.9 | ||
$(package)_download_path=http://xorg.freedesktop.org/releases/individual/lib/ | ||
$(package)_file_name=$(package)-$($(package)_version).tar.bz2 | ||
$(package)_sha256_hash=8f7032f2c1c64352b5423f6b48a8ebdc339cc63064af34d66a6c9aa79759e202 | ||
$(package)_dependencies=xtrans xproto | ||
|
||
define $(package)_set_vars | ||
$(package)_config_opts=--disable-static --disable-docs --disable-specs --without-xsltproc | ||
$(package)_config_opts_linux=--with-pic | ||
endef | ||
|
||
define $(package)_config_cmds | ||
$($(package)_autoconf) | ||
endef | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) install | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package=libSM | ||
$(package)_version=1.2.2 | ||
$(package)_download_path=http://xorg.freedesktop.org/releases/individual/lib/ | ||
$(package)_file_name=$(package)-$($(package)_version).tar.bz2 | ||
$(package)_sha256_hash=0baca8c9f5d934450a70896c4ad38d06475521255ca63b717a6510fdb6e287bd | ||
$(package)_dependencies=xtrans xproto libICE | ||
|
||
define $(package)_set_vars | ||
$(package)_config_opts=--without-libuuid --without-xsltproc --disable-docs --disable-static | ||
$(package)_config_opts_linux=--with-pic | ||
endef | ||
|
||
define $(package)_config_cmds | ||
$($(package)_autoconf) | ||
endef | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) install | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
PACKAGE=qt46 | ||
$(package)_version=4.6.2 | ||
$(package)_download_path=http://download.qt-project.org/archive/qt/4.6/ | ||
$(package)_file_name=qt-everywhere-opensource-src-$($(package)_version).tar.gz | ||
$(package)_sha256_hash=176f51ddb06dce67ab4b2efc6b327dc21ed8f764c5d97acc15ff1f907c2affae | ||
$(package)_dependencies=openssl | ||
$(package)_linux_dependencies=freetype dbus libX11 xproto libXext libICE libSM | ||
$(package)_patches=stlfix.patch | ||
|
||
define $(package)_set_vars | ||
$(package)_config_opts = -prefix $(host_prefix) -headerdir $(host_prefix)/include/qt4 -bindir $(build_prefix)/bin | ||
$(package)_config_opts += -release -no-separate-debug-info -opensource -confirm-license | ||
$(package)_config_opts += -stl -qt-zlib | ||
|
||
$(package)_config_opts += -nomake examples -nomake tests -nomake tools -nomake translations -nomake demos -nomake docs | ||
$(package)_config_opts += -no-audio-backend -no-glib -no-nis -no-cups -no-iconv -no-gif -no-pch | ||
$(package)_config_opts += -no-xkb -no-xrender -no-xrandr -no-xfixes -no-xcursor -no-xinerama -no-xsync -no-xinput -no-mitshm -no-xshape | ||
$(package)_config_opts += -no-libtiff -no-fontconfig -openssl-linked | ||
$(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 += -no-xmlpatterns -no-multimedia -no-phonon -no-scripttools -no-declarative | ||
$(package)_config_opts += -no-phonon-backend -no-webkit -no-javascript-jit -no-script | ||
$(package)_config_opts += -no-svg -no-libjpeg -no-libtiff -no-libpng -no-libmng -no-qt3support -no-opengl | ||
|
||
$(package)_config_opts_x86_64_linux += -platform linux-g++-64 | ||
$(package)_config_opts_i686_linux = -platform linux-g++-32 | ||
$(package)_build_env = QT_RCC_TEST=1 | ||
endef | ||
|
||
define $(package)_preprocess_cmds | ||
sed -i.old "s|/include /usr/include||" config.tests/unix/freetype/freetype.pri && \ | ||
sed -i.old "s|src_plugins.depends = src_gui src_sql src_svg|src_plugins.depends = src_gui src_sql|" src/src.pro && \ | ||
sed -i.old "s|\.lower(|\.toLower(|g" src/network/ssl/qsslsocket_openssl.cpp && \ | ||
sed -i.old "s|Key_BackSpace|Key_Backspace|" src/gui/itemviews/qabstractitemview.cpp && \ | ||
sed -i.old "s|/usr/X11R6/lib64|$(host_prefix)/lib|" mkspecs/*/*.conf && \ | ||
sed -i.old "s|/usr/X11R6/lib|$(host_prefix)/lib|" mkspecs/*/*.conf && \ | ||
sed -i.old "s|/usr/X11R6/include|$(host_prefix)/include|" mkspecs/*/*.conf && \ | ||
sed -i.old "s|QMAKE_LFLAGS_SHLIB += -shared|QMAKE_LFLAGS_SHLIB += -shared -Wl,--exclude-libs,ALL|" mkspecs/common/g++.conf && \ | ||
sed -i.old "/SSLv2_client_method/d" src/network/ssl/qsslsocket_openssl.cpp src/network/ssl/qsslsocket_openssl_symbols.cpp && \ | ||
sed -i.old "/SSLv2_server_method/d" src/network/ssl/qsslsocket_openssl.cpp src/network/ssl/qsslsocket_openssl_symbols.cpp && \ | ||
patch -p1 < $($(package)_patch_dir)/stlfix.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 && \ | ||
OPENSSL_LIBS='-L$(host_prefix)/lib -lssl -lcrypto' ./configure $($(package)_config_opts) && \ | ||
cd tools/linguist/lrelease; ../../../bin/qmake -o Makefile lrelease.pro | ||
endef | ||
|
||
define $(package)_build_cmds | ||
export CPATH=$(host_prefix)/include && \ | ||
$(MAKE) -C src && \ | ||
$(MAKE) -C tools/linguist/lrelease | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) install && \ | ||
$(MAKE) -C tools/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install | ||
endef | ||
|
||
define $(package)_postprocess_cmds | ||
rm -rf mkspecs/ lib/cmake/ && \ | ||
find native/bin -type f -exec mv {} {}-qt4 \; | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- old/config.tests/unix/stl/stltest.cpp 2011-06-23 03:45:23.000000000 -0400 | ||
+++ new/config.tests/unix/stl/stltest.cpp 2014-08-28 00:54:04.154837604 -0400 | ||
@@ -49,6 +49,7 @@ | ||
#include <vector> | ||
#include <algorithm> | ||
#include <iostream> | ||
+#include <cstddef> | ||
|
||
// something mean to see if the compiler and C++ standard lib are good enough | ||
template<class K, class T> |