From owner-freebsd-ports@FreeBSD.ORG Tue Apr 24 03:42:17 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A81516A402 for ; Tue, 24 Apr 2007 03:42:17 +0000 (UTC) (envelope-from schneecrash@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id C584B13C48A for ; Tue, 24 Apr 2007 03:42:16 +0000 (UTC) (envelope-from schneecrash@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so81824ugh for ; Mon, 23 Apr 2007 20:42:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=EIuLwYTt/HrjGZsomdbwnuax3y3xe9b/RBo8WIAAfLJNxUCaU/YKiU2I0vex1M8dLCYoCPkJFZ6xoOaOndUMHfxcMYCdRILCxO+Mtq1aA1KrwbxSUSeDhmzYwfqci9tvMC2IjguzfyCXeYblD4jWZeN5eWkPOEfluNA7+wALF3A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=G+nbBylwJwLaToy3A3qCzISOJAxlA0ArBCrXzKjGULoGHcoq5Ge2wmDxj8CJ7k1CsDiI9eogilgOqC34xiAwnad/ARulvB2UA+DNBiEOz4P5jSii6+o+HKImUpZk42IE62rez/nFp4FjAngbZtcAcBVRLgcdpLyvNyME0rvTyC4= Received: by 10.82.185.12 with SMTP id i12mr10028996buf.1177384475675; Mon, 23 Apr 2007 20:14:35 -0700 (PDT) Received: by 10.82.162.19 with HTTP; Mon, 23 Apr 2007 20:14:35 -0700 (PDT) Message-ID: <70f41ba20704232014y48499a4dk910fb501f25eec9b@mail.gmail.com> Date: Mon, 23 Apr 2007 20:14:35 -0700 From: snowcrash+freebsd Sender: schneecrash@gmail.com To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 8a730760c00ac33b Subject: setting ENV VARs in make.conf/ports.conf ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2007 03:42:17 -0000 hi, i've installed FreeBSD v6.2-RELEASE, plus 'portconf' & 'ccache' from ports. i've setup, /etc/make.conf ----------------------------- PERL_VER=5.8.8 PERL_VERSION=5.8.8 USE_OPENSSL_PORT=true OPENSSLBASE=/usr/local USE_OPENSSH_PORT=true WITHOUT_X11=yes CPUTYPE?=pentium-mmx CFLAGS= -O2 -pipe COPTFLAGS= -O2 -pipe ## Begin portconf settings ## Do not touch these lines .if !empty(.CURDIR:M/usr/ports*) && exists(/usr/local/libexec/portconf) _PORTCONF!=/usr/local/libexec/portconf .for i in ${_PORTCONF:S/|/ /g} ${i:S/%/ /g} .endfor .endif ## End portconf settings .if !defined(NOCCACHE) CC=/usr/local/libexec/ccache/cc CXX=/usr/local/libexec/ccache/c++ CPP=/usr/local/libexec/ccache/cpp .endif ----------------------------- so that i can turn OFF use of ccache for individual ports. i find that different ports 'respond' only to specific ways of setting the NOCCACHE var. e.g., in, cat /usr/local/etc/ports.conf ----------------------------- *:\ CFLAGS= -O2 -pipe -funroll-loops -s -frename-registers -fomit-frame-pointer | \ CXXFLAGS= -O2 -pipe -funroll-loops -s -frename-registers databases/sqlite3-threads:NOCCACHE=true | \ WITHOUT_DEBUG=true|WITH_DOCS=true|WITH_FTS1=true|WITH_TCLWRAPPER=true|BATCH=Yes sysutils/pflogx:MAKE_ENV= NOCCACHE=true | \ WITH_EXPAT=true|BATCH=Yes ----------------------------- pflogx and sqlite3 require DIFFERENT specifications of NOCCACHE ... swapping formate, e.g., causes the conditional ".if !defined(NOCCACHE)" to fail; meaning, that the CC/CXX/CPP defs pointing to ccahce/* are oncorrectly used. is this expected/normal? i would've expected the same method of defining ENV VAR knobs ... is there a _consistent_ way of turning off NOCCACHE via the ports.conf? thanks!