Handling port that requires GNU binutils (libiberty, libbfd).

Oliver Eikemeier eikemeier at fillmore-labs.com
Sat Nov 15 17:47:42 PST 2003

Edwin Groothuis wrote:

> On Sat, Nov 15, 2003 at 12:33:07PM +0000, Lewis Thompson wrote:
>>I'm attempting to create a port for KMD (Komodo Manchester Debugger) but
>>it requires libiberty and libbfd, in addition to their include files.
>>These are all part of binutils and as such are available in
>>/usr/obj/usr/src/gnu/usr.bin/binutils.  However, they are not much use
>>to me there.
> You could copy them into your work directory in the post-fetch phase
> of the fetch phase of the port.

Nope, WRKDIR gets deleted on do-extract, never assume WRKDIR or WRKSRC
exists before post-extract.

The complied objects do not have to exist, and if they do not necessarily
in /usr/obj/usr/src/gnu/usr.bin/binutils.

Also be careful with WRKDIR, bsd.port.mk uses it for its own purposes.
Use WRKSRC or a subdirectory of WRKDIR whenever possible.


More information about the freebsd-ports mailing list