summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2004-03-05 19:42:06 +0000
committerjlam <jlam>2004-03-05 19:42:06 +0000
commitfcd9ba099fcccbcaace9f5916f7ce34b3830928f (patch)
treed9592e431b23d2c0083be25114ed2433aae6e868
parent12109d5b873e13ef999184b4ace84a18e0a72358 (diff)
downloadpkgsrc-fcd9ba099fcccbcaace9f5916f7ce34b3830928f.tar.gz
Update pkgtools/createbuildlink to 3.2. Changes from version 3.1 include
creating buildlink3.mk that are in line with the template in revision 1.101 of mk/buildlink3/bsd.buildlink3.mk.
-rw-r--r--doc/CHANGES3
-rw-r--r--pkgtools/createbuildlink/Makefile4
-rwxr-xr-xpkgtools/createbuildlink/files/createbuildlink45
3 files changed, 28 insertions, 24 deletions
diff --git a/doc/CHANGES b/doc/CHANGES
index 0f37f5ef2d5..452609feb9e 100644
--- a/doc/CHANGES
+++ b/doc/CHANGES
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.5099 2004/03/05 14:48:31 adam Exp $
+$NetBSD: CHANGES,v 1.5100 2004/03/05 19:42:06 jlam Exp $
Changes to the packages collection and infrastructure in 2004:
@@ -1176,3 +1176,4 @@ Changes to the packages collection and infrastructure in 2004:
Updated libgeda to 20040111 [dmcmahill 2004-03-05]
Updated postfix to 2.0.18nb1 [grant 2004-03-05]
Added cln-1.1.6 [adam 2004-03-05]
+ Updated createbuildlink to 3.2 [jlam 2004-03-05]
diff --git a/pkgtools/createbuildlink/Makefile b/pkgtools/createbuildlink/Makefile
index c0627b06af8..11db361fcb0 100644
--- a/pkgtools/createbuildlink/Makefile
+++ b/pkgtools/createbuildlink/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.26 2004/02/10 03:36:55 jlam Exp $
+# $NetBSD: Makefile,v 1.27 2004/03/05 19:42:09 jlam Exp $
-DISTNAME= createbuildlink-3.1
+DISTNAME= createbuildlink-3.2
CATEGORIES= pkgtools sysutils
MASTER_SITES= # Nothing
DISTFILES= # Nothing
diff --git a/pkgtools/createbuildlink/files/createbuildlink b/pkgtools/createbuildlink/files/createbuildlink
index 4fe271d2211..e46181b3436 100755
--- a/pkgtools/createbuildlink/files/createbuildlink
+++ b/pkgtools/createbuildlink/files/createbuildlink
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: createbuildlink,v 1.18 2004/02/10 03:36:55 jlam Exp $
+# $NetBSD: createbuildlink,v 1.19 2004/03/05 19:42:09 jlam Exp $
#
# Copyright (c) 2002 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -40,7 +40,7 @@
# and PLIST
#
-REV=`echo '$Revision: 1.18 $' | sed 's/\\$//g'`
+REV=`echo '$Revision: 1.19 $' | sed 's/\\$//g'`
tmpdir=/tmp
makefile=Makefile
sedrules=$tmpdir/sedrules.buildlink.$$
@@ -130,11 +130,11 @@ echo >>$sedrules "s|@@PKGVERSION@@|@PKGVERSION@|g"
#
sed -f $sedrules <<EOF
# @@ID@@
-#
-# This Makefile fragment is included by packages that use $PKGNOVER.
-#
-# This file was created automatically using createbuildlink-@PKGVERSION@.
-#
+# XXX
+# XXX This file was created automatically using createbuildlink-@PKGVERSION@.
+# XXX After this file as been verified as correct, the comment lines
+# XXX beginning with "XXX" should be removed. Please do not commit
+# XXX unverified buildlink[23].mk files.
EOF
@@ -152,38 +152,38 @@ EOF
else # buildlink 3
sed -f $sedrules <<EOF
-BUILDLINK_DEPTH:= \${BUILDLINK_DEPTH}+
+BUILDLINK_DEPTH:= \${BUILDLINK_DEPTH}+
${PKGUPPER}_BUILDLINK3_MK:= \${${PKGUPPER}_BUILDLINK3_MK}+
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= ${PKGNOVER}
.endif
+BUILDLINK_PACKAGES:= \${BUILDLINK_PACKAGES:N${PKGNOVER}}
+BUILDLINK_PACKAGES+= $PKGNOVER
+
.if !empty(${PKGUPPER}_BUILDLINK3_MK:M+)
EOF
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
+BUILDLINK_PACKAGES+= $PKGNOVER
+BUILDLINK_DEPENDS.$PKGNOVER?= $PKGNOVER>=$PKGVER
EOF
else # [ $blver = 3 ]
sed -f $sedrules <<EOF
-BUILDLINK_DEPENDS.$PKGNOVER+= $PKGNOVER>=$PKGVER
+BUILDLINK_DEPENDS.$PKGNOVER+= $PKGNOVER>=$PKGVER
EOF
fi
sed -f $sedrules <<EOF
-BUILDLINK_PKGSRCDIR.$PKGNOVER?= ../../$CURDIR
+BUILDLINK_PKGSRCDIR.$PKGNOVER?= ../../$CURDIR
EOF
@@ -242,21 +242,24 @@ if [ $blver = 2 ]; then
##
## main buildlink target for this package
##
-echo "BUILDLINK_TARGETS+= ${PKGNOVER}-buildlink"
-echo ""
+sed -f $sedrules <<EOF
+BUILDLINK_TARGETS+= ${PKGNOVER}-buildlink
+
+EOF
##
## buildlink targets for this package
##
-echo "${PKGNOVER}-buildlink: _BUILDLINK_USE"
-echo ""
+sed -f $sedrules <<EOF
+${PKGNOVER}-buildlink: _BUILDLINK_USE
-echo ".endif # ${PKGUPPER}_BUILDLINK2_MK"
+.endif # ${PKGUPPER}_BUILDLINK2_MK
+EOF
else # buildlink 3
sed -f $sedrules <<EOF
-.endif # ${PKGUPPER}_BUILDLINK3_MK
+.endif # ${PKGUPPER}_BUILDLINK3_MK
BUILDLINK_DEPTH:= \${BUILDLINK_DEPTH:S/+\$//}
EOF