From owner-freebsd-ports@FreeBSD.ORG Tue Dec 11 13:35:25 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74F9D16A417 for ; Tue, 11 Dec 2007 13:35:25 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 18AD113C457 for ; Tue, 11 Dec 2007 13:35:24 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1496517nfb for ; Tue, 11 Dec 2007 05:35:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Dz51Le47TE0tuikrPalYXW/EULP8HN5/+GS93Dig/fw=; b=URlv+q2IKUOV8H4dVCiov/yYlYM31QhC/YqLqMnBdGWK07X6dQWDtMgf6JsysyJBYxLcZr1yvGSBfRyPIOgq56PGXvMYUlD+PlCLlNgebe+xbilDLcdB3vJn5bw6ZvMMn5kHeWINTmdNba/6VfbCG/wJvgxSmDAevo6L6B7HXMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SQ6ucHTejADrDp8OGdyd6RSpSTe02ArekFqW///BgaDNiwXcz2oJA0/4yRemQ2HuHj69wPaxDamCB7h1vgIiM5x8RuqJlrcsEdMk8y3KSb4d28g0oYP8xyU+hFmDpytOAqiAS6/6PtTLaTXIWRYntev5+PM5gcGcnn4B4TSIsoA= Received: by 10.86.99.9 with SMTP id w9mr6700586fgb.1197380116642; Tue, 11 Dec 2007 05:35:16 -0800 (PST) Received: by 10.86.3.20 with HTTP; Tue, 11 Dec 2007 05:35:16 -0800 (PST) Message-ID: <790a9fff0712110535w361308bu3e93de636d0e048e@mail.gmail.com> Date: Tue, 11 Dec 2007 07:35:16 -0600 From: "Scot Hetzel" To: freebsd-ports@freebsd.org In-Reply-To: <20071211103330.GA69937@psconsult.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <459D08CA.7060104@infracaninophile.co.uk> <20070105173738.2f4d86c4@gumby.homeunix.com> <20070105202810.010d4bea@gumby.homeunix.com> <20071211103330.GA69937@psconsult.nl> Subject: Re: DEPENDS -- is it time to remove it? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Dec 2007 13:35:25 -0000 On 12/11/07, Paul Schenkeveld wrote: > So now I have a need for a metaport to depend on another metaport. > Without DEPENDS, how do I accomplish that. Using RUN_DEPENDS with > ${NONEXISTENT} seems not appropriate here, the Porters Handbook says > that this should only be used to pull in source, not to install another > metaport (unless it is already installed) and the effect of using > something like RUN_DEPENDS=${NONEXISTENT}:${PORTSDIR}/lang/php5-extensions > causes make install to try installing php5-extensions even when this port > is already installed. > > The two metaport I need to depend on are php5-extensions and > xorg-drivers and I really don't want to copy the OPTIONS processing of > these ports and maintain that in the future. > For xorg-drivers you simply use: RUN_DEPENDS= ${LOCALBASE}/libdata/xorg/drivers:${PORTSDIR}/x11-drivers/xorg-drivers to get this to work for php5-extensions, you would need to patch the Makefile with: PLIST_FILES= libdata/php5/extensions PLIST_DIR= libdata/php5 do-install: ${MKDIR} ${PREFIX}/libdata/php5 ${TOUCH} ${PREFIX}/libdata/php5/extensions Then you could use: RUN_DEPENDS= ${LOCALBASE}/libdata/php5/extensions:${PORTSDIR}/lang/php5-extensions Scot