Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2012 20:32:59 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306326 - head/devel/liboil
Message-ID:  <201210232032.q9NKWx8I051320@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Tue Oct 23 20:32:59 2012
New Revision: 306326
URL: http://svn.freebsd.org/changeset/ports/306326

Log:
  Fix build with clang.
  
  PR:		ports/164190
  Submitted by:	Yuri Pankov
  Feature safe:	yes

Modified:
  head/devel/liboil/Makefile

Modified: head/devel/liboil/Makefile
==============================================================================
--- head/devel/liboil/Makefile	Tue Oct 23 20:16:48 2012	(r306325)
+++ head/devel/liboil/Makefile	Tue Oct 23 20:32:59 2012	(r306326)
@@ -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|' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210232032.q9NKWx8I051320>