1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00

Add an option to use libffi from ports instead of bundled one.

Submitted by:	cy

Require this option for i386, this fixes build error.
This commit is contained in:
Dmitry Sivachenko 2014-10-29 13:21:21 +00:00
parent 52335d975f
commit 6610a597d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371675

View File

@ -3,6 +3,7 @@
PORTNAME= python34
PORTVERSION= 3.4.2
PORTREVISION= 1
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON
MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION}
@ -34,8 +35,8 @@ 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 PORT_FFI
OPTIONS_DEFAULT= IPV6 NLS PYMALLOC THREADS PORT_FFI
OPTIONS_RADIO= HASH
OPTIONS_RADIO_HASH= FNV SIPHASH
OPTIONS_SUB= yes
@ -43,6 +44,7 @@ OPTIONS_SUB= yes
NLS_DESC= Enable gettext support for the locale module
PYMALLOC_DESC= Enable specialized mallocs
TSC_DESC= Enable processor timestamp counter profiling
PORT_FFI_DESC= Use devel/ffi instead of ffi bundled with Python
HASH_DESC= Hash Algorithm (PEP-456)
FNV_DESC= Modified Fowler-Noll-Vo Algorithm
@ -78,6 +80,15 @@ ABIFLAGS:= m${ABIFLAGS}
ABIFLAGS:= d${ABIFLAGS}
.endif
.if ${PORT_OPTIONS:MPORT_FFI}
CONFIGURE_ARGS+= --with-system-ffi
LIB_DEPENDS+= libffi.so:${PORTSDIR}/devel/libffi
.else
.if ${ARCH} == i386
BROKEN= You must use libffi from ports on i386
.endif
.endif
.if !empty(ABIFLAGS)
PLIST_FILES+= bin/python3.4%%ABI%%
PLIST_FILES+= bin/python3.4%%ABI%%-config