svn commit: r306326 - head/devel/liboil

Martin Matuska mm at FreeBSD.org
Tue Oct 23 20:33:00 UTC 2012


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|' \


More information about the svn-ports-all mailing list