From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 11 06:46:56 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6503216A401 for ; Sun, 11 Feb 2007 06:46:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 3F7AE13C428 for ; Sun, 11 Feb 2007 06:46:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l1B6ktXY030030 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 10 Feb 2007 22:46:55 -0800 X-Auth-Received: from [192.168.10.44] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l1B6ksrF020086 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Sat, 10 Feb 2007 22:46:55 -0800 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <17870.42419.779434.735451@bhuda.mired.org> References: <45CE8BEC.7050404@u.washington.edu> <17870.42419.779434.735451@bhuda.mired.org> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2D763A31-2BAF-4AD5-A256-273CD37EB7A5@u.washington.edu> Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Sat, 10 Feb 2007 22:46:56 -0800 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.752.2) X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.2.10.223434 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: Finding libraries to link with and autoconf resources? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Feb 2007 06:46:56 -0000 On Feb 10, 2007, at 9:12 PM, Mike Meyer wrote: > In <45CE8BEC.7050404@u.washington.edu>, Garrett Cooper > typed: >> Hello, >> This is my first attempt at porting an application, so please >> bear with me. >> I'm trying to port tvtime from Linux to FreeBSD and it's failing >> during >> the configure stage (claims it can't find -lpng when running a link >> test). I know I should probably use the Linux libpng library but I'm >> trying to make the application as native as possible with FreeBSD. >> Anyhow though, I was wondering what directories I should typically >> search when using -L for searching for the png libraries, for >> instance >> (/usr/lib.. ?). > > libpng isn't part of the base system, it's in the ports tree in > graphics/png. Assuming you've got that installed, then use > $LOCALBASE/bin/libpng-config to get the appropriate options. > > If you're creating a port, add "png.5:${PORTSDIR}/graphics/png" to > LIB_DEPENDS. > >