From owner-freebsd-questions@FreeBSD.ORG Mon Jul 17 16:19:19 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD8A916A4DA for ; Mon, 17 Jul 2006 16:19:19 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28EE143D53 for ; Mon, 17 Jul 2006 16:19:18 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.138] (helo=anti-virus01-09) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1G2VoT-0005fN-A9; Mon, 17 Jul 2006 17:19:17 +0100 Received: from [82.41.34.175] (helo=[192.168.0.2]) by asmtp-out6.blueyonder.co.uk with esmtp (Exim 4.52) id 1G2VoS-0005a6-4f; Mon, 17 Jul 2006 17:19:16 +0100 Message-ID: <44BBB883.7090501@dial.pipex.com> Date: Mon, 17 Jul 2006 17:19:15 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: mike References: <20060717135455.44183.qmail@web60618.mail.yahoo.com> <44BB9BA5.5050203@dial.pipex.com> <44BBABAD.90600@yahoo.com> In-Reply-To: <44BBABAD.90600@yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: defining dependencies for ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 16:19:19 -0000 mike wrote: > Thanks for the responses. This is /exactly/ why I'm using ports > instead of packages, because I want to have things compiled with my > options. However, the reason for my original post was that I'm having > a hard time customizing this, for java/Eclipse specifically. I try > "make config" but it doesn't show anything. So how do I go about > cutting out or changing some of the dependencies that I don't want if > there are no OPTIONS defined? > And I can't find where these dependencies are even defined in this > case. I grep everything in /usr/ports/java/eclipse and don't see > references to most of the dependencies. Where are they defined if not > in the BUILD_DEPENDS, etc. variables of the Makefile? > What options you get for any port do depend on what the maintainer chose to put in. If there is some option that eclipse itself has, but the port does not, then contacting the maintainer is where I might start. Looking thought the eclipse Makefile you see things like: .if defined(WITH_MOTIF) or .if !defined(WITHOUT_MOZILLA) which tell you what is going to be looked for when the port is compiled. Is that what you meant by dependencies? So if using plain make you say something like "make WITH_MOTIF=1" or "make WITHOUT_MOZILLA=1". Using portupgrade, you can add these to the MAKE_ARGS for java/eclipse in pkgtools.conf and have them used automatically every time you recompile. Or there is BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \ zip:${PORTSDIR}/archivers/zip but usually they are not optional for a reason! What, specifically, were you trying to do? Not every port supports "make config" unfortunately. I haven't done enough port hacking to know how easy it is to add this to any port, but can't believe it's that hard - of course, hard depends on your experience! Comparing to a port which *does* support make config (mozilla, samba3, portupgrade) may help you do it for yourself; the Porters Handbook on the website may also have helpful info. hth, --Alex