From owner-freebsd-ports@FreeBSD.ORG Tue Mar 29 02:28:54 2011 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 F3199106566B for ; Tue, 29 Mar 2011 02:28:54 +0000 (UTC) (envelope-from freebsd-ports@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id ADE3F8FC15 for ; Tue, 29 Mar 2011 02:28:54 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4Oft-0004DE-Ux for freebsd-ports@freebsd.org; Tue, 29 Mar 2011 04:28:53 +0200 Received: from 201.82.184.203 ([201.82.184.203]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 04:28:53 +0200 Received: from kubito by 201.82.184.203 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2011 04:28:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ports@freebsd.org From: Raphael Kubo da Costa Date: Mon, 28 Mar 2011 23:28:39 -0300 Lines: 28 Message-ID: <87r59qwtgo.fsf@gmail.com> References: <20110328183003.0e57297e@atomizer> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 201.82.184.203 User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (berkeley-unix) Cancel-Lock: sha1:eXYQ7Lc8QDcBlqSoRmcbWV1JZwE= Subject: Re: Help with first port Makefile 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, 29 Mar 2011 02:28:55 -0000 Rod Person writes: > If I put: > USE_GNOME= yes > in the Makefile everything builds great, but it checks for dependencies > that aren't needed by Fotoxx. All I want to check is to make sure gtk20 > is installed. I have tried the following, but all of these fail to find > gtk20, even though it is installed on my system. > > LIB_DEPENDS= gtk20:${PORTSDIR}/x11-toolkits/gtk20 > > and > > LIB_DEPENDS= libgtk-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtk20 I suggest taking a look at section 5.7.1 of the porter's handbook, which describes the format for LIB_DEPENDS entries. You almost got it right on the second try -- by taking a quick glance at /usr/ports/Mk/bsd.gnome.mk, you can see this in line 281: gtk20_LIB_DEPENDS= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20 By the way, taking a look at the comments in the beginning of bsd.gnome.mk is also a good idea, as it shows you can use something like USE_GNOME=gtk20 and be done with it.