require randrproto>=1.4 to build, and packags not using builtin libXrandr
also require the version. fixes a part of PR pkg/48532.
This commit is contained in:
parent
7a009320da
commit
21298a3c7a
2 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.15 2013/09/08 08:19:48 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.16 2014/02/05 09:42:33 obache Exp $
|
||||
|
||||
DISTNAME= libXrandr-1.4.2
|
||||
CATEGORIES= x11 devel
|
||||
|
@ -27,6 +27,7 @@ CONFIGURE_ARGS+= --disable-malloc0returnsnull
|
|||
.include "../../x11/libX11/buildlink3.mk"
|
||||
.include "../../x11/libXext/buildlink3.mk"
|
||||
.include "../../x11/libXrender/buildlink3.mk"
|
||||
BUILDLINK_API_DEPENDS.randrproto+= randrproto>=1.4
|
||||
.include "../../x11/randrproto/buildlink3.mk"
|
||||
.include "../../x11/renderproto/buildlink3.mk"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: builtin.mk,v 1.2 2008/10/05 21:36:33 cube Exp $
|
||||
# $NetBSD: builtin.mk,v 1.3 2014/02/05 09:42:33 obache Exp $
|
||||
|
||||
BUILTIN_PKG:= libXrandr
|
||||
|
||||
|
@ -49,3 +49,12 @@ USE_BUILTIN.libXrandr!= \
|
|||
MAKEVARS+= USE_BUILTIN.libXrandr
|
||||
|
||||
.include "../../mk/x11.builtin.mk"
|
||||
|
||||
CHECK_BUILTIN.libXrandr?= no
|
||||
.if !empty(CHECK_BUILTIN.libXrandr:M[nN][oO])
|
||||
|
||||
. if !empty(USE_BUILTIN.libXrandr:M[nN][oO])
|
||||
BUILDLINK_API_DEPENDS.randrproto+= randrproto>=1.4
|
||||
. endif
|
||||
|
||||
.endif # CHECK_BUILTIN.libXrandr
|
||||
|
|
Loading…
Reference in a new issue