From owner-freebsd-ports Mon Sep 14 13:03:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA05894 for freebsd-ports-outgoing; Mon, 14 Sep 1998 13:03:33 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from k6n1.znh.org (dialup16.gaffaneys.com [208.155.161.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05886 for ; Mon, 14 Sep 1998 13:03:27 -0700 (PDT) (envelope-from zach@gaffaneys.com) Received: (from zach@localhost) by k6n1.znh.org (8.9.1/8.9.1) id NAA09805 for freebsd-ports@freebsd.org; Mon, 14 Sep 1998 13:59:39 GMT (envelope-from zach) Message-ID: <19980914085939.A9766@znh.org> Date: Mon, 14 Sep 1998 08:59:39 -0500 From: Zach Heilig To: freebsd-ports@FreeBSD.ORG Subject: ELF style (where to test PORTOBJFORMAT) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i 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: 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 + +.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