aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2013-01-21 00:11:23 +0800
committermarius <marius@FreeBSD.org>2013-01-21 00:11:23 +0800
commitcbccb9e593772f66b00ea642222361ffbe472e9a (patch)
treedeb6c4821fc5e3bfd905d2be2a8ddc8948506380 /multimedia
parent28bb4a4e1a16ea91c7db30ee3a0d0d13c30df5eb (diff)
downloadfreebsd-ports-gnome-cbccb9e593772f66b00ea642222361ffbe472e9a.tar.gz
freebsd-ports-gnome-cbccb9e593772f66b00ea642222361ffbe472e9a.tar.zst
freebsd-ports-gnome-cbccb9e593772f66b00ea642222361ffbe472e9a.zip
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
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libva-intel-driver/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/multimedia/libva-intel-driver/Makefile b/multimedia/libva-intel-driver/Makefile
index 79e90d33da8f..add9edf52c5c 100644
--- a/multimedia/libva-intel-driver/Makefile
+++ b/multimedia/libva-intel-driver/Makefile
@@ -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>