svn commit: r510090 - head/graphics/gegl
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Aug 28 19:15:20 UTC 2019
Author: pkubaj
Date: Wed Aug 28 19:15:20 2019
New Revision: 510090
URL: https://svnweb.freebsd.org/changeset/ports/510090
Log:
graphics/gegl: fix build with clang when using Altivec
Clang doesn't like including altivec.h manually:
/usr/lib/clang/8.0.1/include/altivec.h:69:19: error: unknown type name 'vector'
static inline vector bool char __ATTRS_o_ai
PR: 239757
Approved by: linimon (mentor), gnome (maintainer timeout)
Differential Revision: https://reviews.freebsd.org/D21404
Modified:
head/graphics/gegl/Makefile
Modified: head/graphics/gegl/Makefile
==============================================================================
--- head/graphics/gegl/Makefile Wed Aug 28 18:53:24 2019 (r510089)
+++ head/graphics/gegl/Makefile Wed Aug 28 19:15:20 2019 (r510090)
@@ -122,7 +122,7 @@ GEXIV2_CONFIGURE_WITH= gexiv2
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_CONFIGURE_WITH= libtiff
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MPANGO} && ${PORT_OPTIONS:MCAIRO}
PLIST_SUB+= PANGOCAIRO=""
@@ -135,6 +135,9 @@ post-patch:
${REINPLACE_CMD} -e "s/lua >/lua-${LUA_VER} >/g" \
-e 's|\(lua\)\(5\.1\)|\1-\2|g ; s|x86_64|amd64|g' \
${WRKSRC}/configure
+.if ${CHOSEN_COMPILER_TYPE} == clang
+ ${REINPLACE_CMD} -e '/altivec.h/d' ${WRKSRC}/gegl/opencl/cl_platform.h
+.endif
post-patch-EXAMPLES-off:
${REINPLACE_CMD} -e 's|tools examples|tools|g' \
@@ -147,4 +150,4 @@ post-install-EXAMPLES-on:
${INSTALL_DATA} ${WRKSRC}/examples/${ex}.c ${STAGEDIR}${EXAMPLESDIR}
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list