diff options
author | jlam <jlam> | 2002-08-25 19:21:43 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-08-25 19:21:43 +0000 |
commit | d257fd9c86ab9f4bf75bd5c7918c6728844d3da3 (patch) | |
tree | c69c41be2f3b44bedceeee7e348c2ae58c476c6a /devel/cdk | |
parent | 65df886c1484d0f586189778ec4e72c364fa5a17 (diff) | |
download | pkgsrc-d257fd9c86ab9f4bf75bd5c7918c6728844d3da3.tar.gz |
Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.
Diffstat (limited to 'devel/cdk')
-rw-r--r-- | devel/cdk/buildlink2.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/devel/cdk/buildlink2.mk b/devel/cdk/buildlink2.mk new file mode 100644 index 00000000000..0a0842b5b2e --- /dev/null +++ b/devel/cdk/buildlink2.mk @@ -0,0 +1,34 @@ +# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 19:22:25 jlam Exp $ + +.if !defined(CDK_BUILDLINK2_MK) +CDK_BUILDLINK2_MK= # defined + +BUILDLINK_DEPENDS.cdk?= cdk>=4.9.6 +BUILDLINK_PKGSRCDIR.cdk?= ../../devel/cdk + +.if defined(USE_CDK) +_NEED_CDK= YES +.elif exists(/usr/include/cdk/cdk.h) +_NEED_CDK= NO +.else +_NEED_CDK= YES +.endif + +.if ${_NEED_CDK} == "YES" +BUILDLINK_PACKAGES+= cdk +EVAL_PREFIX+= BUILDLINK_PREFIX.cdk=cdk +BUILDLINK_PREFIX.cdk_DEFAULT= ${LOCALBASE} +.else +BUILDLINK_PREFIX.cdk= /usr +.endif + +BUILDLINK_FILES.cdk= include/cdk/*.h +BUILDLINK_FILES.cdk+= lib/libcdk.* + +.include "../../devel/ncurses/buildlink2.mk" + +BUILDLINK_TARGETS+= cdk-buildlink + +cdk-buildlink: _BUILDLINK_USE + +.endif # CDK_BUILDLINK2_MK |