d26cf36e57
or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or via buildlink3.mks - introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm in the !modular case - fix some cases where the check for libX11 couldn't work at all by using C++ for compilation without including the proper headers Verified using a full X11_TYPE=xorg bulk build without additional breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
32 lines
823 B
Makefile
32 lines
823 B
Makefile
# $NetBSD: buildlink3.mk,v 1.3 2006/12/27 13:37:42 joerg Exp $
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
.if ${X11_TYPE} != "modular"
|
|
.include "../../graphics/xpm/buildlink3.mk"
|
|
|
|
BUILDLINK_PREFIX.libXpm= ${BUILDLINK_PREFIX.xpm}
|
|
.else
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
LIBXPM_BUILDLINK3_MK:= ${LIBXPM_BUILDLINK3_MK}+
|
|
|
|
.if ${BUILDLINK_DEPTH} == "+"
|
|
BUILDLINK_DEPENDS+= libXpm
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:NlibXpm}
|
|
BUILDLINK_PACKAGES+= libXpm
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libXpm
|
|
|
|
.if ${LIBXPM_BUILDLINK3_MK} == "+"
|
|
BUILDLINK_API_DEPENDS.libXpm+= libXpm>=3.5.4.2
|
|
BUILDLINK_PKGSRCDIR.libXpm?= ../../x11/libXpm
|
|
.endif # LIBXPM_BUILDLINK3_MK
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../x11/xproto/buildlink3.mk"
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|
|
|
|
.endif
|