Date: Mon, 12 Feb 2007 23:11:52 -0500 From: Jim Trigg <jtrigg@spamcop.net> To: ports@freebsd.org Subject: Re: Porting a Linux application to FreeBSD Message-ID: <45D13A88.4020300@spamcop.net> In-Reply-To: <B7AEAD75-598D-4A35-BCE5-CC32EC1056CB@mac.com> References: <Pine.LNX.4.43.0702121435340.10676@hymn08.u.washington.edu> <1171323867.21134.1.camel@localhost> <cb5206420702121639xe11882atc7a37b2125256400@mail.gmail.com> <B7AEAD75-598D-4A35-BCE5-CC32EC1056CB@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45D13A88.4020300>