diff --git a/infrastructure/mk/bsd.port.mk b/infrastructure/mk/bsd.port.mk index 44e75a37258..fe7e94b7fd8 100644 --- a/infrastructure/mk/bsd.port.mk +++ b/infrastructure/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Makefile; tab-width: 4; -*- # ex:ts=4 sw=4 filetype=make: -# $OpenBSD: bsd.port.mk,v 1.971 2009/10/13 14:39:23 landry Exp $ +# $OpenBSD: bsd.port.mk,v 1.972 2009/10/14 13:01:03 steven Exp $ # $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $ # $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $ # @@ -320,9 +320,14 @@ MAKE_PROGRAM = ${MAKE} USE_LIBTOOL ?= No _lt_libs = -.if ${USE_LIBTOOL:L} == "yes" +.if ${USE_LIBTOOL:L} != "no" +. if ${USE_LIBTOOL:L} == "gnu" LIBTOOL ?= ${DEPBASE}/bin/libtool BUILD_DEPENDS += ::devel/libtool +. else +LIBTOOL ?= ${DEPBASE}/bin/libtool +BUILD_DEPENDS += ::devel/libtool +. endif CONFIGURE_ENV += LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" ${_lt_libs} MAKE_ENV += LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" ${_lt_libs} MAKE_FLAGS += LIBTOOL="${LIBTOOL} ${LIBTOOL_FLAGS}" ${_lt_libs}