diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-23 19:26:48 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-23 19:26:48 +0000 |
commit | 34d11d8a0f59e1c62bc5b1cc1046d3275e061062 (patch) | |
tree | ca311365ad4be7fa955c6e626140f094e60c3647 /devel/libgetopt | |
parent | 8ca42bcf7c09eef6cbb13b534ad4d0a51c780fb1 (diff) | |
download | pkgsrc-34d11d8a0f59e1c62bc5b1cc1046d3275e061062.tar.gz |
Generalize how the dependency pattern may be specified. Instead of just
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify
the dependency pattern as FOO_DEPENDS=foo>=1.0. This allows things like
JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib.
Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
Diffstat (limited to 'devel/libgetopt')
-rw-r--r-- | devel/libgetopt/buildlink.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/devel/libgetopt/buildlink.mk b/devel/libgetopt/buildlink.mk index 00198343ace..c4f466a75ad 100644 --- a/devel/libgetopt/buildlink.mk +++ b/devel/libgetopt/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.8 2001/06/18 10:53:28 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.9 2001/06/23 19:26:53 jlam Exp $ # # This Makefile fragment is included by packages that use getopt_long(). # @@ -14,11 +14,13 @@ .if !defined(GETOPT_BUILDLINK_MK) GETOPT_BUILDLINK_MK= # defined +BUILDLINK_DEPENDS.getopt?= libgetopt>=1.3 + .if exists(/usr/include/getopt.h) BUILDLINK_PREFIX.getopt= /usr BUILDLINK_FILES.getopt= include/getopt.h .else -DEPENDS+= libgetopt>=1.3:../../devel/libgetopt +DEPENDS+= ${BUILDLINK_DEPENDS.getopt}:../../devel/libgetopt BUILDLINK_PREFIX.getopt= ${LOCALBASE} BUILDLINK_FILES.getopt= include/getopt.h BUILDLINK_FILES.getopt+= lib/libgetopt.* |