From owner-freebsd-ports@FreeBSD.ORG Tue Feb 13 04:31:05 2007 Return-Path: X-Original-To: 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 0F90C16A41F for ; Tue, 13 Feb 2007 04:31:05 +0000 (UTC) (envelope-from jtrigg@spamcop.net) Received: from argent.heraldsnet.org (argent.heraldsnet.org [64.83.41.80]) by mx1.freebsd.org (Postfix) with ESMTP id 7E38C13C46B for ; Tue, 13 Feb 2007 04:31:04 +0000 (UTC) (envelope-from jtrigg@spamcop.net) Received: from [192.168.1.16] (unknown [192.168.1.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by argent.heraldsnet.org (Postfix) with ESMTP id 2837A51B for ; Mon, 12 Feb 2007 23:11:53 -0500 (EST) Message-ID: <45D13A88.4020300@spamcop.net> Date: Mon, 12 Feb 2007 23:11:52 -0500 From: Jim Trigg User-Agent: Thunderbird 1.5.0.9 (X11/20070104) MIME-Version: 1.0 To: ports@freebsd.org References: <1171323867.21134.1.camel@localhost> In-Reply-To: Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: 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 04:31:05 -0000 Chuck Swiger wrote: > 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... Adding ${PREFIX}/{include,lib} would be significantly better than hardcoding /usr/local/... Jim