From owner-freebsd-ports Wed Apr 21 4: 8:16 1999 Delivered-To: freebsd-ports@freebsd.org Received: from stampede.cs.berkeley.edu (stampede.CS.Berkeley.EDU [128.32.45.124]) by hub.freebsd.org (Postfix) with ESMTP id 05D96153B6 for ; Wed, 21 Apr 1999 04:08:08 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca3-251.ix.netcom.com [209.109.233.251]) by stampede.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id EAA29262; Wed, 21 Apr 1999 04:06:14 -0700 (PDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.2/8.6.9) id EAA94009; Wed, 21 Apr 1999 04:05:34 -0700 (PDT) Date: Wed, 21 Apr 1999 04:05:34 -0700 (PDT) Message-Id: <199904211105.EAA94009@silvia.hip.berkeley.edu> X-Authentication-Warning: silvia.hip.berkeley.edu: asami set sender to asami@cs.berkeley.edu using -f To: girgen@partitur.se Cc: freebsd-ports@freebsd.org In-reply-to: <371DAEE1.DE743872@partitur.se> (message from Palle Girgensohn on Wed, 21 Apr 1999 12:56:33 +0200) Subject: Re: setting makevars to output from program, HOW? From: asami@freebsd.org (Satoshi - Ports Wraith - Asami) References: <371DAEE1.DE743872@partitur.se> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: Palle Girgensohn * I am trying to set make variables to output from programs (using * backticks). It seems that the values are not substituted, but instead * the whole backtick string is inserted. This gives me problem, since I * can't get PLIST_SUB to work if it isn't evalled first. bsd.port.mk * complains that it gets erroneous lines, and it seems they're not enough * quoted. You need to use the "!=" construct for command substitutions in make. :) * APXS_SBIN= "`${DIR}/apxs -q SBINDIR`" APXS_SBIN!= ${DIR}/apxs -q SBINBIR * PS. As you might see, I'd like to obtain info on where apache is * installed, so I can use this to install shared modules as separate * ports. Do you think this is a good idea? DS. However, it is generally not a good idea to use a command outside of the system since there are lots of stuff that don't check the dependencies. Just think "make index", etc. -PW To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message