svn commit: r310697 - head/multimedia/libva-intel-driver

Marius Strobl marius at FreeBSD.org
Sun Jan 20 16:11:24 UTC 2013


Author: marius
Date: Sun Jan 20 16:11:23 2013
New Revision: 310697
URL: http://svnweb.freebsd.org/changeset/ports/310697

Log:
  Switch to the logic from x11-drivers/xf86-video-intel for detecting
  whether graphics/libdrm with KMS enabled is installed. For one, the
  WITH_KMS knob never real has been established as a global option
  within the ports tree. Also, just using IGNORE here when libkms.so
  not already exists does the wrong thing when graphics/libdrm generally
  is not installed at this point of time, yet.
  
  Approved by:	bapt (mentor), maintainer

Modified:
  head/multimedia/libva-intel-driver/Makefile

Modified: head/multimedia/libva-intel-driver/Makefile
==============================================================================
--- head/multimedia/libva-intel-driver/Makefile	Sun Jan 20 15:56:34 2013	(r310696)
+++ head/multimedia/libva-intel-driver/Makefile	Sun Jan 20 16:11:23 2013	(r310697)
@@ -29,14 +29,20 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 PLIST_FILES=	lib/va/i965_drv_video.so \
 		lib/va/i965_drv_video.la
 
-.if !defined(WITH_NEW_XORG) || !defined(WITH_KMS)
-IGNORE=		requires libdrm >= 2.4.23 and intel KMS to be enabled
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_NEW_XORG)
+pre-configure:
+.if !exists(${LOCALBASE}/lib/libkms.so)
+	@${ECHO} "${PKGNAME}: Rebuild graphics/libdrm with the WITH_KMS option."
+	@${FALSE}
+.endif
 .endif
 
-post-patch:     .SILENT
+post-patch:	.SILENT
 	${REINPLACE_CMD} -e 's/-ldl//' \
 		${WRKSRC}/src/Makefile.am
 	${REINPLACE_CMD} -e 's|driverdir|& --define-variable prefix=${PREFIX}|' \
 		${WRKSRC}/configure.ac
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-head mailing list