794f24045c
* stop to use x11/Xfixes if builtin one is newer (xfixes.pc exists) * add builtin libXfixes detection. affect to NetBSD-5, builtin libXfixes is 4.0.3, prevent to install Xfixes 2.0.1, if it is considerd that builtin Xfixes is not sufficient.
25 lines
652 B
Makefile
25 lines
652 B
Makefile
# $NetBSD: buildlink3.mk,v 1.4 2014/04/24 12:18:09 obache Exp $
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
.if ${X11_TYPE} != "modular" && \
|
|
!exists(${X11BASE}/lib/pkgconfig/xfixes.pc) && \
|
|
!exists(${X11BASE}/lib${LIBABISUFFIX}/pkgconfig/xfixes.pc)
|
|
.include "../../x11/Xfixes/buildlink3.mk"
|
|
.else
|
|
|
|
BUILDLINK_TREE+= libXfixes
|
|
|
|
.if !defined(LIBXFIXES_BUILDLINK3_MK)
|
|
LIBXFIXES_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.libXfixes+= libXfixes>=4.0.1
|
|
BUILDLINK_PKGSRCDIR.libXfixes?= ../../x11/libXfixes
|
|
|
|
.include "../../x11/fixesproto/buildlink3.mk"
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.endif # LIBXFIXES_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -libXfixes
|
|
|
|
.endif
|