summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-09-25 01:43:43 +0000
committertnn <tnn@pkgsrc.org>2015-09-25 01:43:43 +0000
commitaf9aaea96322e9271dcaa9852fb7d8dfa6bf1133 (patch)
treeda33b95aa61a13d0e3849132a579dd7165d1b194 /x11
parentf53fa777f2e453f80280341acd91b54f8e86597e (diff)
downloadpkgsrc-af9aaea96322e9271dcaa9852fb7d8dfa6bf1133.tar.gz
add "xatracker" option, which enables support for kernel modesetting and 3D
Diffstat (limited to 'x11')
-rw-r--r--x11/xf86-video-vmware/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/x11/xf86-video-vmware/Makefile b/x11/xf86-video-vmware/Makefile
index 2bbda1db057..450b85ee48f 100644
--- a/x11/xf86-video-vmware/Makefile
+++ b/x11/xf86-video-vmware/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.22 2015/04/25 14:25:24 tnn Exp $
+# $NetBSD: Makefile,v 1.23 2015/09/25 01:43:43 tnn Exp $
DISTNAME= xf86-video-vmware-13.1.0
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG:=driver/}
EXTRACT_SUFX= .tar.bz2
@@ -20,6 +20,24 @@ USE_TOOLS+= pkg-config
CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4
.endif
+ONLY_FOR_PLATFORM+= *-*-i386 *-*-x86_64
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.xf86-video-vmware
+PKG_SUPPORTED_OPTIONS= xatracker
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mxatracker)
+CFLAGS+= -fPIC
+BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=11
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../lang/libLLVM/buildlink3.mk"
+.else
+pre-configure:
+ find ${BUILDLINK_DIR} -name xatracker.pc -delete
+.endif
+
.include "../../x11/modular-xorg-server/buildlink3.mk"
.include "../../x11/randrproto/buildlink3.mk"
BUILDLINK_DEPMETHOD.libXext?= build