From be8282119e61155a15efd234da7331bf157bb2b2 Mon Sep 17 00:00:00 2001 From: rh Date: Tue, 14 May 2002 00:05:02 +0000 Subject: Update url2pkg to 1.19. This adds some basic libtool-detection mechanism that will set USE_LIBTOOL accordingly. --- pkgtools/url2pkg/Makefile | 4 ++-- pkgtools/url2pkg/files/url2pkg | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/url2pkg/Makefile b/pkgtools/url2pkg/Makefile index 809ea3425a7..9ebd33d5628 100644 --- a/pkgtools/url2pkg/Makefile +++ b/pkgtools/url2pkg/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.18 2002/03/04 00:53:15 hubertf Exp $ +# $NetBSD: Makefile,v 1.19 2002/05/14 00:05:02 rh Exp $ # -DISTNAME= url2pkg-1.18 +DISTNAME= url2pkg-1.19 CATEGORIES= pkgtools sysutils MASTER_SITES= # Nothing DISTFILES= # Nothing diff --git a/pkgtools/url2pkg/files/url2pkg b/pkgtools/url2pkg/files/url2pkg index 5520f870c42..ec79f69ca0a 100755 --- a/pkgtools/url2pkg/files/url2pkg +++ b/pkgtools/url2pkg/files/url2pkg @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: url2pkg,v 1.19 2002/03/04 00:53:16 hubertf Exp $ +# $NetBSD: url2pkg,v 1.20 2002/05/14 00:05:02 rh Exp $ # # url2pkg # (c) 1999-2002 Hubert Feyrer @@ -113,6 +113,15 @@ if [ -f $configure ]; then fi fi +ltconfig=`echo w*`/$wrksrc/ltconfig +ltmain=`echo w*`/$wrksrc/ltmain.sh +libtool=\${WRKSRC}/libtool +echo checking libtool: $ltconfig +if [ -f $ltconfig -o -f $ltmain ]; then + USE_LIBTOOL=YES + LIBTOOL_OVERRIDE=${libtool} +fi + echo "Fixing up Makefile." ( sed '/^.include/d'