Porting a Linux application to FreeBSD
Jim Trigg
jtrigg at spamcop.net
Tue Feb 13 04:31:05 UTC 2007
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
More information about the freebsd-ports
mailing list