From owner-freebsd-ports@FreeBSD.ORG Tue Apr 12 19:58:27 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA4B716A4CF for ; Tue, 12 Apr 2005 19:58:27 +0000 (GMT) Received: from relay.pair.com (relay00.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 8C2C043D3F for ; Tue, 12 Apr 2005 19:58:26 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 31292 invoked from network); 12 Apr 2005 19:58:25 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 12 Apr 2005 19:58:25 -0000 X-pair-Authenticated: 200.115.214.28 Date: Tue, 12 Apr 2005 16:59:21 -0300 From: Alejandro Pulver To: Scot Hetzel Message-ID: <20050412165921.5f8dcb24@ale.varnet.bsd> In-Reply-To: <790a9fff050412092970ffa0f6@mail.gmail.com> References: <20050411175526.54ffd260@ale.varnet.bsd> <20050411211923.GA9149@xor.obsecurity.org> <20050411184818.494ac35e@ale.varnet.bsd> <20050412005541.58ea5f0c@it.buh.cameradicommercio.ro> <1113260537.89967.48.camel@cream.xbsd.org> <20050411203859.33d6c45f@ale.varnet.bsd> <790a9fff0504120922217ad444@mail.gmail.com> <790a9fff050412092970ffa0f6@mail.gmail.com> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: Ion-Mihai Tetcu cc: Florent Thoumie cc: freebsd-ports@freebsd.org cc: Kris Kennaway Subject: Re: Creating port with options X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 19:58:28 -0000 On Tue, 12 Apr 2005 11:29:23 -0500 Scot Hetzel wrote: > On Apr 12, 2005 11:22 AM, Scot Hetzel wrote: > > On Apr 11, 2005 6:38 PM, Alejandro Pulver > > wrote: > > > Wich is the best way to manage conflictive options inside the > > > OPTIONS variable? > > > > > That should be work, but it may store the bad option in the options > > file. They'll just have to do a make reconfig to correct it. > > > Also don't forget to set PKGNAMESUFFIX for the ports package name > (-server, -x11-client, -ncurses-client). > > > If you could split the port into 3 seperate ports: > > > > *-server > > *-x11-client > > *-ncurses-client > > > > Then you wouldn't need to worry about using the OPTIONS variable. > > > > This way you could make the *-client ports depend on the *-server > > port. > > > > Scot > > Hello, Thank you for your reply. This program is only a virtual machine emulator (a virtual machine used by Core War assembly programs to fight). There is no "server". The SERVER option only means that the program will not have GUI and debugger (strange, isn't it?). I really would like to keep this port as one (not splitted) if possible. I tried to clear the config if it is wrong (with "make()"), with the IGNORE variable. I have problems with IGNORE (and the "make(rmconfig)" I tried did not worked): # ... (OPTIONS is here) .include .if !defined(WITH_SERVER) # Check for incompatible options. .if defined(WITH_X11) && defined(WITH_CURSES) IGNORE= You must choose between WITH_GRAPHX and WITH_X11 .endif # ... .endif # ... .include But the IGNORE instead of cancelling the port build it only cancels the "configure" stage (maybe this is because the inclusion of "bsd.port.pre/post.mk" ?). It can not enter the "src" directory because it has not been extracted. ===> pmars-0.9.2 You must choose between WITH_SERVER, WITH_X11 and WITH_CURSES. ===> Building for pmars-0.9.2 cd: can't cd to /usr/home/ale/Projects/ports/pmars/work/pmars-0.9.2/src *** Error code 2 Stop in /usr/home/ale/Projects/ports/pmars. *** Error code 1 Stop in /usr/home/ale/Projects/ports/pmars. Also is it possible to call the target "rmconfig" (after the IGNORE) to delete the configuration file if the options are wrong? Thanks and Best Regards, Ale