From owner-freebsd-questions@FreeBSD.ORG Wed May 20 19:30:06 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EC6EE58D for ; Wed, 20 May 2015 19:30:06 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE4E61B04 for ; Wed, 20 May 2015 19:30:06 +0000 (UTC) Received: from r56.edvax.de (port-92-195-46-95.dynamic.qsc.de [92.195.46.95]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id ECB432778E; Wed, 20 May 2015 21:30:03 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t4KJU3EB002960; Wed, 20 May 2015 21:30:03 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 20 May 2015 21:30:03 +0200 From: Polytropon To: John Johnstone Cc: Jeffry Killen , freebsd-questions@freebsd.org Subject: Re: freetype in ports? Message-Id: <20150520213003.81724640.freebsd@edvax.de> In-Reply-To: <555CDD7B.5060102@tridentusa.com> References: <20150520200456.49f6ee31.freebsd@edvax.de> <50466.128.135.70.2.1432145863.squirrel@cosmo.uchicago.edu> <555CDD7B.5060102@tridentusa.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:30:07 -0000 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" 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, ...