From owner-freebsd-ports Thu Jun 14 9:59:54 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id E054137B401 for ; Thu, 14 Jun 2001 09:59:44 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 1081 invoked by uid 1000); 14 Jun 2001 16:58:20 -0000 Date: Thu, 14 Jun 2001 19:58:20 +0300 From: Peter Pentchev To: Jonathan Belson Cc: freebsd-ports@FreeBSD.org Subject: Re: [Q] ports, configure and environmental variables Message-ID: <20010614195820.B729@ringworld.oblivion.bg> Mail-Followup-To: Jonathan Belson , freebsd-ports@FreeBSD.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jonb@innovision-group.com on Thu, Jun 14, 2001 at 01:57:32PM +0100 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 On Thu, Jun 14, 2001 at 01:57:32PM +0100, Jonathan Belson wrote: > Hiya > > > I've run into a problem with a KDE program for which I'm trying to make > a port. After running configure and creating the makefiles, it then > reruns aclocal, automake and autoconf, then reruns the new configure > script. > > Since this time it doesn't have CONFIGURE_ENVs set, the script fails since > it can't find '-lqt', 'moc' etc. If I define $MOC and $LIBQT from the > shell before starting the make process, everything works fine. > > Is there an approved way to define ENVs in a port? The alternative is > to patch the projects build scripts, but I'd rather go for the simpler > approach first. A simpler approach is to add this line: MAKE_ENV+= ${CONFIGURE_ENV} to your port's Makefile :) G'luck, Peter -- What would this sentence be like if it weren't self-referential? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message