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/perl-SGMLS

REQUIRES = build-system/3pp/app/perl/5.36.0

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

version         = 1.1
tar_xz_archive  = $(BUILDSYSTEM)/3pp/sources/packages/perl-SGMLS/perl-SGMLS-$(version).tar.xz
SRC_ARCHIVE     = $(tar_xz_archive)
SRC_DIR         = $(TARGET_BUILD_DIR)/perl-SGMLS-$(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


build_environment  = PERL_MM_USE_DEFAULT=1
build_environment += PERL_AUTOINSTALL=--skipdeps
build_environment += PERL_MM_OPT="INSTALLDIRS=vendor"
build_environment += PERL_MB_OPT="--installdirs vendor"
build_environment += MODULEBUILDRC=/dev/null


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

$(build_target): $(src_done)
	@cd $(SRC_DIR) && $(build_environment) $(BUILDSYSTEM)/usr/bin/perl Makefile.PL
	@cd $(SRC_DIR) && $(MAKE)
	@touch $@

$(install_target): $(build_target)
	@echo -e "\n======= Install Required modules =======\n"
	@( cd $(BUILDSYSTEM)/usr/bin ; \
	   ./cpan-install Locale::gettext             2>/dev/null ; \
	   ./cpan-install Text::WrapI18N              2>/dev/null ; \
	   ./cpan-install Term::ReadKey               2>/dev/null ; \
	   ./cpan-install SGML::Parser::OpenSP::Tools 2>/dev/null ; \
	   ./cpan-install Docbook::Table              2>/dev/null ; \
	   ./cpan-install Pod::DocBook                2>/dev/null ; \
	   ./cpan-install Unicode::GCString           2>/dev/null ; \
	   ./cpan-install YAML::Tiny                  2>/dev/null ; \
	 )
	@echo -e "\n======= Installing Perl SGMLS binaries =======\n"
	@cd $(SRC_DIR) && $(MAKE) -j1 install
	@touch $@