From owner-freebsd-ports@FreeBSD.ORG Tue Feb 13 01:47:59 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B51DB16A406; Tue, 13 Feb 2007 01:47:59 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id 9ABD313C471; Tue, 13 Feb 2007 01:47:59 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay5.apple.com (relay5.apple.com [17.128.113.35]) by mail-out4.apple.com (8.13.8/8.13.8) with ESMTP id l1D11jMQ024981; Mon, 12 Feb 2007 17:01:45 -0800 (PST) Received: from relay5.apple.com (unknown [127.0.0.1]) by relay5.apple.com (Symantec Mail Security) with ESMTP id 504AC29C009; Mon, 12 Feb 2007 17:01:45 -0800 (PST) X-AuditID: 11807123-a03b9bb000000a1d-5b-45d10df91014 In-Reply-To: References: <1171323867.21134.1.camel@localhost> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Mon, 12 Feb 2007 17:01:45 -0800 To: Andrew Pantyukhin X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: youshi10@u.washington.edu, freebsd-ports@freebsd.org, Tom McLaughlin Subject: Re: Porting a Linux application to FreeBSD 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, 13 Feb 2007 01:47:59 -0000 On Feb 12, 2007, at 4:39 PM, Andrew Pantyukhin wrote: >> Linux does not have it's own libpng and neither do we. Most Linux >> distros and us use libpng from libpng.org. I took a quick look at >> the >> current libpng in the ports tree and it appears to have >> png_read_png(). >> With out seeing a Makefile for the ports system and some error >> output it >> is hard to comment as to the specific reason stuff is failing for >> you. > > Yes, but my money says > == > =CPPFLAGS= -I${LOCALBASE}/include > =LDFLAGS= -L${LOCALBASE}/lib > =GNU_CONFIGURE= yes > =CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" > === > will help, it always(x0.999) does :-) It's one > of those things everyone knows about but no one > commits into Mk/* because we enjoy routine so > much. I believe your suggestion is exactly right as to the problem; my only question would be whether it would be better to change the ports Mk infrastructure, or to change the system compiler to add /usr/local/ {include,lib} to the default search paths... -- -Chuck