Marcel Telka
2024-04-05 f228266143fa00a0d993ef25540014f5fea6ca10
commit | author | age
fdb421 1 #
MT 2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source.  A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright 2022 Marcel Telka
14 #
15
16 # Component defaults
17 COMPONENT_VERSION ?=        $(shell $(WS_TOOLS)/perl-version-convert $(COMPONENT_NAME) $(HUMAN_VERSION))
18 COMPONENT_CLASSIFICATION ?=    Development/Perl
19 COMPONENT_SRC ?=        $(COMPONENT_NAME)-$(HUMAN_VERSION)
20 COMPONENT_ARCHIVE ?=        $(COMPONENT_SRC).tar.gz
8cf380 21 COMPONENT_FMRI ?=        library/perl-5/$(shell echo $(COMPONENT_NAME) | tr [A-Z] [a-z])
fdb421 22 ifneq ($(strip $(COMPONENT_PERL_MODULE)),)
MT 23 COMPONENT_PERL_DISTRIBUTION ?=    $(subst ::,-,$(COMPONENT_PERL_MODULE))
24 COMPONENT_PROJECT_URL ?=    https://metacpan.org/pod/$(COMPONENT_PERL_MODULE)
25 endif
26 ifneq ($(strip $(COMPONENT_PERL_DISTRIBUTION)),)
27 COMPONENT_NAME ?=        $(COMPONENT_PERL_DISTRIBUTION)
28 endif
29 ifneq ($(strip $(COMPONENT_CPAN_AUTHOR)),)
30 COMPONENT_CPAN_AUTHOR1 =    $(shell echo $(COMPONENT_CPAN_AUTHOR) | cut -c 1)
31 COMPONENT_CPAN_AUTHOR2 =    $(shell echo $(COMPONENT_CPAN_AUTHOR) | cut -c 1-2)
32 COMPONENT_CPAN_AUTHOR_URL =    $(COMPONENT_CPAN_AUTHOR1)/$(COMPONENT_CPAN_AUTHOR2)/$(COMPONENT_CPAN_AUTHOR)
33 COMPONENT_ARCHIVE_URL ?=    https://cpan.metacpan.org/authors/id/$(COMPONENT_CPAN_AUTHOR_URL)/$(COMPONENT_ARCHIVE)
34 endif
35 # Enable ASLR by default.  Component could disable ASLR by setting
36 # COMPONENT_ASLR to 'no'.
37 ifeq ($(strip $(COMPONENT_ASLR)),no)
38 ASLR_MODE = $(ASLR_DISABLE)
39 else
40 ASLR_MODE = $(ASLR_ENABLE)
41 endif
e537d3 42
MT 43 # By default we build Perl modules for all supported Perl versions
44 SINGLE_PERL_VERSION ?= no