From owner-freebsd-doc Sun Aug 11 15:16:50 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45D4A37B400 for ; Sun, 11 Aug 2002 15:16:45 -0700 (PDT) Received: from home.24cl.com (174.113.sn.ct.dsl.thebiz.net [216.238.113.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0346543E65 for ; Sun, 11 Aug 2002 15:16:44 -0700 (PDT) (envelope-from MyRaQ@mgm51.com) Received: from notebloat (notebloat.24cl.home [10.0.1.33]) by home.24cl.com (Postfix) with ESMTP id 3360F2B27E for ; Sun, 11 Aug 2002 18:16:43 -0400 (EDT) Message-ID: <200208111816430195.003B3E4C@sentry.24cl.com> References: <200208061115140503.0049FE96@sentry.24cl.com> <20020806152707.GB281@freepuppy.bellavista.cz> <200208070920250907.03BA8FFB@sentry.24cl.com> X-Mailer: Calypso Version 3.30.00.00 (4) Date: Sun, 11 Aug 2002 18:16:43 -0400 Reply-To: myraq@mgm51.com From: "MikeM" To: doc@FreeBSD.org Subject: Fwd: Re: How to pass configure parms into a port Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I was building a port a few days ago, and I stumbled upon the problem of how to pass parameters to the configure phase of the build process. I couldn't find a solution in the Handbook, so I posted a question to the mailing list. I received an answer, and I think it would be helpful to others if the answer made it to the ports section of the handbook. The important piece of the messages below is the excerpt: # make CONFIGURE_ARGS=--disable-wrapping install clean That's the answer I needed. If you have any questions, please let me know. Much thanks. Mike. *********** BEGIN FORWARDED MESSAGE *********** On 8/6/2002 at 5:27 PM MikeM wrote: From: MikeM To: freebsd-questions@FreeBSD.org CC: neuhauser@bellavista.cz Date: Wed, 07 Aug 2002 09:20:24 -0400 Subject: Re: How to pass configure parms into a port >|On 8/6/02 at 5:27 PM Roman Neuhauser wrote: >| >|>> I'd like to build the port of the nano editor and I'd like to disable >|>> wrapping in the editor. If I were building nano from the tarball, I'd >|>> specify the --disable-wrapping parameter on the configure step of the >|>> build. >|>> >|>> But I am at a loss trying to specify that parameter on the make step of >|>> building from a port. I checked the handbook, and I didn't find >|>> anything that looked helpful for this question. >|>> >|>> What obvious thing am I overlooking? >|> >|> /usr/ports/Mk/bsd.port.mk :) seriously though, i think everyone >|> should read it. it's tough as hell, but even if you wrap your head >|> around 1% of it, it'll greatly help you understand ports. >|> >|> now, to answer your question: >|> # make CONFIGURE_ARGS=--disable-wrapping install clean >| ============= >| >| >|Thanks. I had read bsd.port.mk (and I *do* agree with your assessment of >|it :) ). I was not sure of the ramifications of >| >| # make CONFIGURE_ARGS=--disable-wrapping install clean >| >|when there are CONFIGURE_ARGS+=blah...blah..blah in the make files. In >|other words, when I specify CONFIGURE_ARGS= on the make command line, is >|that the initial value of CONFIGURE_ARGS, and all of the CONFIGURE_ARGS+= >|statements in the make files work as expected (i.e., appending to the >|command line value)? Or are the CONFIGURE_ARGS+= values in the make >|file wiped out by the assigment of the command line CONFIGURE_ARGS? >| >| >|Hmmm... as I was typing the above, I decided to try it out... Using the >|/www/apache13 port that was mentioned earlier, I entered the following: >| >|# make -n -V CONFIGURE_ARGS >|--prefix=/usr/local --server-uid=www --server-gid=www >|--with-perl=/usr/bin/perl --with-layout=FreeBSD --without-confadjust >|--enable-module=most --enable-module=auth_db >|--enable-module=mmap_static --disable-module=auth_dbm >|--enable-shared=max >| >| >|# make -n -V CONFIGURE_ARGS CONFIGURE_ARGS=--enable-test >|--enable-test --prefix=/usr/local --server-uid=www --server-gid=www >|--with-perl=/usr/bin/perl --with-layout=FreeBSD --without-confadjust >|--enable-module=most --enable-module=auth_db >|--enable-module=mmap_static --disable-module=auth_dbm >|--enable-shared=max >| >| >|So the command line invocation of CONFIGURE_ARGS seems to work as >|expected. Cool. I'll send a note to the handbook folk, and ask if this >|can be added to the ports section of the handbook. >| >|Thanks for all the help! >| >| >| *********** END FORWARDED MESSAGE *********** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message