how to bootstrap libtool?

Greg Larkin glarkin at FreeBSD.org
Wed Feb 9 21:09:56 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/9/11 1:06 PM, Michael Scheidell wrote:
> ports/porters experts:
> 
> I have a port that needs libnet11-config.
> 
> need it to set options.
> 
> if libnet11-config is there, the options set correctly.
> 
> LIBNET_CONFIG?=                ${LOCALBASE}/bin/libnet11-config
> LIBNET_CFLAGS!= ${LIBNET_CONFIG} --cflags
> LIBNET_LIBS!=   ${LIBNET_CONFIG} --libs
> LIBNET_INCDIR=  ${LIBNET_CFLAGS:M-I*:S/-I//}
> LIBNET_LIBDIR=  ${LIBNET_LIBS:M-L*:S/-L//}
> 
> if not, well, you can see.
> 
> I can (and do) have libnet>11 as a dependency, but by then, its too late.
> 
> do I need to run makefile TWICE? what does this do to nightly package
> builds?
> 
> how do I bootstrap it to install libnet11 EARLY if its not there?
> 
> 

Hi Michael,

- From what I can tell, /usr/ports/devel/pcre++/Makefile has some
constructs in it that perform a similar function.  Perhaps it will give
you something to go on.

Essentially, you can pull in libnet11-config with a LIB_DEPENDS, then
run the libnet11-config tool to populate CONFIGURE_ENV with CFLAGS and
LDFLAGS.  That should avoid using the != construct.

Hope that helps,
Greg
- -- 
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1S+W0ACgkQ0sRouByUApAWrQCfS+ainJKHH5nw1plnNRFAH/yG
legAoLSh92vgC5QeAb+sSKDTmQFnPtn5
=yY+y
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list