pkgsrc/x11/libXi/buildlink3.mk
obache 9e366cfe95 Add builtin detection for libXi (mainly for the case X11_TYPE=native but builtin
version is older than required version).
Set API_DEPENDS for required package for the case using libXi from pkgsrc,
same as specified to build this package.
2014-04-23 12:22:48 +00:00

40 lines
1.1 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.8 2014/04/23 12:22:48 obache Exp $
.include "../../mk/bsd.fast.prefs.mk"
.if ${X11_TYPE} != "modular" && \
!defined(BUILDLINK_API_DEPENDS.libXi)
.include "../../mk/x11.buildlink3.mk"
.else
BUILDLINK_TREE+= libXi
.if !defined(LIBXI_BUILDLINK3_MK)
LIBXI_BUILDLINK3_MK:=
. if !defined(USE_BUILTIN.libXi)
CHECK_BUILTIN.libXi:= yes
. include "../../x11/libXi/builtin.mk"
CHECK_BUILTIN.libXi:= no
. endif
BUILDLINK_API_DEPENDS.libXi+= libXi>=1.0.0
BUILDLINK_PKGSRCDIR.libXi?= ../../x11/libXi
. if !empty(USE_BUILTIN.libXi:M[Nn][Oo])
BUILDLINK_API_DEPENDS.inputproto+= inputproto>=2.3
BUILDLINK_API_DEPENDS.libX11+= libX11>=1.5
BUILDLINK_API_DEPENDS.libXext+= libXext>=1.1
BUILDLINK_API_DEPENDS.xextproto+= xextproto>=7.0.3
BUILDLINK_API_DEPENDS.xproto+= xproto>=7.0.13
. endif
.include "../../x11/inputproto/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXfixes/buildlink3.mk"
.include "../../x11/xproto/buildlink3.mk"
.endif # LIBXI_BUILDLINK3_MK
BUILDLINK_TREE+= -libXi
.endif