summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorBruno Rohee <rohee@cvs.openbsd.org>1999-05-04 18:12:25 +0000
committerBruno Rohee <rohee@cvs.openbsd.org>1999-05-04 18:12:25 +0000
commit4aa0a65b343533bf4beecb6682f4ce72ec190fee (patch)
tree6df1c9e25fbdd8f7ae434e0a0c8123a5e07d720a /share
parente93ccb8543876cf9c757ef93a22e55666403f256 (diff)
USE_LIBTOOL from NetBSD
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk13
1 files changed, 11 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index b3330505ab0..534df980fa0 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
-# $OpenBSD: bsd.port.mk,v 1.88 1999/04/20 18:22:56 espie Exp $
+# $OpenBSD: bsd.port.mk,v 1.89 1999/05/04 18:12:24 rohee Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -28,7 +28,7 @@ OpenBSD_MAINTAINER= marc@OpenBSD.ORG
# NEED_VERSION: we need at least this version of bsd.port.mk for this
# port to build
-FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.88 1999/04/20 18:22:56 espie Exp $$
+FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.89 1999/05/04 18:12:24 rohee Exp $$
.if defined(NEED_VERSION)
_VERSION_REVISION=${FULL_REVISION:M[0-9]*.*}
@@ -182,6 +182,7 @@ _REVISION_NEEDED=${NEED_VERSION:C/.*\.//}
# BROKEN - Port is broken. Set this string to the reason why.
# RESTRICTED - Port is restricted. Set this string to the reason why.
# USE_GMAKE - Says that the port uses gmake.
+# USE_LIBTOOL - Says that the port uses libtool.
#
# XXX: cygnus products do NOT use autoconf for making its main
# configure from configure.in
@@ -202,6 +203,8 @@ _REVISION_NEEDED=${NEED_VERSION:C/.*\.//}
# --enable-shared for those architectures that support
# shared libraries and --disable-shared for architectures
# that do not support shared libraries.
+# LIBTOOL_FLAGS - Pass these flags in ${CONFIGURE} and ${MAKE} environment so
+# to be used as args by libtool.
# CONFIGURE_ENV - Pass these env (shell-like) to configure if
# ${HAS_CONFIGURE} is set.
# SCRIPTS_ENV - Additional environment vars passed to scripts in
@@ -489,6 +492,12 @@ AUTOCONF_DIR?=${WRKSRC}
# missing ?= not an oversight
AUTOCONF_ENV=PATH=${PORTPATH}
.endif
+.if defined(USE_LIBTOOL)
+LIBTOOL?= ${LOCALBASE}/bin/libtool
+BUILD_DEPENDS+= ${LIBTOOL}:${PORTSDIR}/devel/libtool
+CONFIGURE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
+MAKE_ENV+= LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}"
+.endif
.if defined(USE_EGCC)
BUILD_DEPENDS+= ${EGCC}:${PORTSDIR}/lang/egcs-stable
CC=${EGCC}