From owner-freebsd-ports Sun Sep 1 20:10:11 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAB3237B400 for ; Sun, 1 Sep 2002 20:10:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F4B943E42 for ; Sun, 1 Sep 2002 20:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g823A3JU024633 for ; Sun, 1 Sep 2002 20:10:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g823A3rj024632; Sun, 1 Sep 2002 20:10:03 -0700 (PDT) Date: Sun, 1 Sep 2002 20:10:03 -0700 (PDT) Message-Id: <200209020310.g823A3rj024632@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: "Dan Langille" Subject: Re: ports/42300: [PATCH] Allow building when the -f makefile option is specified Reply-To: "Dan Langille" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/42300; it has been noted by GNATS. From: "Dan Langille" To: Tim Vanderhoek Cc: FreeBSD-gnats-submit@FreeBSD.org, wvengen@stack.nl Subject: Re: ports/42300: [PATCH] Allow building when the -f makefile option is specified Date: Sun, 01 Sep 2002 23:03:30 -0400 On 1 Sep 2002 at 20:04, Tim Vanderhoek wrote: > On Sun, Sep 01, 2002 at 07:19:09PM -0400, Dan Langille wrote: > > > > # > > > > PORTNAME= cheatah > > -PORTVERSION= ${MAKE} -V PORTVERSION -f ${MAINDIR}/${MAKEFILE} > > -PORTREVISION= ${MAKE} -V PORTREVISION -f ${MAINDIR}/${MAKEFILE} > > -PORTEPOCH= ${MAKE} -V PORTEPOCH -f ${MAINDIR}/${MAKEFILE} > > +PORTVERSION= ${MAKE} -V PORTVERSION -f ${MAINDIR}/${MKFILE} > > +PORTREVISION= ${MAKE} -V PORTREVISION -f ${MAINDIR}/${MKFILE} > > +PORTEPOCH= ${MAKE} -V PORTEPOCH -f ${MAINDIR}/${MKFILE} > > CATEGORIES= misc > > DISTFILES= > > > > @@ -24,6 +24,7 @@ > > USE_GNOME= gtk12 > > > > MAINDIR= ${.CURDIR}/../sword > > +MKFILE!= /usr/bin/basename ${MAKEFILE} > > Since ${MAINDIR} always refers to another port directory, I > think that it is better in this case to simply do: > > -PORTVERSION= ${MAKE} -V PORTVERSION -f ${MAINDIR}/${MAKEFILE} > -PORTREVISION= ${MAKE} -V PORTREVISION -f ${MAINDIR}/${MAKEFILE} > -PORTEPOCH= ${MAKE} -V PORTEPOCH -f ${MAINDIR}/${MAKEFILE} > +PORTVERSION= ${MAKE} -V PORTVERSION -f ${MAINDIR}/Makefile > +PORTREVISION= ${MAKE} -V PORTREVISION -f ${MAINDIR}/Makefile > +PORTEPOCH= ${MAKE} -V PORTEPOCH -f ${MAINDIR}/Makefile That's great. Thank you. -- Dan Langille I'm looking for a computer job: http://www.freebsddiary.org/dan_langille.php To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message