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

383 Commits   1 Branch   1 Tag
     5         kx 
     5         kx COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC64)
     5         kx 
     5         kx NEED_ABS_PATH      = true
     5         kx COMPONENT_IS_3PP   = true
     5         kx 
     5         kx CREATE_X86_32_PACKAGE = true
     5         kx 
     5         kx 
     5         kx include ../../../build-system/constants.mk
     5         kx 
     5         kx 
     5         kx SOURCE_REQUIRES    = sources/packages/b/sqlite/2022
     5         kx 
     5         kx REQUIRES           = app/sqlite/3.39.4.0
     5         kx REQUIRES          += libs/readline/8.2-x86_32
     5         kx 
     5         kx # ======= __END_OF_REQUIRES__ =======
     5         kx 
     5         kx 
     5         kx version            = 3.39.4.0
     5         kx tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/b/sqlite/2022/sqlite-$(version).tar.gz
     5         kx SRC_ARCHIVE        = $(tar_gz_archive)
     5         kx SRC_DIR            = $(TARGET_BUILD_DIR)/sqlite-$(version)
     5         kx src_dir_name       = sqlite-$(version)
     5         kx src_done           = $(TARGET_BUILD_DIR)/.source_done
     5         kx 
     5         kx PATCHES = PATCHES
     5         kx 
     5         kx build_dir          = $(TARGET_BUILD_DIR)/build
     5         kx build_target       = $(TARGET_BUILD_DIR)/.build_done
     5         kx install_target     = $(TARGET_BUILD_DIR)/.install_done
     5         kx 
     5         kx 
     5         kx ####### Targets
     5         kx 
     5         kx PKG_GROUP = app
     5         kx 
     5         kx #
     5         kx # *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
     5         kx #
     5         kx SQLITE_32_PKG_NAME                = sqlite-x32
     5         kx SQLITE_32_PKG_VERSION             = 3.39.4.0
     5         kx SQLITE_32_PKG_ARCH                = $(PKGARCH)
     5         kx SQLITE_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
     5         kx SQLITE_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
     5         kx SQLITE_32_PKG_GROUP               = $(PKG_GROUP)
     5         kx ###                                |---handy-ruler-------------------------------|
     5         kx SQLITE_32_PKG_SHORT_DESCRIPTION   = self contained database engine
     5         kx SQLITE_32_PKG_URL                 = $(BUG_URL)
     5         kx SQLITE_32_PKG_LICENSE             = public
     5         kx SQLITE_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(SQLITE_32_PKG_NAME)-pkg-description
     5         kx SQLITE_32_PKG_DESCRIPTION_FILE_IN = $(SQLITE_32_PKG_NAME)-pkg-description.in
     5         kx SQLITE_32_PKG_INSTALL_SCRIPT      = $(SQLITE_32_PKG_NAME)-pkg-install.sh
     5         kx 
     5         kx SQLITE_32_PKG    = $(CURDIR)/$(TARGET_BUILD_DIR)/$(SQLITE_32_PKG_NAME)-package
     5         kx 
     5         kx pkg_basename     = $(SQLITE_32_PKG_NAME)-$(SQLITE_32_PKG_VERSION)-$(SQLITE_32_PKG_ARCH)-$(SQLITE_32_PKG_DISTRO_NAME)-$(SQLITE_32_PKG_DISTRO_VERSION)
     5         kx 
     5         kx pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
     5         kx pkg_certificate  = $(call cert-name,$(pkg_archive))
     5         kx pkg_signature    = $(call sign-name,$(pkg_archive))
     5         kx pkg_description  = $(call desc-name,$(pkg_archive))
     5         kx products         = $(call pkg-files,$(pkg_archive))
     5         kx 
     5         kx BUILD_TARGETS    = $(build_target)
     5         kx BUILD_TARGETS   += $(install_target)
     5         kx 
     5         kx PRODUCT_TARGETS  = $(products)
     5         kx 
     5         kx ROOTFS_TARGETS   = $(pkg_archive)
     5         kx 
     5         kx 
     5         kx include ../../../build-system/core.mk
     5         kx 
     5         kx 
     5         kx env_sysroot = DESTDIR=$(SQLITE_32_PKG)
     5         kx 
     5         kx 
     5         kx extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
     5         kx extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
     5         kx extra_configure_switches += --mandir=/usr/share/man
     5         kx extra_configure_switches += --disable-dependency-tracking
     5         kx extra_configure_switches += --sysconfdir=/etc
     5         kx extra_configure_switches += --localstatedir=/var
     5         kx 
     5         kx extra_configure_switches += --bindir=/usr/bin/32
     5         kx 
     5         kx extra_configure_switches += --enable-readline=yes
     5         kx extra_configure_switches += --enable-threadsafe=yes
     5         kx extra_configure_switches += --enable-dynamic-extensions=yes
     5         kx 
     5         kx ifeq ($(__ENABLE_STATIC__),yes)
     5         kx extra_configure_switches += --enable-static=yes
     5         kx else
     5         kx extra_configure_switches += --enable-static=no
     5         kx endif
     5         kx extra_configure_switches += --enable-shared=yes
     5         kx 
     5         kx 
     5         kx configure_environment  = LDFLAGS=-Wl,-rpath,/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
     5         kx 
     5         kx 
     5         kx ####### Dependencies
     5         kx 
     5         kx $(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
     5         kx 	$(UNPACK_SRC_ARCHIVE)
     5         kx 	$(APPLY_PATCHES)
     5         kx 	@touch $@
     5         kx 
     5         kx $(build_target): $(src_done)
     5         kx 	@mkdir -p $(build_dir)
     5         kx 	@cd $(build_dir) && \
     5         kx 	  $(BUILD_ENVIRONMENT) $(configure_environment) ../$(src_dir_name)/configure \
     5         kx 	  --prefix=/usr               \
     5         kx 	  --build=$(BUILD)            \
     5         kx 	  --host=$(TARGET32)          \
     5         kx 	  $(extra_configure_switches)
     5         kx 	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
     5         kx 	@touch $@
     5         kx 
     5         kx $(install_target): $(build_target)
     5         kx 	@mkdir -p $(SQLITE_32_PKG)
     5         kx 	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
     5         kx 	@rm -rf $(SQLITE_32_PKG)/usr/include
     5         kx 	@rm -rf $(SQLITE_32_PKG)/usr/share
     5         kx 	# ======= remove toolchain path from target libtool *.la files =======
     5         kx 	@( cd $(SQLITE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
     5         kx 	   sed -i "s,$(TARGET_DEST_DIR),,g" libsqlite?.la  \
     5         kx 	 )
     5         kx 	# ======= Install the same to $(TARGET_DEST_DIR) =======
     5         kx 	$(call install-into-devenv, $(SQLITE_32_PKG))
     5         kx 	# ======= tune libtool *.la search path to the target destination for development =======
     5         kx 	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
     5         kx 	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libsqlite?.la ; \
     5         kx 	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libsqlite?.la \
     5         kx 	 )
     5         kx 	# ======= tune pkg-config *.pc search path to the target destination for development =======
     5         kx 	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
     5         kx 	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" sqlite?.pc \
     5         kx 	 )
     5         kx 	# ======= Strip Binaries =======
     5         kx 	@( cd $(SQLITE_32_PKG) ; \
     5         kx 	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
     5         kx 	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
     5         kx 	 )
     5         kx ifeq ($(__ENABLE_STATIC__),yes)
     5         kx 	@( cd $(SQLITE_32_PKG) ; \
     5         kx 	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
     5         kx 	 )
     5         kx endif
     5         kx 	@touch $@
     5         kx 
     5         kx $(SQLITE_32_PKG_DESCRIPTION_FILE): $(SQLITE_32_PKG_DESCRIPTION_FILE_IN)
     5         kx 	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
     5         kx 
     5         kx $(pkg_certificate) : $(pkg_archive) ;
     5         kx $(pkg_signature)   : $(pkg_archive) ;
     5         kx $(pkg_description) : $(pkg_archive) ;
     5         kx 
     5         kx $(pkg_archive): $(install_target) $(SQLITE_32_PKG_DESCRIPTION_FILE) $(SQLITE_32_PKG_INSTALL_SCRIPT)
     5         kx 	@cp $(SQLITE_32_PKG_DESCRIPTION_FILE) $(SQLITE_32_PKG)/.DESCRIPTION
     5         kx 	@cp $(SQLITE_32_PKG_INSTALL_SCRIPT) $(SQLITE_32_PKG)/.INSTALL
     5         kx 	@$(BUILD_PKG_REQUIRES) $(SQLITE_32_PKG)/.REQUIRES
     5         kx 	@echo "pkgname=$(SQLITE_32_PKG_NAME)"                            >  $(SQLITE_32_PKG)/.PKGINFO ; \
     5         kx 	 echo "pkgver=$(SQLITE_32_PKG_VERSION)"                          >> $(SQLITE_32_PKG)/.PKGINFO ; \
     5         kx 	 echo "arch=$(SQLITE_32_PKG_ARCH)"                               >> $(SQLITE_32_PKG)/.PKGINFO ; \
     5         kx 	 echo "distroname=$(SQLITE_32_PKG_DISTRO_NAME)"                  >> $(SQLITE_32_PKG)/.PKGINFO ; \
     5         kx 	 echo "distrover=$(SQLITE_32_PKG_DISTRO_VERSION)"                >> $(SQLITE_32_PKG)/.PKGINFO ; \
     5         kx 	 echo "group=$(SQLITE_32_PKG_GROUP)"                             >> $(SQLITE_32_PKG)/.PKGINFO ; \
     5         kx 	 echo "short_description=\"$(SQLITE_32_PKG_SHORT_DESCRIPTION)\"" >> $(SQLITE_32_PKG)/.PKGINFO ; \
     5         kx 	 echo "url=$(SQLITE_32_PKG_URL)"                                 >> $(SQLITE_32_PKG)/.PKGINFO ; \
     5         kx 	 echo "license=$(SQLITE_32_PKG_LICENSE)"                         >> $(SQLITE_32_PKG)/.PKGINFO
     5         kx 	@$(PSEUDO) sh -c "cd $(SQLITE_32_PKG) && \
     5         kx 	                  chown -R root:root . && \
     5         kx 	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."