Taylor Hornby
8 years ago
4 changed files with 1 additions and 266 deletions
@ -1,58 +0,0 @@ |
|||
package=native_cctools |
|||
$(package)_version=ee31ae567931c426136c94aad457c7b51d844beb |
|||
$(package)_download_path=https://github.com/theuni/cctools-port/archive |
|||
$(package)_file_name=$($(package)_version).tar.gz |
|||
$(package)_sha256_hash=ef107e6ab1b3994cb22e14f4f5c59ea0c0b5a988e6b21d42ed9616b018bbcbf9 |
|||
$(package)_build_subdir=cctools |
|||
$(package)_clang_version=3.3 |
|||
$(package)_clang_download_path=http://llvm.org/releases/$($(package)_clang_version) |
|||
$(package)_clang_download_file=clang+llvm-$($(package)_clang_version)-amd64-Ubuntu-12.04.2.tar.gz |
|||
$(package)_clang_file_name=clang-llvm-$($(package)_clang_version)-amd64-Ubuntu-12.04.2.tar.gz |
|||
$(package)_clang_sha256_hash=60d8f69f032d62ef61bf527857ebb933741ec3352d4d328c5516aa520662dab7 |
|||
$(package)_extra_sources=$($(package)_clang_file_name) |
|||
|
|||
define $(package)_fetch_cmds |
|||
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_download_file),$($(package)_file_name),$($(package)_sha256_hash)) && \ |
|||
$(call fetch_file,$(package),$($(package)_clang_download_path),$($(package)_clang_download_file),$($(package)_clang_file_name),$($(package)_clang_sha256_hash)) |
|||
endef |
|||
|
|||
define $(package)_extract_cmds |
|||
mkdir -p toolchain/bin toolchain/lib/clang/3.5/include && \
|
|||
tar --strip-components=1 -C toolchain -xf $($(package)_source_dir)/$($(package)_clang_file_name) && \
|
|||
echo "#!/bin/sh" > toolchain/bin/$(host)-dsymutil && \
|
|||
echo "exit 0" >> toolchain/bin/$(host)-dsymutil && \
|
|||
chmod +x toolchain/bin/$(host)-dsymutil && \
|
|||
tar --strip-components=1 -xf $($(package)_source) |
|||
endef |
|||
|
|||
define $(package)_set_vars |
|||
$(package)_config_opts=--target=$(host) --disable-libuuid |
|||
$(package)_ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib |
|||
$(package)_cc=$($(package)_extract_dir)/toolchain/bin/clang |
|||
$(package)_cxx=$($(package)_extract_dir)/toolchain/bin/clang++ |
|||
endef |
|||
|
|||
define $(package)_preprocess_cmds |
|||
cd $($(package)_build_subdir); ./autogen.sh |
|||
endef |
|||
|
|||
define $(package)_config_cmds |
|||
$($(package)_autoconf) |
|||
endef |
|||
|
|||
define $(package)_build_cmds |
|||
$(MAKE) |
|||
endef |
|||
|
|||
define $(package)_stage_cmds |
|||
$(MAKE) DESTDIR=$($(package)_staging_dir) install && \
|
|||
cd $($(package)_extract_dir)/toolchain && \
|
|||
mkdir -p $($(package)_staging_prefix_dir)/lib/clang/$($(package)_clang_version)/include && \
|
|||
mkdir -p $($(package)_staging_prefix_dir)/bin $($(package)_staging_prefix_dir)/include && \
|
|||
cp -P bin/clang bin/clang++ $($(package)_staging_prefix_dir)/bin/ &&\
|
|||
cp lib/libLTO.so $($(package)_staging_prefix_dir)/lib/ && \
|
|||
cp -rf lib/clang/$($(package)_clang_version)/include/* $($(package)_staging_prefix_dir)/lib/clang/$($(package)_clang_version)/include/ && \
|
|||
cp bin/$(host)-dsymutil $($(package)_staging_prefix_dir)/bin && \
|
|||
if `test -d include/c++/`; then cp -rf include/c++/ $($(package)_staging_prefix_dir)/include/; fi && \
|
|||
if `test -d lib/c++/`; then cp -rf lib/c++/ $($(package)_staging_prefix_dir)/lib/; fi |
|||
endef |
@ -1,21 +0,0 @@ |
|||
package=native_comparisontool |
|||
$(package)_version=0f7b5d8 |
|||
$(package)_download_path=https://github.com/TheBlueMatt/test-scripts/raw/38b490a2599d422b12d5ce8f165792f63fd8f54f |
|||
$(package)_file_name=pull-tests-$($(package)_version).jar |
|||
$(package)_sha256_hash=ecd43b988a8b673b483e4f69f931596360a5e90fc415c75c4c259faa690df198 |
|||
$(package)_install_dirname=BitcoindComparisonTool_jar |
|||
$(package)_install_filename=BitcoindComparisonTool.jar |
|||
|
|||
define $(package)_extract_cmds |
|||
endef |
|||
|
|||
define $(package)_configure_cmds |
|||
endef |
|||
|
|||
define $(package)_build_cmds |
|||
endef |
|||
|
|||
define $(package)_stage_cmds |
|||
mkdir -p $($(package)_staging_prefix_dir)/share/$($(package)_install_dirname) && \
|
|||
cp $($(package)_source) $($(package)_staging_prefix_dir)/share/$($(package)_install_dirname)/$($(package)_install_filename) |
|||
endef |
@ -1,174 +0,0 @@ |
|||
PACKAGE=qt |
|||
$(package)_version=5.5.0 |
|||
$(package)_download_path=http://download.qt.io/official_releases/qt/5.5/$($(package)_version)/submodules |
|||
$(package)_suffix=opensource-src-$($(package)_version).tar.gz |
|||
$(package)_file_name=qtbase-$($(package)_suffix) |
|||
$(package)_sha256_hash=7e82b1318f88e56a2a9376e069aa608d4fd96b48cb0e1b880ae658b0a1af0561 |
|||
$(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 mingw-uuidof.patch |
|||
|
|||
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix) |
|||
$(package)_qttranslations_sha256_hash=c4bd6db6e426965c6f8824c54e81f68bbd61e2bae1bcadc328c6e81c45902a0d |
|||
|
|||
$(package)_qttools_file_name=qttools-$($(package)_suffix) |
|||
$(package)_qttools_sha256_hash=d9e06bd19ecc86afba5e95d45a906d1bc1ad579aa70001e36143c1aaf695bdd6 |
|||
|
|||
$(package)_extra_sources = $($(package)_qttranslations_file_name) |
|||
$(package)_extra_sources += $($(package)_qttools_file_name) |
|||
|
|||
define $(package)_set_vars |
|||
$(package)_config_opts_release = -release |
|||
$(package)_config_opts_debug = -debug |
|||
$(package)_config_opts += -opensource -confirm-license |
|||
$(package)_config_opts += -no-audio-backend |
|||
$(package)_config_opts += -no-glib |
|||
$(package)_config_opts += -no-icu |
|||
$(package)_config_opts += -no-cups |
|||
$(package)_config_opts += -no-iconv |
|||
$(package)_config_opts += -no-gif |
|||
$(package)_config_opts += -no-freetype |
|||
$(package)_config_opts += -no-nis |
|||
$(package)_config_opts += -no-pch |
|||
$(package)_config_opts += -no-qml-debug |
|||
$(package)_config_opts += -nomake examples |
|||
$(package)_config_opts += -nomake tests |
|||
$(package)_config_opts += -no-feature-style-windowsmobile |
|||
$(package)_config_opts += -no-feature-style-windowsce |
|||
$(package)_config_opts += -no-sql-db2 |
|||
$(package)_config_opts += -no-sql-ibase |
|||
$(package)_config_opts += -no-sql-oci |
|||
$(package)_config_opts += -no-sql-tds |
|||
$(package)_config_opts += -no-sql-mysql |
|||
$(package)_config_opts += -no-sql-odbc |
|||
$(package)_config_opts += -no-sql-psql |
|||
$(package)_config_opts += -no-sql-sqlite |
|||
$(package)_config_opts += -no-sql-sqlite2 |
|||
$(package)_config_opts += -prefix $(host_prefix) |
|||
$(package)_config_opts += -hostprefix $(build_prefix) |
|||
$(package)_config_opts += -bindir $(build_prefix)/bin |
|||
$(package)_config_opts += -no-c++11 |
|||
$(package)_config_opts += -openssl-linked |
|||
$(package)_config_opts += -v |
|||
$(package)_config_opts += -static |
|||
$(package)_config_opts += -silent |
|||
$(package)_config_opts += -pkg-config |
|||
$(package)_config_opts += -qt-libpng |
|||
$(package)_config_opts += -qt-libjpeg |
|||
$(package)_config_opts += -qt-zlib |
|||
$(package)_config_opts += -qt-pcre |
|||
$(package)_config_opts += -no-pulseaudio |
|||
$(package)_config_opts += -no-openvg |
|||
$(package)_config_opts += -no-xrender |
|||
$(package)_config_opts += -no-alsa |
|||
$(package)_config_opts += -no-mtdev |
|||
$(package)_config_opts += -no-gstreamer |
|||
$(package)_config_opts += -no-mitshm |
|||
$(package)_config_opts += -no-kms |
|||
$(package)_config_opts += -no-reduce-relocations |
|||
$(package)_config_opts += -no-egl |
|||
$(package)_config_opts += -no-eglfs |
|||
$(package)_config_opts += -no-linuxfb |
|||
$(package)_config_opts += -no-xinput2 |
|||
$(package)_config_opts += -no-libudev |
|||
$(package)_config_opts += -no-use-gold-linker |
|||
$(package)_config_opts += -reduce-exports |
|||
$(package)_config_opts += -optimized-qmake |
|||
|
|||
ifneq ($(build_os),darwin) |
|||
$(package)_config_opts_darwin = -xplatform macx-clang-linux |
|||
$(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(OSX_SDK) |
|||
$(package)_config_opts_darwin += -device-option MAC_SDK_VERSION=$(OSX_SDK_VERSION) |
|||
$(package)_config_opts_darwin += -device-option CROSS_COMPILE="$(host)-" |
|||
$(package)_config_opts_darwin += -device-option MAC_MIN_VERSION=$(OSX_MIN_VERSION) |
|||
$(package)_config_opts_darwin += -device-option MAC_TARGET=$(host) |
|||
$(package)_config_opts_darwin += -device-option MAC_LD64_VERSION=$(LD64_VERSION) |
|||
endif |
|||
|
|||
$(package)_config_opts_linux = -qt-xkbcommon |
|||
$(package)_config_opts_linux += -qt-xcb |
|||
$(package)_config_opts_linux += -system-freetype |
|||
$(package)_config_opts_linux += -no-sm |
|||
$(package)_config_opts_linux += -fontconfig |
|||
$(package)_config_opts_linux += -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)_fetch_cmds |
|||
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_download_file),$($(package)_file_name),$($(package)_sha256_hash)) && \ |
|||
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qttranslations_file_name),$($(package)_qttranslations_file_name),$($(package)_qttranslations_sha256_hash)) && \ |
|||
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qttools_file_name),$($(package)_qttools_file_name),$($(package)_qttools_sha256_hash)) |
|||
endef |
|||
|
|||
define $(package)_extract_cmds |
|||
mkdir -p $($(package)_extract_dir) && \
|
|||
echo "$($(package)_sha256_hash) $($(package)_source)" > $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|||
echo "$($(package)_qttranslations_sha256_hash) $($(package)_source_dir)/$($(package)_qttranslations_file_name)" > $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|||
echo "$($(package)_qttools_sha256_hash) $($(package)_source_dir)/$($(package)_qttools_file_name)" > $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|||
$(build_SHA256SUM) -c $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|||
mkdir qtbase && \
|
|||
tar --strip-components=1 -xf $($(package)_source) -C qtbase && \
|
|||
mkdir qttranslations && \
|
|||
tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttranslations_file_name) -C qttranslations && \
|
|||
mkdir qttools && \
|
|||
tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools |
|||
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 "s/PIDLIST_ABSOLUTE/ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowscontext.h &&\
|
|||
sed -i.old "s/PIDLIST_ABSOLUTE/ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp &&\
|
|||
sed -i.old "s/PCIDLIST_ABSOLUTE/const ITEMIDLIST */" qtbase/src/plugins/platforms/windows/qwindowscontext.h &&\
|
|||
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
|
|||
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
|
|||
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)/mingw-uuidof.patch && \
|
|||
echo "QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|||
echo "QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|||
echo "QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|||
sed -i.old "s|QMAKE_CFLAGS = |QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
|||
sed -i.old "s|QMAKE_LFLAGS = |QMAKE_LFLAGS = $($(package)_ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
|||
sed -i.old "s|QMAKE_CXXFLAGS = |QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf |
|||
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 && \
|
|||
./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 |
|||
$(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 native/mkspecs/ native/lib/ lib/cmake/ && \
|
|||
rm -f lib/lib*.la lib/*.prl plugins/*/*.prl |
|||
endef |
Loading…
Reference in new issue