From 52de5038e87688e3342b94700142f687b1da9c1c Mon Sep 17 00:00:00 2001 From: mm Date: Tue, 23 Oct 2012 20:32:59 +0000 Subject: Fix build with clang. PR: ports/164190 Submitted by: Yuri Pankov Feature safe: yes --- devel/liboil/Makefile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'devel') diff --git a/devel/liboil/Makefile b/devel/liboil/Makefile index f9e4035975b8..255e78e49171 100644 --- a/devel/liboil/Makefile +++ b/devel/liboil/Makefile @@ -25,23 +25,11 @@ CONFIGURE_ARGS= --disable-gtk-doc \ --disable-glib CFLAGS:= ${CFLAGS:N-O*} -O2 -.include - -.if defined(WITH_3DNOW_GCC40) && ${OSVERSION} < 700042 -USE_GCC= 4.2+ -RUN_DEPENDS+= ${BUILD_DEPENDS} +.if ${CC:T:M*clang*} +CFLAGS+= -fheinous-gnu-extensions .endif -pre-everything:: -.if ${MACHINE_CPU:M3dnow}!="" && ${OSVERSION} < 700042 -.if !defined(WITH_3DNOW_GCC40) - @${ECHO_MSG} "You can enable 3dnow extensions by defining" - @${ECHO_MSG} "WITH_3DNOW_GCC40=yes" -.endif - @${ECHO_MSG} "" - @${ECHO_MSG} "Note: ${PORTNAME} will depend on gcc4.0+ with WITH_3DNOW_GCC40" - @${ECHO_MSG} "defined." -.endif +.include post-patch: @${REINPLACE_CMD} -e 's|\\$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ -- cgit