349 kx
349 kx COMPONENT_TARGETS = $(HARDWARE_INTEL_PC32)
349 kx COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
349 kx COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
349 kx COMPONENT_TARGETS += $(HARDWARE_CB1X)
349 kx COMPONENT_TARGETS += $(HARDWARE_CB2X)
349 kx COMPONENT_TARGETS += $(HARDWARE_CB3X)
349 kx COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
349 kx COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
349 kx COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
349 kx COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
349 kx COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5)
349 kx COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5B)
349 kx COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5P)
349 kx COMPONENT_TARGETS += $(HARDWARE_ROCK_5B)
349 kx COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
349 kx COMPONENT_TARGETS += $(HARDWARE_REPKA_PI3)
349 kx COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
349 kx COMPONENT_TARGETS += $(HARDWARE_POIN2)
349 kx COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
349 kx COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
349 kx COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
349 kx COMPONENT_TARGETS += $(HARDWARE_M201)
349 kx COMPONENT_TARGETS += $(HARDWARE_MXV)
349 kx COMPONENT_TARGETS += $(HARDWARE_P201)
349 kx COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
349 kx COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
349 kx COMPONENT_TARGETS += $(HARDWARE_P212)
349 kx COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
349 kx COMPONENT_TARGETS += $(HARDWARE_Q201)
349 kx COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
349 kx COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
349 kx COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
349 kx COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
349 kx COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
349 kx COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
349 kx COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
349 kx COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
349 kx COMPONENT_TARGETS += $(HARDWARE_CI20)
349 kx COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
349 kx COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
349 kx COMPONENT_TARGETS += $(HARDWARE_S824L)
349 kx COMPONENT_TARGETS += $(HARDWARE_VESNIN)
349 kx COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
349 kx COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
349 kx COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
349 kx COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
349 kx COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
349 kx COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
349 kx COMPONENT_TARGETS += $(HARDWARE_VISIONFIVE2)
349 kx COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
349 kx
349 kx
349 kx NEED_ABS_PATH = true
349 kx COMPONENT_IS_3PP = true
349 kx
349 kx
349 kx include ../../../../build-system/constants.mk
349 kx
349 kx
349 kx SOURCE_REQUIRES = sources/packages/d/perl-modules/CPAN/XML-SAX-Base
349 kx
349 kx REQUIRES = dev/perl/5.36.0
349 kx
349 kx # ======= __END_OF_REQUIRES__ =======
349 kx
349 kx
349 kx version = 1.09
349 kx tar_gz_archive = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/XML-SAX-Base/XML-SAX-Base-$(version).tar.gz
349 kx SRC_ARCHIVE = $(tar_gz_archive)
349 kx SRC_DIR = $(TARGET_BUILD_DIR)/XML-SAX-Base-$(version)
349 kx src_dir_name = XML-SAX-Base-$(version)
349 kx doc_dir_name = perl-xml-sax-base-$(version)
349 kx src_done = $(TARGET_BUILD_DIR)/.source_done
349 kx
349 kx PATCHES = PATCHES
349 kx
349 kx build_target = $(TARGET_BUILD_DIR)/.build_done
349 kx install_target = $(TARGET_BUILD_DIR)/.install_done
349 kx
349 kx
349 kx ####### Targets
349 kx
349 kx PKG_GROUP = dev
349 kx #
349 kx # *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
349 kx #
349 kx PERL_PKG_NAME = perl-xml-sax-base
349 kx PERL_PKG_VERSION = 1.09
349 kx PERL_PKG_ARCH = $(PKGARCH)
349 kx PERL_PKG_DISTRO_NAME = $(DISTRO_NAME)
349 kx PERL_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
349 kx PERL_PKG_GROUP = $(PKG_GROUP)
349 kx ### |---handy-ruler-------------------------------|
349 kx PERL_PKG_SHORT_DESCRIPTION = XML SAX Base
349 kx PERL_PKG_URL = $(BUG_URL)
349 kx PERL_PKG_LICENSE = GPLv1
349 kx PERL_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
349 kx PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
349 kx PERL_PKG_INSTALL_SCRIPT = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
349 kx PERL_PKG_INSTALL_SCRIPT_IN = $(PERL_PKG_NAME)-pkg-install.sh.in
349 kx
349 kx PERL_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
349 kx
349 kx pkg_basename = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_PKG_DISTRO_VERSION)
349 kx
349 kx pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
349 kx pkg_certificate = $(call cert-name,$(pkg_archive))
349 kx pkg_signature = $(call sign-name,$(pkg_archive))
349 kx pkg_description = $(call desc-name,$(pkg_archive))
349 kx products = $(call pkg-files,$(pkg_archive))
349 kx
349 kx BUILD_TARGETS = $(build_target)
349 kx BUILD_TARGETS += $(install_target)
349 kx
349 kx PRODUCT_TARGETS = $(products)
349 kx
349 kx ROOTFS_TARGETS = $(pkg_archive)
349 kx
349 kx
349 kx include ../../../../build-system/core.mk
349 kx
349 kx
349 kx env_sysroot = DESTDIR=$(PERL_PKG)
349 kx
349 kx
349 kx #
349 kx # Common Perl5 Environment:
349 kx # ========================
349 kx #
349 kx perl_environment = INSTALLDIRS=vendor
349 kx
349 kx perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
349 kx perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
349 kx perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
349 kx perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
349 kx
349 kx perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
349 kx perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
349 kx perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
349 kx perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
349 kx
349 kx perl_environment += PERLPREFIX='/usr'
349 kx perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
349 kx perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
349 kx
349 kx perl_environment += SITEPREFIX='/usr'
349 kx perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
349 kx perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
349 kx
349 kx perl_environment += VENDORPREFIX='/usr'
349 kx perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
349 kx perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
349 kx
349 kx perl_environment += INSTALLBIN='/usr/bin'
349 kx perl_environment += INSTALLSITEBIN='/usr/bin'
349 kx perl_environment += INSTALLVENDORBIN='/usr/bin'
349 kx
349 kx perl_environment += INSTALLSCRIPT='/usr/bin'
349 kx perl_environment += INSTALLSITESCRIPT='/usr/bin'
349 kx perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
349 kx
349 kx perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
349 kx perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
349 kx perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
349 kx
349 kx perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
349 kx perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
349 kx perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
349 kx
349 kx #
349 kx # HW Specific Perl5 Environment:
349 kx # =============================
349 kx #
349 kx suppress-warnings = -Wno-unused-function -Wno-unused-parameter
349 kx
349 kx perl_environment += AR=$(AR)
349 kx perl_environment += RANLIB=$(RANLIB)
349 kx perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
349 kx perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
349 kx perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
349 kx perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
349 kx perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
349 kx perl_environment += CCCDLFLAGS='-fPIC'
349 kx perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
349 kx perl_environment += FULL_AR=$(AR)
349 kx perl_environment += OSNAME=linux
349 kx perl_environment += OSVERS=
349 kx perl_environment += LIBC=
349 kx
349 kx #
349 kx # Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
349 kx # the PERL_HDRS list in the resulting Makefile created by `perl Makefile.PL` command.
349 kx #
349 kx # see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
349 kx #
349 kx perl_src_hdrs = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
349 kx perl_src_hdrs += LANG=
349 kx
349 kx #
349 kx # Module Specific Perl5 Environment:
349 kx # =================================
349 kx #
349 kx
349 kx perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
349 kx
349 kx
349 kx ####### Dependencies
349 kx
349 kx $(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
349 kx $(UNPACK_SRC_ARCHIVE)
349 kx $(APPLY_PATCHES)
349 kx @touch $@
349 kx
349 kx $(build_target): $(src_done)
349 kx @( cd $(SRC_DIR) ; \
349 kx $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment) ; \
349 kx )
349 kx # ======= build the perl-xml-sax-base module =======
349 kx @( cd $(SRC_DIR) ; \
349 kx $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
349 kx )
349 kx @touch $@
349 kx
349 kx $(install_target): $(build_target)
349 kx @mkdir -p $(PERL_PKG)
349 kx @( cd $(SRC_DIR) ; \
349 kx $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
349 kx )
349 kx @find $(PERL_PKG) -name '.packlist' -delete
349 kx @rm -f $(PERL_PKG)/$(perl_local_pod)
349 kx # ======= Install Documentation =======
349 kx @if [ -d $(PERL_PKG)/usr/share/man ]; then \
349 kx ( cd $(PERL_PKG)/usr/share/man ; \
349 kx for manpagedir in `find . -type d -name "man*"` ; do \
349 kx ( cd $$manpagedir ; \
349 kx for eachpage in `find . -type l -maxdepth 1` ; do \
349 kx ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
349 kx rm $$eachpage ; \
349 kx done ; \
349 kx gzip -9 *.? ; \
349 kx ) \
349 kx done \
349 kx ) \
349 kx fi
349 kx @mkdir -p $(PERL_PKG)/usr/doc/$(doc_dir_name)
349 kx @cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/doc/$(doc_dir_name)
349 kx @mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
349 kx @cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
349 kx @( cd $(SRC_DIR) ; \
349 kx cp -a README \
349 kx $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
349 kx )
349 kx @( cd $(SRC_DIR) ; \
349 kx if [ -r Changes ]; then \
349 kx DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
349 kx cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
349 kx touch -r Changes $$DOCSDIR/Changes ; \
349 kx fi \
349 kx )
349 kx # ======= Install the same to $(TARGET_DEST_DIR) =======
349 kx $(call install-into-devenv, $(PERL_PKG))
349 kx @touch $@
349 kx
349 kx $(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
349 kx @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
349 kx
349 kx $(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
349 kx @cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
349 kx
349 kx $(pkg_certificate) : $(pkg_archive) ;
349 kx $(pkg_signature) : $(pkg_archive) ;
349 kx $(pkg_description) : $(pkg_archive) ;
349 kx
349 kx $(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
349 kx @cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
349 kx @cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
349 kx @chmod a+x $(PERL_PKG)/.INSTALL
349 kx @$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
349 kx @echo "pkgname=$(PERL_PKG_NAME)" > $(PERL_PKG)/.PKGINFO ; \
349 kx echo "pkgver=$(PERL_PKG_VERSION)" >> $(PERL_PKG)/.PKGINFO ; \
349 kx echo "arch=$(PERL_PKG_ARCH)" >> $(PERL_PKG)/.PKGINFO ; \
349 kx echo "distroname=$(PERL_PKG_DISTRO_NAME)" >> $(PERL_PKG)/.PKGINFO ; \
349 kx echo "distrover=$(PERL_PKG_DISTRO_VERSION)" >> $(PERL_PKG)/.PKGINFO ; \
349 kx echo "group=$(PERL_PKG_GROUP)" >> $(PERL_PKG)/.PKGINFO ; \
349 kx echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
349 kx echo "url=$(PERL_PKG_URL)" >> $(PERL_PKG)/.PKGINFO ; \
349 kx echo "license=$(PERL_PKG_LICENSE)" >> $(PERL_PKG)/.PKGINFO
349 kx @$(PSEUDO) sh -c "cd $(PERL_PKG) && \
349 kx chown -R root:root . && \
349 kx $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."