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/libgetopt | |
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/libgetopt')
-rw-r--r-- | devel/libgetopt/buildlink2.mk | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/devel/libgetopt/buildlink2.mk b/devel/libgetopt/buildlink2.mk new file mode 100644 index 00000000000..c7e19d5c9f3 --- /dev/null +++ b/devel/libgetopt/buildlink2.mk @@ -0,0 +1,36 @@ +# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 19:22:30 jlam Exp $ + +.if !defined(GETOPT_BUILDLINK2_MK) +GETOPT_BUILDLINK2_MK= # defined + +BUILDLINK_DEPENDS.getopt?= libgetopt>=1.3 +BUILDLINK_PKGSRCDIR.getopt?= ../../devel/libgetopt + +.if exists(/usr/include/getopt.h) +_NEED_GETOPT= NO +.else +_NEED_GETOPT= YES +.endif + +.if ${_NEED_GETOPT} == "NO" +BUILDLINK_PREFIX.getopt= /usr +BUILDLINK_FILES.getopt= include/getopt.h +LIBGETOPT= # empty +.else +BUILDLINK_PACKAGES+= getopt +EVAL_PREFIX+= BUILDLINK_PREFIX.getopt=libgetopt +BUILDLINK_PREFIX.getopt_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.getopt= include/getopt.h +BUILDLINK_FILES.getopt+= lib/libgetopt.* +BUILDLINK_FILES.getopt+= lib/libgetopt_pic.a +LIBGETOPT= -lgetopt +.endif + +CONFIGURE_ENV+= LIBGETOPT="${LIBGETOPT}" +MAKE_ENV+= LIBGETOPT="${LIBGETOPT}" + +BUILDLINK_TARGETS+= getopt-buildlink + +getopt-buildlink: _BUILDLINK_USE + +.endif # GETOPT_BUILDLINK2_MK |