Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jul 2003 15:31:47 +0200 (CEST)
From:      Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/emulators/wine Makefile
Message-ID:  <Pine.BSF.4.56.0307091452180.22140@naos.dbai.tuwien.ac.at>
In-Reply-To: <20030708223311.GA37508@rot13.obsecurity.org>
References:  <200307080902.h6892exF063407@repoman.freebsd.org> <Pine.BSF.4.56.0307090025060.86235@acrux.dbai.tuwien.ac.at> <20030708223311.GA37508@rot13.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Jul 2003, Kris Kennaway wrote:
>> [...] still I would expect the port build machinery to consier
>> ${PREFIX}/lib when looking for libraries.)
> Not every port installs libraries into ${PREFIX}/lib; a lot of ports
> install them elsewhere.  I'm not sure how you propose to accomodate this.

Well, I'm not necessarily shooting for a perfect solution, just trying
to improve. ;-)

If a user wants to put the XY port under ${PREFIX}, I think it's natural
to try to find prerequisites for XY under ${PREFIX} as well, isn't it?

(And note that in this case it wasn't even some special prefix; rather,
the configure script of emulators/wine failed to find libraries which
were in fact present in /usr/local/lib.)


Now I know that you're a busy man ;-), so I cooked up a patch which should
do what I suggested (tested using an unfixed version of emulators/wine).

Gerald

Index: bsd.port.mk
===================================================================
RCS file: /sw/FreeBSD/CVSUP/ports/Mk/bsd.port.mk,v
retrieving revision 1.455
diff -u -3 -p -r1.455 bsd.port.mk
--- bsd.port.mk	6 Jul 2003 23:54:33 -0000	1.455
+++ bsd.port.mk	9 Jul 2003 13:08:10 -0000
@@ -2213,6 +2213,8 @@ CONFIGURE_LOG?=		config.log

 .if defined(GNU_CONFIGURE)
 CONFIGURE_ARGS+=	--prefix=${PREFIX} ${CONFIGURE_TARGET}
+LDFLAGS+=		-L${PREFIX}/lib
+CONFIGURE_ENV+=		LDFLAGS="${LDFLAGS}"
 HAS_CONFIGURE=		yes
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.56.0307091452180.22140>