From owner-freebsd-questions@FreeBSD.ORG Wed May 20 19:47:09 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9DDC0C5D for ; Wed, 20 May 2015 19:47:09 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.70.90]) by mx1.freebsd.org (Postfix) with ESMTP id 77EF61D51 for ; Wed, 20 May 2015 19:47:09 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id ACD5FCB8C98; Wed, 20 May 2015 14:47:08 -0500 (CDT) Received: from 128.135.70.2 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Wed, 20 May 2015 14:47:08 -0500 (CDT) Message-ID: <60123.128.135.70.2.1432151228.squirrel@cosmo.uchicago.edu> In-Reply-To: <20150520213003.81724640.freebsd@edvax.de> References: <20150520200456.49f6ee31.freebsd@edvax.de> <50466.128.135.70.2.1432145863.squirrel@cosmo.uchicago.edu> <555CDD7B.5060102@tridentusa.com> <20150520213003.81724640.freebsd@edvax.de> Date: Wed, 20 May 2015 14:47:08 -0500 (CDT) Subject: Re: freetype in ports? From: "Valeri Galtsev" To: "Polytropon" Cc: "John Johnstone" , "Jeffry Killen" , freebsd-questions@freebsd.org Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 19:47:09 -0000 On Wed, May 20, 2015 2:30 pm, Polytropon wrote: > On Wed, 20 May 2015 15:16:11 -0400, John Johnstone wrote: >> On 5/20/15 2:17 PM, Valeri Galtsev wrote: >> > >> > On Wed, May 20, 2015 1:04 pm, Polytropon wrote: >> >> On Wed, 20 May 2015 10:36:17 -0700, Jeffry Killen wrote: >> >>> Hello; >> >>> >> >>> I want to add freetype to system so I can build php5.6x with GD, >> with >> >>> freetype >> >>> ttf font support. >> >>> >> >>> I did >> >>> find /usr/ports *freetype* and no match came up >> >>> >> >>> same with >> >>> find /usr/ports FreeType2 and no match came up >> > >> > I would use unix find comand as follows: >> > >> > find /usr/ports -name \*freetype\* >> > >> > But the suggestion by Mr. Polytropon below is much better (as it >> doesn't >> > care about case to the contrary to find command above... >> >> How about -iname? > > Also possible, but it will find _any_ file (or even directory) > which contains the search pattern. This may be a lot, whereas > the _question_ you want answered is: Where does live > within the ports tree? For this question, I think using "make search" > is the more convenient method, especially because of its output: > Whereas find will list (correctly) found files and directories, > "make search" will give you the port directory and additional > information. In my opinion, this is easier to read. > > By the way, you can turn > > # cd /usr/src > # make search name="freetype" > > into > > # make -C /usr/ports search name="freetype" > Thanks Mr. Polytropon! The moment I saw your suggestion I told myself I will never use unix find command when I need something related to ports make search name="[whatever]" in /usr/ports makes much more sense. You learn something every day! Valeri > and create a shell alias, if you need this more often. :-) > > Even better: If you intend to search for some word(s) in the > ports description, use key= instead of name= to search for > keywords. > > Finally allow me to repeat "man 7 ports" which lists several > other search "queries". > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++