From 70fcebe40f74e6d3eb103cb2f004f9620ad3b7cc Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 23 Apr 2005 15:24:49 +0000 Subject: [PATCH] fiddle a bit with LD_LIBRARY_PATH: allow mixed fake/non-fake. and create a _set_ld_library_path internal, so that bzip2 can be installed only as a dependency. --- infrastructure/mk/bsd.port.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/infrastructure/mk/bsd.port.mk b/infrastructure/mk/bsd.port.mk index 71e25423766..3803156c93b 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.695 2005/04/23 15:12:19 espie Exp $ +# $OpenBSD: bsd.port.mk,v 1.696 2005/04/23 15:24:49 espie 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 $ # @@ -1069,13 +1069,16 @@ _lib_depends_fragment = \ fi .if (${FAKE:L} == "lib" || ${FAKE:L} == "all") && ${USE_FAKE_LIB:L} == "yes" -PORT_LD_LIBRARY_PATH=${DEPBASE}/lib:${X11BASE}/lib:/usr +PORT_LD_LIBRARY_PATH=${DEPBASE}/lib:${LOCALBASE}/lib:${X11BASE}/lib:/usr +_set_ld_library_path=export LD_LIBRARY_PATH=${PORT_LD_LIBRARY_PATH} MAKE_ENV+=LD_LIBRARY_PATH=${PORT_LD_LIBRARY_PATH} CONFIGURE_ENV+=LD_LIBRARY_PATH=${PORT_LD_LIBRARY_PATH} DEPBASE=${DEPDIR}${LOCALBASE} DEPDIR?=${WRKDIR}/dependencies _lib_depends_target=fake .else +PORT_LD_LIBRARY_PATH=${LOCALBASE}/lib:${X11BASE}/lib:/usr +_set_ld_library_path=: DEPBASE=${LOCALBASE} DEPDIR= .endif @@ -1640,6 +1643,7 @@ ${_EXTRACT_COOKIE}: ${_WRKDIR_COOKIE} ${_SYSTRACE_COOKIE} do-extract: # What EXTRACT normally does: @PATH=${PORTPATH}; set -e; cd ${WRKDIR}; \ + ${_set_ld_library_path}; \ for archive in ${EXTRACT_ONLY}; do \ case $$archive in \ ${EXTRACT_CASES} \