diff options
author | jlam <jlam> | 2002-08-25 18:38:05 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-08-25 18:38:05 +0000 |
commit | f22b8c42a61ccfbb462bf2b94c3486b7baec18bd (patch) | |
tree | d2b31bb9a6a069ebfb63079b9dddde1e6688bc4b /net/hesiod | |
parent | 71eaa77968f19e23d72fdc88e5f38259b8f7cdf3 (diff) | |
download | pkgsrc-f22b8c42a61ccfbb462bf2b94c3486b7baec18bd.tar.gz |
Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk. This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
Diffstat (limited to 'net/hesiod')
-rw-r--r-- | net/hesiod/Makefile | 5 | ||||
-rw-r--r-- | net/hesiod/buildlink2.mk | 37 |
2 files changed, 39 insertions, 3 deletions
diff --git a/net/hesiod/Makefile b/net/hesiod/Makefile index 18a057d9c36..5806b1f664f 100644 --- a/net/hesiod/Makefile +++ b/net/hesiod/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2001/11/29 13:34:35 jlam Exp $ +# $NetBSD: Makefile,v 1.3 2002/08/25 18:39:32 jlam Exp $ DISTNAME= hesiod-3.0.2 CATEGORIES= net @@ -7,14 +7,13 @@ MASTER_SITES= ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/ MAINTAINER= kpneal@pobox.org COMMENT= Hesiod network database client and library -USE_BUILDLINK_ONLY= YES - .include "../../mk/bsd.prefs.mk" .if exists(/usr/include/hesiod.h) && !defined(USE_HESIOD) IGNORE= "${PKGNAME} is part of your ${OPSYS} distribution" .endif +USE_BUILDLINK2= YES GNU_CONFIGURE= YES CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} diff --git a/net/hesiod/buildlink2.mk b/net/hesiod/buildlink2.mk new file mode 100644 index 00000000000..15dff9b311a --- /dev/null +++ b/net/hesiod/buildlink2.mk @@ -0,0 +1,37 @@ +# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:32 jlam Exp $ + +.if !defined(HESIOD_BUILDLINK2_MK) +HESIOD_BUILDLINK2_MK= # defined + +BUILDLINK_DEPENDS.hesiod?= hesiod>=3.0.2 +BUILDLINK_PKGSRCDIR.hesiod?= ../../net/hesiod + +.if defined(USE_HESIOD) +_NEED_HESIOD= YES +.else +. if exists(/usr/include/hesiod.h) +_NEED_HESIOD= NO +. else +_NEED_HESIOD= YES +. endif +.endif + +.if ${_NEED_HESIOD} == "YES" +BUILDLINK_PACKAGES+= hesiod +EVAL_PREFIX+= BUILDLINK_PREFIX.hesiod=hesiod +BUILDLINK_PREFIX.hesiod_DEFAULT= ${LOCALBASE} +.else +BUILDLINK_PREFIX.hesiod= /usr +.endif + +BUILDLINK_FILES.hesiod= include/hesiod.h +# +# if lib/libhesiod.* does not exists assume hesiod service is included in libc +# +BUILDLINK_FILES.hesiod+= lib/libhesiod.* + +BUILDLINK_TARGETS+= hesiod-buildlink + +hesiod-buildlink: _BUILDLINK_USE + +.endif # HESIOD_BUILDLINK2_MK |