From owner-freebsd-ports Sun May 2 10:23:49 1999 Delivered-To: freebsd-ports@freebsd.org Received: from smtp13.bellglobal.com (smtp13.bellglobal.com [204.101.251.52]) by hub.freebsd.org (Postfix) with ESMTP id 55CCE14E13 for ; Sun, 2 May 1999 10:23:46 -0700 (PDT) (envelope-from vanderh@ecf.toronto.edu) Received: from localhost.nowhere (ppp1679.on.bellglobal.com [206.172.249.143]) by smtp13.bellglobal.com (8.8.5/8.8.5) with ESMTP id NAA05532; Sun, 2 May 1999 13:24:40 -0400 (EDT) Received: (from tim@localhost) by localhost.nowhere (8.9.3/8.9.1) id NAA43603; Sun, 2 May 1999 13:24:09 -0400 (EDT) (envelope-from tim) Date: Sun, 2 May 1999 13:24:09 -0400 From: Tim Vanderhoek To: Christian Weisgerber Cc: freebsd-ports@freebsd.org Subject: Re: Build variables to respect besides CFLAGS? Message-ID: <19990502132408.A43527@mad> References: <7gansn$g6f$1@mips.rhein-neckar.de> <7ghq91$anf$1@mips.rhein-neckar.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <7ghq91$anf$1@mips.rhein-neckar.de>; from Christian Weisgerber on Sun, May 02, 1999 at 05:16:49PM +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, May 02, 1999 at 05:16:49PM +0200, Christian Weisgerber wrote: > > CC= echo "Compiling"; gcc > CFLAGS= ... concatenation of a zillion other variables ... Do you want to keep the "concatenation of a zillion other variables" or not? Either CFLAGS=${CFLAGS} perl -pi.orig -e \ 's/^(CFLAGS=.*)/$1$ENV{CFLAGS}/' or CFLAGS=${CFLAGS} perl -pi.orig -e \ 's/^CFLAGS\=.*/CFLAGS\=$ENV{CFLAGS}/' respectively, should work. Another idea is to try adding .include "my_variable_overrides" at the correct place in the source Makefile. Actually, that's a lot nicer. I'm surprised I never thought of it before. ;-) > - Throwing out the makefiles and the entire building procedure that come > with the source package and putting in BSD makefiles of my own. Ugh. -- This .sig is not innovative, witty, or profund. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message