Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Sep 1998 14:16:52 -0700 (PDT)
From:      asami@FreeBSD.ORG (Satoshi Asami)
To:        zach@gaffaneys.com
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: ELF style (where to test PORTOBJFORMAT)
Message-ID:  <199809142116.OAA24203@silvia.hip.berkeley.edu>
In-Reply-To: <19980914085939.A9766@znh.org> (message from Zach Heilig on Mon, 14 Sep 1998 08:59:39 -0500)

next in thread | previous 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:

 *  .include <bsd.port.mk>
 * +
 * +.if ${PORTOBJFORMAT} == "elf"
 * +CONFIGURE_ENV+= LIBS="-lmd"
 * +.endif

Yes, this would be fine.  It's generally not recommended to put things
after ".include <bsd.port.mk>", but I think in this case it could be
the only way to get it to work cleanly.

Satoshi

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?199809142116.OAA24203>