ports/146823: [patch] lang/python26: knob to build _ctypes module against devel/libffi
Anonymous
swell.k at gmail.com
Sat May 22 10:40:02 UTC 2010
>Number: 146823
>Category: ports
>Synopsis: [patch] lang/python26: knob to build _ctypes module against devel/libffi
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat May 22 10:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
Build _ctypes module using newer libffi from devel/libffi port.
Should make experience more similar to pkgsrc's lang/python26.
>How-To-Repeat:
>Fix:
--- a.diff begins here ---
Index: lang/python26/Makefile
===================================================================
RCS file: /a/.cvsup/ports/lang/python26/Makefile,v
retrieving revision 1.166
diff -u -p -r1.166 Makefile
--- lang/python26/Makefile 12 May 2010 12:13:06 -0000 1.166
+++ lang/python26/Makefile 22 May 2010 10:09:48 -0000
@@ -55,7 +55,8 @@ OPTIONS= THREADS "Enable thread support"
UCS4 "Use UCS4 for unicode support" on \
PYMALLOC "Use python's internal malloc" on \
IPV6 "Enable IPv6 support" on \
- FPECTL "Enable floating point exception handling" off
+ FPECTL "Enable floating point exception handling" off \
+ FFI_PORT "Build _ctypes module using devel/libffi port" off
.include <bsd.port.pre.mk>
@@ -146,6 +149,13 @@ CONFIGURE_ARGS+= --disable-ipv6
CONFIGURE_ARGS+= --with-fpectl
.endif
+.if !defined(WITHOUT_FFI_PORT)
+CONFIGURE_ARGS+= --with-system-ffi
+LIB_DEPENDS+= ffi.5:${PORTSDIR}/devel/libffi
+.else
+CONFIGURE_ARGS+= --without-system-ffi
+.endif
+
pre-patch:
${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \
${PATCH_WRKSRC}/Lib/plat-freebsd9
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list