From 2a50e4e47cfb89df4666f2ebb061d67d0ec2306b Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Fri, 16 May 2003 03:31:46 +0000 Subject: [PATCH] Add two build fixes for ia64 but still does not build for this: t-asm.S:111: Error: Operand 3 of `cmp.eq' should be a general register So, mark BROKEN for ia64. --- devel/py-ctypes/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/devel/py-ctypes/Makefile b/devel/py-ctypes/Makefile index dd8213c63f05..861c0656fae1 100644 --- a/devel/py-ctypes/Makefile +++ b/devel/py-ctypes/Makefile @@ -30,6 +30,12 @@ LIBFFIWRKSRC= ${WRKDIR}/libffi-${LIBFFIVERSION} CONFIGURE_ARGS= --enable-static --disable-shared CONFIGURE_WRKSRC=${LIBFFIWRKSRC} +.include + +.if ${ARCH} == "ia64" +BROKEN= "does not build" +.endif + post-patch: ${LN} -sf ${LIBFFIWRKSRC}/config-ml.in ${LIBFFIWRKSRC}/.. ${REINPLACE_CMD} -e 's|\(include_dirs = \).*|\1["${LIBFFIWRKSRC}/include"]|' \ @@ -37,8 +43,13 @@ post-patch: -e 's|\(Extension(.*\)$$|\1 define_macros=[("ffi_type_schar", \ "ffi_type_sint8"), ("ffi_type_sshort","ffi_type_sint16")],|' \ ${WRKSRC}/setup.py +.if ${ARCH} == "ia64" + ${LN} -sf ${LIBFFIWRKSRC}/${ARCH}/${ARCH}_flags.h ${LIBFFIWRKSRC}/ + ${REINPLACE_CMD} -e 's|defined(IA64)|defined(__ia64__)|' \ + ${LIBFFIWRKSRC}/include/ffi.h +.endif pre-build: cd ${LIBFFIWRKSRC}; ${MAKE_ENV} ${GMAKE} -.include +.include