I am trying to learn the "creating a new port (slow method)" and puzzled by 1st sentence of section 4.3 of Porter's Handbook:
So, unpacking the tarball (in private directory), running
I understand a bit about what is happening here. Also, it is understood that when using a
But, it is unclear how to get past the "undefined symbol" error, at this early stage.
Can one apply a simple variant of
Or is there is simple work-around without the machinery?
What is the proper way to proceed? Thanks in advance.
Unpack a copy of the tarball in a private directory and make whatever changes are necessary to get
the port to compile properly under the current version of FreeBSD.
So, unpacking the tarball (in private directory), running
./configure
, and make
, yields an error:
Code:
ld: error: undefined symbol: libiconv
I understand a bit about what is happening here. Also, it is understood that when using a
make
with a bsd.ports.mk in the actual /usr/ports directory one would supply a USES += iconv
.But, it is unclear how to get past the "undefined symbol" error, at this early stage.
Can one apply a simple variant of
USES
without bringing in all of the machinery of the real /usr/ports process?Or is there is simple work-around without the machinery?
What is the proper way to proceed? Thanks in advance.