summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv>1998-07-24 01:41:15 +0000
committertv <tv>1998-07-24 01:41:15 +0000
commita446fc1feb830c7c55c744417259b9c1cdb1bcd4 (patch)
tree166d01a43ed0a14c6e7b809862927352df986dd0 /mk
parent36c1fbf00b685ee5847a8a72f45660db22d20585 (diff)
downloadpkgsrc-a446fc1feb830c7c55c744417259b9c1cdb1bcd4.tar.gz
Add the USE_LIBTOOL pkg Makefile option. When set, it adds a build
dependency on libtool, and puts the path to libtool in $LIBTOOL in the configure and make environments.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index f0fb1cb1e2d..2ad76171e67 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.124 1998/07/22 09:18:46 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.125 1998/07/24 01:41:15 tv Exp $
#
# This file is in the public domain.
#
@@ -137,7 +137,11 @@ DEPENDS+= gtexinfo-3.12:${PKGSRCDIR}/devel/gtexinfo
BUILD_DEPENDS+= ${X11BASE}/include/Xm/Xm.h:../../x11/lesstif
RUN_DEPENDS+= ${X11BASE}/include/Xm/Xm.h:../../x11/lesstif
.endif
-
+.if defined(USE_LIBTOOL)
+BUILD_DEPENDS+= ${LOCALBASE}/bin/libtool:../../devel/libtool
+CONFIGURE_ENV+= LIBTOOL=${LOCALBASE}/bin/libtool
+MAKE_ENV+= LIBTOOL=${LOCALBASE}/bin/libtool
+.endif
.if exists(${PKGSRCDIR}/../Makefile.inc)
.include "${PKGSRCDIR}/../Makefile.inc"