diff options
author | mm <mm@FreeBSD.org> | 2012-10-24 04:32:59 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-10-24 04:32:59 +0800 |
commit | 52de5038e87688e3342b94700142f687b1da9c1c (patch) | |
tree | 56d9510a0529c0af156e93ec2cb869a2f3f426b5 /devel | |
parent | c0ae2536e299ead4ea71838758b9ec4a9a7bbe4c (diff) | |
download | freebsd-ports-gnome-52de5038e87688e3342b94700142f687b1da9c1c.tar.gz freebsd-ports-gnome-52de5038e87688e3342b94700142f687b1da9c1c.tar.zst freebsd-ports-gnome-52de5038e87688e3342b94700142f687b1da9c1c.zip |
Fix build with clang.
PR: ports/164190
Submitted by: Yuri Pankov
Feature safe: yes
Diffstat (limited to 'devel')
-rw-r--r-- | devel/liboil/Makefile | 18 |
1 files changed, 3 insertions, 15 deletions
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 <bsd.port.pre.mk> - -.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 <bsd.port.pre.mk> post-patch: @${REINPLACE_CMD} -e 's|\\$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ |