pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc Update pkgtools/createbuildlink to 3.2. Changes from ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9bc1821d6812
branches: trunk
changeset: 470050:9bc1821d6812
user: jlam <jlam%pkgsrc.org@localhost>
date: Fri Mar 05 19:42:06 2004 +0000
description:
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.
diffstat:
doc/CHANGES | 3 +-
pkgtools/createbuildlink/Makefile | 4 +-
pkgtools/createbuildlink/files/createbuildlink | 45 +++++++++++++------------
3 files changed, 28 insertions(+), 24 deletions(-)
diffs (141 lines):
diff -r e93a1d29cfc1 -r 9bc1821d6812 doc/CHANGES
--- a/doc/CHANGES Fri Mar 05 19:25:06 2004 +0000
+++ b/doc/CHANGES Fri Mar 05 19:42:06 2004 +0000
@@ -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 @@
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 -r e93a1d29cfc1 -r 9bc1821d6812 pkgtools/createbuildlink/Makefile
--- a/pkgtools/createbuildlink/Makefile Fri Mar 05 19:25:06 2004 +0000
+++ b/pkgtools/createbuildlink/Makefile Fri Mar 05 19:42:06 2004 +0000
@@ -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 -r e93a1d29cfc1 -r 9bc1821d6812 pkgtools/createbuildlink/files/createbuildlink
--- a/pkgtools/createbuildlink/files/createbuildlink Fri Mar 05 19:25:06 2004 +0000
+++ b/pkgtools/createbuildlink/files/createbuildlink Fri Mar 05 19:42:06 2004 +0000
@@ -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 @@
#
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 @@
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 @@
##
## 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
Home |
Main Index |
Thread Index |
Old Index