View | Details | Raw Unified | Return to bug 256141
Collapse All | Expand All

(-)lang/python38/Makefile (-13 / +6 lines)
Lines 13-18 COMMENT= Interpreted object-oriented programming language Link Here
13
13
14
LICENSE=	PSFL
14
LICENSE=	PSFL
15
15
16
LIB_DEPENDS=	libffi.so:devel/libffi
17
16
USES=		cpe ncurses pathfix pkgconfig readline shebangfix ssl tar:xz
18
USES=		cpe ncurses pathfix pkgconfig readline shebangfix ssl tar:xz
17
PATHFIX_MAKEFILEIN=	Makefile.pre.in
19
PATHFIX_MAKEFILEIN=	Makefile.pre.in
18
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
Lines 29-35 PYTHON_VERSION= python${PYTHON_VER} Link Here
29
PYTHON_SUFFIX=		${PYTHON_VER:S/.//g}
31
PYTHON_SUFFIX=		${PYTHON_VER:S/.//g}
30
32
31
DISABLED_EXTENSIONS=	_sqlite3 _tkinter _gdbm
33
DISABLED_EXTENSIONS=	_sqlite3 _tkinter _gdbm
32
CONFIGURE_ARGS+=	--enable-shared --without-ensurepip
34
CONFIGURE_ARGS+=	--enable-shared --without-ensurepip \
35
			--with-system-ffi
33
CONFIGURE_ENV+=		OPT="" DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS}"	# Null out OPT to respect user CFLAGS and remove optimizations
36
CONFIGURE_ENV+=		OPT="" DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS}"	# Null out OPT to respect user CFLAGS and remove optimizations
34
37
35
INSTALL_TARGET=		altinstall						# Don't want cloberring of unprefixed files
38
INSTALL_TARGET=		altinstall						# Don't want cloberring of unprefixed files
Lines 48-60 PLIST_SUB= ABI=${ABIFLAGS} \ Link Here
48
			XYZDOT=${DISTVERSION} \
51
			XYZDOT=${DISTVERSION} \
49
			OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}		# For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554
52
			OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}		# For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554
50
53
51
OPTIONS_DEFINE=		DEBUG IPV6 LIBFFI LIBMPDEC NLS PYMALLOC
54
OPTIONS_DEFINE=		DEBUG IPV6 LIBMPDEC NLS PYMALLOC
52
OPTIONS_DEFAULT=	LIBFFI LIBMPDEC PYMALLOC
55
OPTIONS_DEFAULT=	LIBMPDEC PYMALLOC
53
OPTIONS_RADIO=		HASH
56
OPTIONS_RADIO=		HASH
54
OPTIONS_RADIO_HASH=	FNV SIPHASH
57
OPTIONS_RADIO_HASH=	FNV SIPHASH
55
OPTIONS_SUB=		yes
58
OPTIONS_SUB=		yes
56
59
57
LIBFFI_DESC=		Use libffi from ports instead of bundled version
58
LIBMPDEC_DESC=		Use libmpdec from ports instead of bundled version
60
LIBMPDEC_DESC=		Use libmpdec from ports instead of bundled version
59
NLS_DESC=		Enable gettext support for the locale module
61
NLS_DESC=		Enable gettext support for the locale module
60
PYMALLOC_DESC=		Enable specialized mallocs
62
PYMALLOC_DESC=		Enable specialized mallocs
Lines 69-77 SIPHASH_CONFIGURE_ON= --with-hash-algorithm=siphash24 Link Here
69
DEBUG_CONFIGURE_WITH=	pydebug
71
DEBUG_CONFIGURE_WITH=	pydebug
70
IPV6_CONFIGURE_ENABLE=	ipv6
72
IPV6_CONFIGURE_ENABLE=	ipv6
71
73
72
LIBFFI_CONFIGURE_ON=	--with-system-ffi
73
LIBFFI_LIB_DEPENDS=	libffi.so:devel/libffi
74
75
LIBMPDEC_CONFIGURE_ON=	--with-system-libmpdec
74
LIBMPDEC_CONFIGURE_ON=	--with-system-libmpdec
76
LIBMPDEC_LIB_DEPENDS=	libmpdec.so:math/mpdecimal
75
LIBMPDEC_LIB_DEPENDS=	libmpdec.so:math/mpdecimal
77
76
Lines 99-110 PLIST_FILES+= bin/python${PYTHON_VER}${ABIFLAGS} \ Link Here
99
		libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc
98
		libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc
100
.endif
99
.endif
101
100
102
# https://bugs.python.org/issue22521
103
# https://bugs.python.org/issue23042
104
.if ${ARCH} == i386 && !${PORT_OPTIONS:MLIBFFI}
105
BROKEN=		You must use libffi from ports on i386. Enable the LIBFFI option
106
.endif
107
108
.if ${ARCH} == sparc64
101
.if ${ARCH} == sparc64
109
CFLAGS+=	-DPYTHON_DEFAULT_RECURSION_LIMIT=900
102
CFLAGS+=	-DPYTHON_DEFAULT_RECURSION_LIMIT=900
110
.endif
103
.endif
(-)lang/python39/Makefile (-13 / +6 lines)
Lines 13-18 COMMENT= Interpreted object-oriented programming language Link Here
13
13
14
LICENSE=	PSFL
14
LICENSE=	PSFL
15
15
16
LIB_DEPENDS=	libffi.so:devel/libffi
17
16
USES=		compiler:c11 cpe ncurses pathfix pkgconfig readline \
18
USES=		compiler:c11 cpe ncurses pathfix pkgconfig readline \
17
		shebangfix ssl tar:xz
