Assume that native MesaLib is built with dri if builin dri exists.

(required for OpenBSD-5.0).
This commit is contained in:
obache 2012-04-08 05:59:25 +00:00
parent 1e5f8d71f1
commit ab7348b132

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.47 2009/03/20 19:24:36 joerg Exp $
# $NetBSD: buildlink3.mk,v 1.48 2012/04/08 05:59:25 obache Exp $
BUILDLINK_TREE+= MesaLib
@ -19,6 +19,10 @@ BUILDLINK_LDFLAGS.MesaLib+= -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.fr
pkgbase:= MesaLib
.include "../../mk/pkg-build-options.mk"
.if ${X11_TYPE} == "native" && exists(${X11BASE}/lib/pkgconfig/dri.pc)
PKG_BUILD_OPTIONS.MesaLib+= dri
.endif
.if !empty(PKG_BUILD_OPTIONS.MesaLib:Mdri)
. include "../../graphics/MesaLib/dri.mk"
.endif