Date: Sun, 20 Jan 2013 16:11:23 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r310697 - head/multimedia/libva-intel-driver Message-ID: <201301201611.r0KGBN3k030298@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301201611.r0KGBN3k030298>