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 |