From owner-freebsd-ports Wed Jan 30 21:37:37 2002 Delivered-To: freebsd-ports@freebsd.org Received: from chmls20.mediaone.net (chmls20.ne.ipsvc.net [24.147.1.156]) by hub.freebsd.org (Postfix) with ESMTP id 8C75737B402 for ; Wed, 30 Jan 2002 21:37:32 -0800 (PST) Received: from photoniii (h0005025b549e.ne.mediaone.net [66.31.5.199]) by chmls20.mediaone.net (8.11.1/8.11.1) with SMTP id g0V5cKx24076; Thu, 31 Jan 2002 00:38:21 -0500 (EST) Date: Thu, 31 Jan 2002 00:42:23 -0500 From: Tadayuki OKADA To: Mikhail Teterin Cc: Alexander@Leidinger.net, tadayuki.okada@windriver.com, will@csociety.org, freebsd-ports@freebsd.org Subject: Re: cvs commit: ports/graphics/gd Makefile pkg-comment Message-Id: <20020131004223.6f48414b.tadayuki@mediaone.net> In-Reply-To: <200201310401.g0V41kQ13428@aldan.algebra.com> References: <20020130215630.6cf7348f.tadayuki@mediaone.net> <200201310401.g0V41kQ13428@aldan.algebra.com> X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i386--freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 30 Jan 2002 23:01:44 -0500 (EST) Mikhail Teterin wrote: > > Mikhail haven't implemented such feature (i.e. version range check). > > Just put regular expression to LIB_DEPENDS won't work. > > Why would not it? It can be just ``libB'' or ``libB.[2-5]'' or > ``libB.[1-36-9]'' or ``libtcl8?'' (the last example denotes, that any > Tcl release 8.x will do). The regexps are pretty powerful... Have you actually tried it? > > And I don't know if he has such intention. > > Yes, it is pretty easy. The comment can be modified to "Note that lib > can be a regular expression". Please try it first. > > If he create a patch for bsd.port.mk, can rewrite it to use optional > > Iknob. > > I don't understand the need for the knob nor its specification. What > will it look like? A boolean? A list? This is the example for ports/graphics/gd. .if defined(IGNORE_SHLIB_VER) LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \ png:${PORTSDIR}/graphics/png \ freetype:${PORTSDIR}/print/freetype2 .else LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png \ freetype.8:${PORTSDIR}/print/freetype2 .endif > > Besides we don't know how many ports will use this feature, we have > > only one example. > > Plenty. Almost anything, that depends on jpeg, png, pbm, Tcl -- whatever > else is in /usr/local/lib... But it doesn't mean their maintainers want it. > > I don't think portmgr will accept such patch without obvious demand. > > So I think 'ifdef' is only answer for now. > > Build it, and they will come. If other maintainers want it. -- Tadayuki OKADA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message