Radix cross Linux Build System

Cross-platform build system is designed to build distributions of different operating systems for a set of target devices

74 Commits   2 Branches   2 Tags

COMPONENT_TARGETS = $(HARDWARE_BUILD)

include ../../../../../../build-system/constants.mk

SOURCE_REQUIRES = build-system/3pp/sources/packages/python-modules/m2crypto

REQUIRES  = build-system/3pp/app/python3-modules/setuptools/65.5.0

# ======= __END_OF_REQUIRES__ =======

version         = 0.38.0
tar_gz_archive  = $(BUILDSYSTEM)/3pp/sources/packages/python-modules/m2crypto/m2crypto-$(version).tar.gz
SRC_ARCHIVE     = $(tar_gz_archive)
SRC_DIR         = $(TARGET_BUILD_DIR)/m2crypto-$(version)
src_done        = $(TARGET_BUILD_DIR)/.source-done

PATCHES = PATCHES

build_target    = $(TARGET_BUILD_DIR)/.built
install_target  = $(TARGET_BUILD_DIR)/.installed

BUILD_TARGETS   = $(build_target)
BUILD_TARGETS  += $(install_target)


include ../../../../../../build-system/core.mk


$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
	$(UNPACK_SRC_ARCHIVE)
	$(APPLY_PATCHES)
	@touch $@

$(build_target): $(src_done)
	@( cd $(SRC_DIR) ; \
	   $(BUILDSYSTEM)/usr/bin/python3 setup.py egg_info ; \
	   $(BUILDSYSTEM)/usr/bin/python3 setup.py build ; \
	 )
	@touch $@

$(install_target): $(build_target)
	@echo -e "\n======= Installing M2Crypto-$(version) =======\n"
	@( cd $(SRC_DIR) ; \
	   $(BUILDSYSTEM)/usr/bin/python3 setup.py install --root=/ ; \
	 )
	@touch $@