From owner-freebsd-ports@FreeBSD.ORG Tue Dec 11 13:55:55 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 317E016A417 for ; Tue, 11 Dec 2007 13:55:55 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [81.2.252.59]) by mx1.freebsd.org (Postfix) with ESMTP id EABA313C457 for ; Tue, 11 Dec 2007 13:55:54 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id D49ADA4AF9C; Tue, 11 Dec 2007 14:40:24 +0100 (CET) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kphHUgFpqfJl; Tue, 11 Dec 2007 14:40:13 +0100 (CET) Received: from [192.168.2.186] (catv-5063da7a.catv.broadband.hu [80.99.218.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id C081BA4AF79; Tue, 11 Dec 2007 14:40:13 +0100 (CET) Message-ID: <475E933B.30405@FreeBSD.org> Date: Tue, 11 Dec 2007 14:40:11 +0100 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Scot Hetzel References: <459D08CA.7060104@infracaninophile.co.uk> <20070105173738.2f4d86c4@gumby.homeunix.com> <20070105202810.010d4bea@gumby.homeunix.com> <20071211103330.GA69937@psconsult.nl> <790a9fff0712110535w361308bu3e93de636d0e048e@mail.gmail.com> In-Reply-To: <790a9fff0712110535w361308bu3e93de636d0e048e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd ports 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:55:55 -0000 Scot Hetzel escribió: > 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 > Or what about just depending on the specific components of php5-extensions? This would reasult in more lines, but would give you a better way to fine-tune the dependencies and won't result in unnecessarily installed ports for the user. Or do you really need the whole bunch of extensions that php5-extensions offers? -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org