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
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.
13 # Copyright 2022 Marcel Telka
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
21 COMPONENT_FMRI ?
= library
/perl-5
/$(shell echo
$(COMPONENT_NAME
) | tr
[A-Z
] [a-z
])
22 ifneq ($(strip $(COMPONENT_PERL_MODULE
)),)
23 COMPONENT_PERL_DISTRIBUTION ?
= $(subst ::,-,$(COMPONENT_PERL_MODULE
))
24 COMPONENT_PROJECT_URL ?
= https
://metacpan.org
/pod
/$(COMPONENT_PERL_MODULE
)
26 ifneq ($(strip $(COMPONENT_PERL_DISTRIBUTION
)),)
27 COMPONENT_NAME ?
= $(COMPONENT_PERL_DISTRIBUTION
)
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
)
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
)
40 ASLR_MODE
= $(ASLR_ENABLE
)
43 # By default we build Perl modules for all supported Perl versions
44 SINGLE_PERL_VERSION ?
= no