pkgsrc/x11/modular-xorg-server/buildlink3.mk
tnn e63aff7c5f Only support the dri option if X11_TYPE is modular. Not very useful in and
of itself, but cuts down on noise from libdrm and MesaLib in X11_TYPE=native
bulk builds. Also, only enable the Present extension if building with DRI.
2016-03-14 02:13:33 +00:00

49 lines
1.9 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.18 2016/03/14 02:13:33 tnn Exp $
BUILDLINK_TREE+= modular-xorg-server
.if !defined(MODULAR_XORG_SERVER_BUILDLINK3_MK)
MODULAR_XORG_SERVER_BUILDLINK3_MK:=
.include "../../mk/bsd.fast.prefs.mk"
USE_OLD_MODULAR_XORG_SERVER?= no
.if !empty(USE_OLD_MODULAR_XORG_SERVER:M[yY][eE][sS])
BUILDLINK_API_DEPENDS.modular-xorg-server+= modular-xorg-server>=1.12.4nb12<1.17
BUILDLINK_PKGSRCDIR.modular-xorg-server?= ../../x11/modular-xorg-server112
.else
BUILDLINK_API_DEPENDS.modular-xorg-server+= modular-xorg-server>=1.18
BUILDLINK_PKGSRCDIR.modular-xorg-server?= ../../x11/modular-xorg-server
.endif
BUILDLINK_DEPMETHOD.libpciaccess= full
.include "../../sysutils/libpciaccess/buildlink3.mk"
.include "../../x11/pixman/buildlink3.mk"
.include "../../x11/compositeproto/buildlink3.mk"
.include "../../x11/dri2proto/buildlink3.mk"
.include "../../x11/dri3proto/buildlink3.mk"
.include "../../x11/fontsproto/buildlink3.mk"
.if !empty(USE_OLD_MODULAR_XORG_SERVER:M[yY][eE][sS])
.include "../../graphics/MesaLib7/buildlink3.mk" # XXX should not be needed for non-dri build
.else
.include "../../graphics/MesaLib/buildlink3.mk" # XXX should not be needed for non-dri build
.include "../../x11/resourceproto/buildlink3.mk"
.include "../../x11/scrnsaverproto/buildlink3.mk"
.include "../../x11/presentproto/buildlink3.mk"
.endif
.include "../../x11/inputproto/buildlink3.mk"
.include "../../x11/libXfont/buildlink3.mk"
BUILDLINK_API_DEPENDS.randrproto+= randrproto>=1.5.0
.include "../../x11/randrproto/buildlink3.mk"
.include "../../x11/renderproto/buildlink3.mk"
.include "../../x11/videoproto/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../x11/xf86driproto/buildlink3.mk"
BUILDLINK_API_DEPENDS.xproto+= xproto>=7.0.28
.include "../../x11/xproto/buildlink3.mk"
.include "../../x11/xineramaproto/buildlink3.mk"
.endif # MODULAR_XORG_SERVER_BUILDLINK3_MK
BUILDLINK_TREE+= -modular-xorg-server