From owner-freebsd-ports@FreeBSD.ORG Wed Feb 9 21:09:56 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F56D1065672 for ; Wed, 9 Feb 2011 21:09:56 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 35A4A8FC1C for ; Wed, 9 Feb 2011 21:09:56 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1PnGgP-000GP9-0x; Wed, 09 Feb 2011 15:30:46 -0500 Received: from v100.entropy.prv (v100.entropy.prv [192.168.1.100]) by cube.entropy.prv (Postfix) with ESMTP id 795394A83EFC; Wed, 9 Feb 2011 15:30:37 -0500 (EST) Message-ID: <4D52F96D.2000608@FreeBSD.org> Date: Wed, 09 Feb 2011 15:30:37 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Michael Scheidell References: <4D52D798.5020204@secnap.com> In-Reply-To: <4D52D798.5020204@secnap.com> X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: freebsd-ports@freebsd.org Subject: Re: how to bootstrap libtool? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2011 21:09:56 -0000 -----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-----