diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-10 03:36:55 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-10 03:36:55 +0000 |
commit | 4b0614323e7402b105a0abb6a801367b50d7728b (patch) | |
tree | fbe85a424e42de3c5a0e75f790f029e96d749f34 /pkgtools/createbuildlink | |
parent | 0819e596781688533c3d48d0f134eda649228e28 (diff) | |
download | pkgsrc-4b0614323e7402b105a0abb6a801367b50d7728b.tar.gz |
Update pkgtools/createbuildlink to 3.1. Changes from version 3.0 include
generating buildlink3.mk files that only append to BUILDLINK_DEPENDS.*.
Diffstat (limited to 'pkgtools/createbuildlink')
-rw-r--r-- | pkgtools/createbuildlink/Makefile | 7 | ||||
-rwxr-xr-x | pkgtools/createbuildlink/files/createbuildlink | 20 |
2 files changed, 21 insertions, 6 deletions
diff --git a/pkgtools/createbuildlink/Makefile b/pkgtools/createbuildlink/Makefile index cba7392bdf6..c0627b06af8 100644 --- a/pkgtools/createbuildlink/Makefile +++ b/pkgtools/createbuildlink/Makefile @@ -1,13 +1,12 @@ -# $NetBSD: Makefile,v 1.25 2004/02/06 23:02:16 wiz Exp $ -# +# $NetBSD: Makefile,v 1.26 2004/02/10 03:36:55 jlam Exp $ -DISTNAME= createbuildlink-3.0 +DISTNAME= createbuildlink-3.1 CATEGORIES= pkgtools sysutils MASTER_SITES= # Nothing DISTFILES= # Nothing MAINTAINER= rh@NetBSD.org -COMMENT= Shell script to help creating a buildlink2.mk file +COMMENT= shell script to help creating buildlink[23].mk files PKG_INSTALLATION_TYPES= overwrite pkgviews diff --git a/pkgtools/createbuildlink/files/createbuildlink b/pkgtools/createbuildlink/files/createbuildlink index e9774ba8094..4fe271d2211 100755 --- a/pkgtools/createbuildlink/files/createbuildlink +++ b/pkgtools/createbuildlink/files/createbuildlink @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: createbuildlink,v 1.17 2004/01/14 08:53:57 rh Exp $ +# $NetBSD: createbuildlink,v 1.18 2004/02/10 03:36:55 jlam Exp $ # # Copyright (c) 2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -40,7 +40,7 @@ # and PLIST # -REV=`echo '$Revision: 1.17 $' | sed 's/\\$//g'` +REV=`echo '$Revision: 1.18 $' | sed 's/\\$//g'` tmpdir=/tmp makefile=Makefile sedrules=$tmpdir/sedrules.buildlink.$$ @@ -166,7 +166,23 @@ fi # buildlink 2/3 sed -f $sedrules <<EOF BUILDLINK_PACKAGES+= $PKGNOVER +EOF + +if [ $blver = 2 ]; then + +sed -f $sedrules <<EOF BUILDLINK_DEPENDS.$PKGNOVER?= $PKGNOVER>=$PKGVER +EOF + +else # [ $blver = 3 ] + +sed -f $sedrules <<EOF +BUILDLINK_DEPENDS.$PKGNOVER+= $PKGNOVER>=$PKGVER +EOF + +fi + +sed -f $sedrules <<EOF BUILDLINK_PKGSRCDIR.$PKGNOVER?= ../../$CURDIR EOF |