Porting a Linux application to FreeBSD

Chuck Swiger cswiger at mac.com
Tue Feb 13 01:47:59 UTC 2007

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
> ===
> 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...


More information about the freebsd-ports mailing list