Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: Makefile
===================================================================
--- Makefile	(revision 384)
+++ Makefile	(revision 385)
@@ -289,6 +289,10 @@
 endif
 
 
+q-collection-generator = $(shell which qcollectiongenerator)
+q-help-generator       = $(shell which qhelpgenerator)
+
+
 TARGET_BIN_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
 TARGET_LIB_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib/../lib$(MULTILIB_PPC32_SUFFIX)
 
@@ -661,6 +665,53 @@
 	@chmod 0755 $(QT5_32_PKG)/etc/profile.d/32/*
 	# ======= Install the same to $(TARGET_DEST_DIR) =======
 	$(call install-into-devenv, $(QT5_32_PKG))
+	# ======= Install qt.conf file =======
+	@mkdir -p $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin
+	@echo ""                                                                 > $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "[EffectivePaths]"                                                >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Prefix=/usr"                                                     >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Headers=/usr/include/qt5"                                        >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Binaries=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin"               >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "HostBinaries=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin"           >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Libraries=/usr/lib$(MULTILIB_PPC32_SUFFIX)"                      >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "HostLibraries=/usr/lib$(MULTILIB_PPC32_SUFFIX)"                  >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "LibraryExecutables=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/libexec" >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "ArchData=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5"                   >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Data=/usr/share/qt5"                                             >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "HostData=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5"                   >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Plugins=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/plugins"            >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Imports=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/imports"            >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Qml2Imports=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/qml"            >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Settings=/etc/xdg"                                               >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Examples=/usr/share/doc/$(doc_dir_name)/examples"                >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Demos=/usr/share/doc/$(doc_dir_name)/examples"                   >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Tests=/usr/tests"                                                >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Translations=/usr/share/qt5/translations"                        >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Documentation=/usr/share/doc/$(doc_dir_name)"                    >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo ""                                                                >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "[Paths]"                                                         >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Prefix=/usr"                                                     >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Headers=/usr/include/qt5"                                        >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Binaries=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin"               >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "HostBinaries=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin"           >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Libraries=/usr/lib$(MULTILIB_PPC32_SUFFIX)"                      >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "HostLibraries=/usr/lib$(MULTILIB_PPC32_SUFFIX)"                  >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "LibraryExecutables=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/libexec" >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "ArchData=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5"                   >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Data=/usr/share/qt5"                                             >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "HostData=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5"                   >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Plugins=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/plugins"            >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Imports=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/imports"            >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Qml2Imports=/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/qml"            >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Settings=/etc/xdg"                                               >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Examples=/usr/share/doc/$(doc_dir_name)/examples"                >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Demos=/usr/share/doc/$(doc_dir_name)/examples"                   >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Tests=/usr/tests"                                                >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Translations=/usr/share/qt5/translations"                        >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "Documentation=/usr/share/doc/$(doc_dir_name)"                    >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "HostSpec=$(TARGET_SPEC_DIR)"                                     >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "TargetSpec=devices/$(DEVICE_SPEC_DIR)"                           >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
+	@echo "#TargetSpec=$(TARGET_SPEC_DIR)"                                  >> $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/qt.conf
 	# ======= Remove build-machine tools from target package =======
 	@rm -f $(QT5_32_PKG)/usr/bin/32/$(TARGET32)-*
 	@rm -f $(QT5_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/$(TARGET32)-*
@@ -674,6 +725,19 @@
 	   find . -type f -name 'Qt5*.pc' -exec sed -i 's,$(TARGET_DEST_DIR),,g'         {} \; ; \
 	   find . -type f -name 'Qt5*.pc' -exec sed -i 's,/usr,$(TARGET_DEST_DIR)/usr,g' {} \; ; \
 	 )
+	# ======= Tune cmake files for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/cmake ; \
+	   for file in `find . -type f -name '*.cmake' -print` ; do \
+	     if grep -q 'lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/' $${file} ; then \
+	       sed -i 's,lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/,lib$(MULTILIB_PPC32_SUFFIX)/qt5/bin/$(TARGET32)-,g' $${file} ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Use build-machine qcollectiongenerator, qhelpgenerator =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/cmake/Qt5Help ; \
+	   sed -i '/-qcollectiongenerator"/s,".*","$(q-collection-generator)",' Qt5HelpConfigExtras.cmake ; \
+	   sed -i '/-qhelpgenerator"/s,".*","$(q-help-generator)",'             Qt5HelpConfigExtras.cmake ; \
+	 )
 	# ======= Strip binaries =======
 	@( cd $(QT5_32_PKG) ; \
 	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
Index: PATCHES
===================================================================
--- PATCHES	(revision 384)
+++ PATCHES	(revision 385)
@@ -2,6 +2,7 @@
 ../../../../sources/packages/x/qt5/patches/qt5-5.15.8-sql-config.patch     -p0
 ../../../../sources/packages/x/qt5/patches/qt5-5.15.8-mysql.patch          -p0
 
+../../../../sources/packages/x/qt5/patches/qt5-5.15.8-icu-permissive.patch -p0
 ../../../../sources/packages/x/qt5/patches/qt5-5.15.8-mips32r5.patch       -p0
 
 ../../../../sources/packages/x/qt5/patches/qt5-5.15.8-arm-no-thumb.patch   -p0
Index: .
===================================================================
--- .	(revision 384)
+++ .	(revision 385)

Property changes on: .
___________________________________________________________________
Modified: svn:ignore
## -30,6 +30,7 ##
 .rk328x-glibc
 .rk33xx-glibc
 .rk339x-glibc
+.rk358x-glibc
 .s8xx-glibc
 .s9xx-glibc
 .x86_64-glibc