From owner-freebsd-ports@FreeBSD.ORG Mon Jun 14 20:51:17 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0595B16A4CE for ; Mon, 14 Jun 2004 20:51:17 +0000 (GMT) Received: from mail.pinboard.com (mail.pinboard.com [194.209.195.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7719B43D2F for ; Mon, 14 Jun 2004 20:51:15 +0000 (GMT) (envelope-from kurt@pinboard.com) Received: (from uucp@localhost)UUCP id WAA52548 for freebsd-ports@freebsd.org; Mon, 14 Jun 2004 22:50:24 +0200 (CEST) (envelope-from kurt@pinboard.com (kurt@pinboard.com)) (client-IP ) Received: (from kurt@localhost) (8.9.3p2-20030920/8.9.3/20011223-00-KK) id WAA43365; Mon, 14 Jun 2004 22:43:09 +0200 (CEST) (envelope-from kurt (kurt)) (client-IP ) Date: Mon, 14 Jun 2004 22:43:08 +0200 From: pbdlists@pinboard.com To: freebsd-ports@freebsd.org Message-ID: <20040614224308.A39347@pinboard.com> Mail-Followup-To: pbdlists@pinboard.com, freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: RUN_DEPENDS with environment X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2004 20:51:17 -0000 I'm writing a few ports for automating installation of some internal stuff. For one such port, I need to have dns/bind84 installed. So my Makefile says among others: RUN_DEPENDS= ${NOEXISTENT}:${PORTSDIR}/dns/bind84 Fine sofar, the port is built, but I need the bind84 port to replace the system BIND, which is done by setting in the environment, before running make install: PORT_REPLACES_BASE_BIND8= yes PORT_REPLACES_BASE_BIND8_INCLUDES= yes The user should not need to know about these settings, so I want to set these in the Makefile for my port, before the bind84 port is automatically installed, but I just can't figure out how to do this. Just setting them in my own Makefile does not do the trick, neither does something like the following work: pre-fetch: export PORT_REPLACES_BASE_BIND8=yes export PORT_REPLACES_BASE_BIND8_INCLUDES=yes Has anybody done this before and found a workable solution? Kurt