From owner-freebsd-ports Mon Sep 14 14:18:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA23519 for freebsd-ports-outgoing; Mon, 14 Sep 1998 14:18:10 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from vader.cs.berkeley.edu (vader.CS.Berkeley.EDU [128.32.38.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23477 for ; Mon, 14 Sep 1998 14:18:01 -0700 (PDT) (envelope-from asami@vader.cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca5-24.ix.netcom.com [209.109.234.24]) by vader.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id OAA03267; Mon, 14 Sep 1998 14:17:32 -0700 (PDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.8.8/8.6.9) id OAA24203; Mon, 14 Sep 1998 14:16:52 -0700 (PDT) Date: Mon, 14 Sep 1998 14:16:52 -0700 (PDT) Message-Id: <199809142116.OAA24203@silvia.hip.berkeley.edu> To: zach@gaffaneys.com CC: freebsd-ports@FreeBSD.ORG In-reply-to: <19980914085939.A9766@znh.org> (message from Zach Heilig on Mon, 14 Sep 1998 08:59:39 -0500) Subject: Re: ELF style (where to test PORTOBJFORMAT) From: asami@FreeBSD.ORG (Satoshi Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * Typically, in a port makefile, the very last line is * * .include * * Obviously, since 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 * + * +.if ${PORTOBJFORMAT} == "elf" * +CONFIGURE_ENV+= LIBS="-lmd" * +.endif Yes, this would be fine. It's generally not recommended to put things after ".include ", 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