cvs commit: ports/emulators/wine Makefile

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Wed Jul 9 06:31:55 PDT 2003


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



More information about the cvs-all mailing list