Date: Mon, 14 Sep 1998 08:59:39 -0500 From: Zach Heilig <zach@gaffaneys.com> To: freebsd-ports@FreeBSD.ORG Subject: ELF style (where to test PORTOBJFORMAT) Message-ID: <19980914085939.A9766@znh.org>
next in thread | raw e-mail | index | archive | help
Typically, in a port makefile, the very last line is .include <bsd.port.mk> Obviously, since <bsd.port.mk> sets PORTOBJFORMAT, you cannot test that variable before the .include, so is it good style to have lines after the .include? Or, is PORTOBJFORMAT not for consumption in the top level makefile. For example, this would theoretically be a fix for fetchmail: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/mail/fetchmail/Makefile,v retrieving revision 1.67 diff -u -r1.67 Makefile --- Makefile 1998/09/13 21:31:51 1.67 +++ Makefile 1998/09/14 13:47:02 @@ -48,3 +48,7 @@ ${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin .include <bsd.port.mk> + +.if ${PORTOBJFORMAT} == "elf" +CONFIGURE_ENV+= LIBS="-lmd" +.endif -- Zach Heilig -- zach@gaffaneys.com A horse without a nose... never wins. (unknown) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980914085939.A9766>