fritzkink
2023-12-27 706019354bab81fc3f01995caf1ae1a2dfa346cf
commit | author | age
053684 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
f31ed2 16 #
053684 17 # Component defaults
f31ed2 18 #
5aa424 19
MT 20 # Support for Post-releases (see PEP 440).
21 COMPONENT_VERSION ?=        $(shell echo $(HUMAN_VERSION) | $(GSED) -e 's/\.post.*//')
053684 22 COMPONENT_CLASSIFICATION ?=    Development/Python
f31ed2 23 COMPONENT_SRC ?=        $(COMPONENT_NAME)-$(HUMAN_VERSION)
053684 24 COMPONENT_ARCHIVE ?=        $(COMPONENT_SRC).tar.gz
859923 25 # To make the package name comparable we normalize it here by following the
MT 26 # PyPA Core metadata specifications and PEP 503.
ef3161 27 COMPONENT_FMRI ?=        library/python/$(shell echo $(COMPONENT_NAME) | tr [A-Z] [a-z] | $(GSED) -e 's/[._-]\{1,\}/-/g')
053684 28 COMPONENT_PROJECT_URL ?=    https://pypi.org/project/$(COMPONENT_NAME)/
MT 29 COMPONENT_ARCHIVE_URL ?=    $(call pypi_url)
75dfb3 30 COMPONENT_PYPI ?=        $(COMPONENT_NAME)
053684 31 # Enable ASLR by default.  Component could disable ASLR by setting
MT 32 # COMPONENT_ASLR to 'no'.
33 ifeq ($(strip $(COMPONENT_ASLR)),no)
34 ASLR_MODE = $(ASLR_DISABLE)
35 else
36 ASLR_MODE = $(ASLR_ENABLE)
37 endif
e537d3 38
MT 39 # By default we build Python projects for all supported Python versions
40 SINGLE_PYTHON_VERSION ?= no