19
		shebangfix ssl tar:xz
18
PATHFIX_MAKEFILEIN=	Makefile.pre.in
20
PATHFIX_MAKEFILEIN=	Makefile.pre.in
Lines 30-36 PYTHON_VERSION= python${PYTHON_VER} Link Here
30
PYTHON_SUFFIX=		${PYTHON_VER:S/.//g}
32
PYTHON_SUFFIX=		${PYTHON_VER:S/.//g}
31
33
32
DISABLED_EXTENSIONS=	_sqlite3 _tkinter _gdbm
34
DISABLED_EXTENSIONS=	_sqlite3 _tkinter _gdbm
33
CONFIGURE_ARGS+=	--enable-shared --without-ensurepip
35
CONFIGURE_ARGS+=	--enable-shared --without-ensurepip \
36
			--with-system-ffi
34
CONFIGURE_ENV+=		OPT="" DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS}"	# Null out OPT to respect user CFLAGS and remove optimizations
37
CONFIGURE_ENV+=		OPT="" DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS}"	# Null out OPT to respect user CFLAGS and remove optimizations
35
38
36
INSTALL_TARGET=		altinstall						# Don't want cloberring of unprefixed files
39
INSTALL_TARGET=		altinstall						# Don't want cloberring of unprefixed files
Lines 49-61 PLIST_SUB= ABI=${ABIFLAGS} \ Link Here
49
			XYZDOT=${DISTVERSION} \
52
			XYZDOT=${DISTVERSION} \
50
			OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}		# For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554
53
			OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}		# For plat-freebsd* in pkg-plist. https://bugs.python.org/issue19554
51
54
52
OPTIONS_DEFINE=		DEBUG IPV6 LIBFFI LIBMPDEC NLS PYMALLOC
55
OPTIONS_DEFINE=		DEBUG IPV6 LIBMPDEC NLS PYMALLOC
53
OPTIONS_DEFAULT=	LIBFFI LIBMPDEC PYMALLOC
56
OPTIONS_DEFAULT=	LIBMPDEC PYMALLOC
54
OPTIONS_RADIO=		HASH
57
OPTIONS_RADIO=		HASH
55
OPTIONS_RADIO_HASH=	FNV SIPHASH
58
OPTIONS_RADIO_HASH=	FNV SIPHASH
56
OPTIONS_SUB=		yes
59
OPTIONS_SUB=		yes
57
60
58
LIBFFI_DESC=		Use libffi from ports instead of bundled version
59
LIBMPDEC_DESC=		Use libmpdec from ports instead of bundled version
61
LIBMPDEC_DESC=		Use libmpdec from ports instead of bundled version
60
NLS_DESC=		Enable gettext support for the locale module
62
NLS_DESC=		Enable gettext support for the locale module
61
PYMALLOC_DESC=		Enable specialized mallocs
63
PYMALLOC_DESC=		Enable specialized mallocs
Lines 70-78 SIPHASH_CONFIGURE_ON= --with-hash-algorithm=siphash24 Link Here
70
DEBUG_CONFIGURE_WITH=	pydebug
72
DEBUG_CONFIGURE_WITH=	pydebug
71
IPV6_CONFIGURE_ENABLE=	ipv6
73
IPV6_CONFIGURE_ENABLE=	ipv6
72
74
73
LIBFFI_CONFIGURE_ON=	--with-system-ffi
74
LIBFFI_LIB_DEPENDS=	libffi.so:devel/libffi
75
76
LIBMPDEC_CONFIGURE_ON=	--with-system-libmpdec
75
LIBMPDEC_CONFIGURE_ON=	--with-system-libmpdec
77
LIBMPDEC_LIB_DEPENDS=	libmpdec.so:math/mpdecimal
76
LIBMPDEC_LIB_DEPENDS=	libmpdec.so:math/mpdecimal
78
77
Lines 100-111 PLIST_FILES+= bin/python${PYTHON_VER}${ABIFLAGS} \ Link Here
100
		libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc
99
		libdata/pkgconfig/python-${PYTHON_VER}${ABIFLAGS}-embed.pc
101
.endif
100
.endif
102
101
103
# https://bugs.python.org/issue22521
104
# https://bugs.python.org/issue23042
105
.if ${ARCH} == i386 && !${PORT_OPTIONS:MLIBFFI}
106
BROKEN=		You must use libffi from ports on i386. Enable the LIBFFI option
107
.endif
108
109
.if ${ARCH} == sparc64
102
.if ${ARCH} == sparc64
110
CFLAGS+=	-DPYTHON_DEFAULT_RECURSION_LIMIT=900
103
CFLAGS+=	-DPYTHON_DEFAULT_RECURSION_LIMIT=900
111
.endif
104
.endif

Return to bug 256141