pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/cdk Add buildlink3.mk and builtin.mk files for d...
details: https://anonhg.NetBSD.org/pkgsrc/rev/433fcbc4b908
branches: trunk
changeset: 474190:433fcbc4b908
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Apr 26 05:09:29 2004 +0000
description:
Add buildlink3.mk and builtin.mk files for devel/cdk that match the
behaviour of cdk/buildlink2.mk.
diffstat:
devel/cdk/buildlink3.mk | 20 ++++++++++++++++++++
devel/cdk/builtin.mk | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+), 0 deletions(-)
diffs (70 lines):
diff -r 2bc2534da94d -r 433fcbc4b908 devel/cdk/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cdk/buildlink3.mk Mon Apr 26 05:09:29 2004 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/26 05:09:29 jlam Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+CDK_BUILDLINK3_MK:= ${CDK_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= cdk
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ncdk}
+BUILDLINK_PACKAGES+= cdk
+
+.if !empty(CDK_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.cdk+= cdk>=4.9.9nb1
+BUILDLINK_PKGSRCDIR.cdk?= ../../devel/cdk
+.endif # CDK_BUILDLINK3_MK
+
+.include "../../devel/ncurses/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff -r 2bc2534da94d -r 433fcbc4b908 devel/cdk/builtin.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cdk/builtin.mk Mon Apr 26 05:09:29 2004 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: builtin.mk,v 1.1 2004/04/26 05:09:29 jlam Exp $
+
+_CDK_CDK_H= /usr/include/cdk/cdk.h
+
+.if !defined(IS_BUILTIN.cdk)
+IS_BUILTIN.cdk= no
+. if exists(${_CDK_CDK_H})
+IS_BUILTIN.cdk= yes
+# XXX
+# XXX Consider the native CDK to be cdk-4.9.9nb1.
+# XXX
+BUILTIN_PKG.cdk= cdk-4.9.9nb1
+BUILDLINK_VARS+= BUILTIN_PKG.cdk
+. endif
+BUILDLINK_VARS+= IS_BUILTIN.cdk
+.endif # IS_BUILTIN.cdk
+
+.if !defined(USE_BUILTIN.cdk)
+USE_BUILTIN.cdk?= ${IS_BUILTIN.cdk}
+PREFER.cdk?= pkgsrc
+
+. if defined(BUILTIN_PKG.cdk)
+USE_BUILTIN.cdk= yes
+. for _depend_ in ${BUILDLINK_DEPENDS.cdk}
+. if !empty(USE_BUILTIN.cdk:M[yY][eE][sS])
+USE_BUILTIN.cdk!= \
+ if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.cdk}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi
+. endif
+. endfor
+. endif
+
+. if defined(USE_CDK)
+. if !empty(IS_BUILTIN.cdk:M[nN][oO]) && \
+ (${PREFER.cdk} == "pkgsrc")
+USE_BUILTIN.cdk= no
+. endif
+. endif
+.endif # USE_BUILTIN.cdk
Home |
Main Index |
Thread Index |
Old Index