From owner-freebsd-ports Wed Apr 21 3:59:43 1999 Delivered-To: freebsd-ports@freebsd.org Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by hub.freebsd.org (Postfix) with ESMTP id E3D6314D56 for ; Wed, 21 Apr 1999 03:59:27 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from d1o62.telia.com (root@d1o62.telia.com [195.198.198.241]) by mailf.telia.com (8.8.8/8.8.8) with ESMTP id MAA24762 for ; Wed, 21 Apr 1999 12:56:57 +0200 (CEST) Received: from stordatan.telia.com (t1o62p20.telia.com [195.198.198.20]) by d1o62.telia.com (8.8.5/8.8.5) with ESMTP id MAA00881 for ; Wed, 21 Apr 1999 12:56:55 +0200 (CEST) Received: from partitur.se (localhost [127.0.0.1]) by stordatan.telia.com (8.9.2/8.9.1) with ESMTP id MAA00799 for ; Wed, 21 Apr 1999 12:56:33 +0200 (CEST) (envelope-from girgen@partitur.se) Message-ID: <371DAEE1.DE743872@partitur.se> Date: Wed, 21 Apr 1999 12:56:33 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.51 [en] (X11; I; FreeBSD 3.1-STABLE i386) X-Accept-Language: sv,en MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: setting makevars to output from program, HOW? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! 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. Anyway, here's an example to make it clearer: BUILD_DEPENDS= ${APXS_SBIN}/apxs:${PORTSDIR}/www/apache-13 RUN_DEPENDS= ${APXS_HTTPD}:${PORTSDIR}/www/apache-13 ... APXS_SBIN= "`${DIR}/apxs -q SBINDIR`" APXS_HTTPD= "`${DIR}/apxs -q TARGET`" APXS_LIBEXEC= "`${DIR}/apxs -q LIBEXECDIR`" PLIST_SUB= APXS_LIBEXEC=${__APXS_LIBEXEC:S,${PREFIX},,} Now, what happens is make will puke on PLIST_SUB, since the variable will be used for something in bsd.port.mk, and it still contains the backticks etc... It's not evaluated. It will work until post-install, when PLIST_SUB is used: :/usr/ports/www/apache-13: not found php-3.0.7: "/usr/local/sbin/apxs" non-existent -- dependency list incomplete php-3.0.7: "-q" non-existent -- dependency list incomplete php-3.0.7: "TARGET" non-existent -- dependency list incomplete :/usr/ports/www/apache-13: not found and as I try make clean, the line for BUILD_DEPENDS (APXS_SBIN), also fails. /apxs:/usr/ports/www/apache-13 :/usr/ports/www/apache-13: not found So, there must be a way to read and evaluate make variables, right? What am I missing? /Palle 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message