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
     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/n/cyrus-sasl
     5         kx 
     5         kx REQUIRES           = env/cyrus-sasl/2.1.27
     5         kx REQUIRES          += app/db/18.1.40-x86_32
     5         kx REQUIRES          += app/sqlite/3.39.4.0-x86_32
     5         kx REQUIRES          += net/openssl/1.1.1r-x86_32
     5         kx REQUIRES          += secure/pam/1.5.1-x86_32
     5         kx 
     5         kx # ======= __END_OF_REQUIRES__ =======
     5         kx 
     5         kx 
     5         kx version            = 2.1.27
     5         kx tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/n/cyrus-sasl/cyrus-sasl-$(version).tar.xz
     5         kx SRC_ARCHIVE        = $(tar_xz_archive)
     5         kx SRC_DIR            = $(TARGET_BUILD_DIR)/cyrus-sasl-$(version)
     5         kx src_dir_name       = cyrus-sasl-$(version)
     5         kx src_done           = $(TARGET_BUILD_DIR)/.source_done
     5         kx 
     5         kx PATCHES = PATCHES
     5         kx 
     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 
     5         kx SASL_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/cyrus-sasl-x32-package
     5         kx 
     5         kx BUILD_TARGETS    = $(build_target)
     5         kx BUILD_TARGETS   += $(install_target)
     5         kx 
     5         kx 
     5         kx include ../../../build-system/core.mk
     5         kx 
     5         kx 
     5         kx env_sysroot  = DESTDIR=$(SASL_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 extra_configure_switches += --with-plugindir=/usr/lib$(MULTILIB_X86_32_SUFFIX)/sasl2
     5         kx extra_configure_switches += --with-configdir=/etc/sasl2
     5         kx extra_configure_switches += --enable-login
     5         kx extra_configure_switches += --disable-anon
     5         kx extra_configure_switches += --without-ldap
     5         kx extra_configure_switches += --enable-gssapi=no
     5         kx extra_configure_switches += --with-saslauthd=no
     5         kx 
     5         kx extra_configure_switches += --sbindir=/usr/sbin/32
     5         kx 
     5         kx extra_configure_switches += --enable-sql
     5         kx extra_configure_switches += --without-pgsql
     5         kx extra_configure_switches += --without-mysql
     5         kx extra_configure_switches += --with-sqlite3=$(TARGET_DEST_DIR)/usr
     5         kx extra_configure_switches += --with-dblib=berkeley
     5         kx extra_configure_switches += --with-devrandom=/dev/urandom
     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 sasl_environment = sasldir=/usr/lib$(MULTILIB_X86_32_SUFFIX)/sasl2
     5         kx 
     5         kx 
     5         kx extra_build_environment  = CC_FOR_BUILD='gcc -m32'
     5         kx extra_build_environment += CPP_FOR_BUILD='gcc -m32 -E'
     5         kx extra_build_environment += LDFLAGS_FOR_BUILD='-m32 -L/lib$(BUILD_MULTILIB_X86_32_SUFFIX) -L/usr/lib$(BUILD_MULTILIB_X86_32_SUFFIX)'
     5         kx extra_build_environment += CFLAGS_FOR_BUILD=-I/usr/include
     5         kx extra_build_environment += CPPFLAGS_FOR_BUILD=-I/usr/include
     5         kx 
     5         kx 
     5         kx LDFLAGS += -Wl,-rpath=/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
     5         kx 
     5         kx 
     5         kx TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
     5         kx TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../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 	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/config
     5         kx 	@( cd $(SRC_DIR) ; autoreconf -fiv --warnings=none )
     5         kx 	@touch $@
     5         kx 
     5         kx $(build_target): $(src_done)
     5         kx 	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(sasl_environment) ../$(src_dir_name)/configure \
     5         kx 	  --prefix=/usr               \
     5         kx 	  --build=$(BUILD)            \
     5         kx 	  --host=$(TARGET32)          \
     5         kx 	  $(extra_configure_switches)
     5         kx 	# ======= Remove target CPPFLAGS from CPPFLAGS_FOR_BUILD: =======
     5         kx 	sed -i "/^CPPFLAGS[ \t]*=/s,$(TARGET_DEST_DIR),," $(SRC_DIR)/include/Makefile
     5         kx 	# ======= Fix configure.ac error related LIB_SQLITE3: =======
     5         kx 	sed -i "/^LIB_SQLITE3[ \t]*=/s,/usr/lib,/usr/lib$(MULTILIB_X86_32_SUFFIX),g" $(SRC_DIR)/Makefile
     5         kx 	sed -i "/^LIB_SQLITE3[ \t]*=/s,/usr/lib,/usr/lib$(MULTILIB_X86_32_SUFFIX),g" $(SRC_DIR)/plugins/Makefile
     5         kx 	# ======= Build =======
     5         kx 	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) $(sasl_environment)
     5         kx 	@touch $@
     5         kx 
     5         kx $(install_target): $(build_target)
     5         kx 	@mkdir -p $(SASL_32_PKG)
     5         kx 	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(sasl_environment) $(env_sysroot)
     5         kx 	@rm -rf $(SASL_32_PKG)/usr/include
     5         kx 	@rm -rf $(SASL_32_PKG)/usr/share
     5         kx 	@rm -rf $(SASL_32_PKG)/usr/sbin
     5         kx 	# ======= remove toolchain path from target libtool *.la files =======
     5         kx 	@( cd $(SASL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
     5         kx 	   sed -i "s,$(TARGET_DEST_DIR),,g" libsasl2.la ; \
     5         kx 	 )
     5         kx 	@( cd $(SASL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/sasl2 ; \
     5         kx 	   sed -i "s,$(TARGET_DEST_DIR),,g" libcrammd5.la libdigestmd5.la liblogin.la libotp.la  \
     5         kx 	                                    libplain.la libsasldb.la libscram.la libsql.la     ; \
     5         kx 	 )
     5         kx 	# ======= Install the same to $(TARGET_DEST_DIR) =======
     5         kx 	$(call install-into-devenv, $(SASL_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"   libsasl2.la ; \
     5         kx 	  sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libsasl2.la ; \
     5         kx 	 )
     5         kx 	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/sasl2 ; \
     5         kx 	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libcrammd5.la libdigestmd5.la liblogin.la libotp.la  \
     5         kx 	                                            libplain.la libsasldb.la libscram.la libsql.la     ; \
     5         kx 	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libcrammd5.la libdigestmd5.la liblogin.la libotp.la  \
     5         kx 	                                              libplain.la libsasldb.la libscram.la libsql.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" libsasl2.pc ; \
     5         kx 	 )
     5         kx 	@( cd $(SASL_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 $(SASL_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 $@