Update url2pkg to 1.19. This adds some basic libtool-detection mechanism

that will set USE_LIBTOOL accordingly.
This commit is contained in:
rh 2002-05-14 00:05:02 +00:00
parent f4cf386602
commit be8282119e
2 changed files with 19 additions and 3 deletions

View file

@ -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

View file

@ -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 <hubert@feyrer.de>
@ -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' <Makefile
@ -121,6 +130,13 @@ echo "Fixing up Makefile."
echo "WRKSRC= $WRKSRC"
fi
if [ "${USE_LIBTOOL}" != "" ]; then
echo "USE_LIBTOOL= $USE_LIBTOOL"
fi
if [ "${LIBTOOL_OVERRIDE}" != "" ]; then
echo "LIBTOOL_OVERRIDE= $LIBTOOL_OVERRIDE"
fi
if [ "${HAS_CONFIGURE}" != "" ]; then
echo "HAS_CONFIGURE= $HAS_CONFIGURE"
fi