Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Feb 2011 15:30:37 -0500
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        Michael Scheidell <michael.scheidell@secnap.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: how to bootstrap libtool?
Message-ID:  <4D52F96D.2000608@FreeBSD.org>
In-Reply-To: <4D52D798.5020204@secnap.com>
References:  <4D52D798.5020204@secnap.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D52F96D.2000608>