unixodbc: Fix dependency to library/readline-8 library/readline-8/32
[oi-userland.git] / make-rules / makemaker-defaults.mk
blob9d5e1463bb454f22291e6a27212a5d5cf31e0b5a
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.
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
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
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)
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
43 # By default we build Perl modules for all supported Perl versions
44 SINGLE_PERL_VERSION ?= no