summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/Xaw3d/buildlink3.mk17
1 files changed, 15 insertions, 2 deletions
diff --git a/x11/Xaw3d/buildlink3.mk b/x11/Xaw3d/buildlink3.mk
index 55522b9bb07..5f38ad345b2 100644
--- a/x11/Xaw3d/buildlink3.mk
+++ b/x11/Xaw3d/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.10 2007/01/24 03:46:59 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2007/02/08 00:08:20 joerg Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
XAW3D_BUILDLINK3_MK:= ${XAW3D_BUILDLINK3_MK}+
@@ -15,9 +15,22 @@ BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}Xaw3d
BUILDLINK_API_DEPENDS.Xaw3d+= Xaw3d>=1.5
BUILDLINK_ABI_DEPENDS.Xaw3d?= Xaw3d>=1.5Enb1
BUILDLINK_PKGSRCDIR.Xaw3d?= ../../x11/Xaw3d
-.endif # XAW3D_BUILDLINK3_MK
+
+BUILDLINK_TRANSFORM+= l:Xaw:Xaw3d
.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${X11_TYPE} == "modular"
+.PHONY: buildlink-Xaw3d-inc-hack
+buildlink-Xaw3d-cookie: buildlink-Xaw3d-inc-hack
+
+buildlink-Xaw3d-inc-hack: buildlink-directories
+ [ ! -h ${BUILDLINK_DIR}/include/X11/Xaw ] && \
+ ${MKDIR} ${BUILDLINK_DIR}/include/X11 && \
+ ${LN} -s Xaw3d ${BUILDLINK_DIR}/include/X11/Xaw
+.endif
+.endif # XAW3D_BUILDLINK3_MK
+
.include "../../x11/libXmu/buildlink3.mk"
LIBXAW?= -L${BUILDLINK_PREFIX.Xaw3d}/lib \