summaryrefslogtreecommitdiff
path: root/lang/python33
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2014-11-04 09:14:21 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2014-11-04 09:14:21 +0000
commitaa02163c1401bdc8a1cfa11181a8f5011555220c (patch)
tree0555c114031e18e9bc04687858ab96a799454247 /lang/python33
parent- Update to 0.13 (diff)
Add an option to use libffi from ports instead of bundled version.
Submitted by: cy Reviewed by: koobs
Notes
Notes: svn path=/head/; revision=372138
Diffstat (limited to 'lang/python33')
-rw-r--r--lang/python33/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/lang/python33/Makefile b/lang/python33/Makefile
index c7872f59ff29..61706e10b759 100644
--- a/lang/python33/Makefile
+++ b/lang/python33/Makefile
@@ -2,7 +2,7 @@
PORTNAME= python33
PORTVERSION= 3.3.5
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON
MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION}
@@ -33,13 +33,14 @@ MAKE_ARGS+= LIBPC="${PREFIX}/libdata/pkgconfig" # Until pathfix gets support
PLIST_SUB= ABI=${ABIFLAGS} \
OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} # For plat-freebsd* in pkg-plist. http://bugs.python.org/issue19554
-OPTIONS_DEFINE= DEBUG IPV6 NLS PYMALLOC THREADS TSC
-OPTIONS_DEFAULT= IPV6 NLS PYMALLOC THREADS
+OPTIONS_DEFINE= DEBUG IPV6 NLS PYMALLOC THREADS TSC LIBFFI
+OPTIONS_DEFAULT= IPV6 NLS PYMALLOC THREADS LIBFFI
OPTIONS_SUB= yes
NLS_DESC= Enable gettext support for the locale module
PYMALLOC_DESC= Enable specialized mallocs
TSC_DESC= Enable processor timestamp counter profiling
+LIBFFI_DESC= Use libffi from ports instead of bundled version
DEBUG_CONFIGURE_WITH= pydebug
IPV6_CONFIGURE_ENABLE= ipv6
@@ -69,6 +70,11 @@ ABIFLAGS:= m${ABIFLAGS}
ABIFLAGS:= d${ABIFLAGS}
.endif
+.if ${PORT_OPTIONS:MLIBFFI}
+CONFIGURE_ARGS+= --with-system-ffi
+LIB_DEPENDS+= libffi.so:${PORTSDIR}/devel/libffi
+.endif
+
.if !empty(ABIFLAGS)
PLIST_FILES+= bin/python3.3%%ABI%%
PLIST_FILES+= bin/python3.3%%ABI%%-config