From owner-freebsd-ports Fri Aug 2 09:34:20 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA15425 for ports-outgoing; Fri, 2 Aug 1996 09:34:20 -0700 (PDT) Received: from sequent.kiae.su (sequent.kiae.su [193.125.152.6]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA15420 for ; Fri, 2 Aug 1996 09:34:17 -0700 (PDT) Received: by sequent.kiae.su id AA17890 (5.65.kiae-2 ); Fri, 2 Aug 1996 20:23:35 +0400 Received: by sequent.KIAE.su (UUMAIL/2.0); Fri, 2 Aug 96 20:23:33 +0400 Received: (from ache@localhost) by nagual.ru (8.7.5/8.7.3) id UAA00913; Fri, 2 Aug 1996 20:20:52 +0400 (MSD) Message-Id: <199608021620.UAA00913@nagual.ru> Subject: Re: Automatic ports Makefile generator? To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Fri, 2 Aug 1996 20:20:52 +0400 (MSD) Cc: mark@grondar.za, ports@freebsd.org In-Reply-To: <19556.838997657@time.cdrom.com> from "Jordan K. Hubbard" at "Aug 2, 96 07:54:17 am" From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (Andrey A. Chernov) Organization: self X-Class: Fast X-Mailer: ELM [version 2.4ME+ PL22 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > grumble $ makeport > > Makeport - 0.1-ALPHA > > what is the name of your port? hello-1.3 > > directory hello-1.3 found OK > > file hello-1.3.tar.gz found OK > > untarrring hello-1.3.tar.gz............OK > > creating diff.....OK > > removing original sources. > > > > Q&A Time! > > > > Does your port need GNU make? n > > Does your port need imake? n > > Does your port have its own "configure" script? y > > ... > > That sounds pretty reasonable, though again I'd caution you against > making `makeport' a monolithic utility which "knows" which questions > to ask and rather design it as a fairly intelligent "ports variable > description file" and a library of functions for dealing with it. > Then you can write this Q&A sequence as a series of questions, as you > show above, or you can later migrate to some much fancier Tk based > thingie. > > Jordan Jordan, don't be so optimistic... As many ports maintainer I can say, that only basic Makefile template can be autogenerated a bit, patch/configure/script tweaks are real pain in the ass. But... Generating basic Makefile template is void, in real practice I just simple copy another Makefile... -- Andrey A. Chernov http://www.nagual.ru/~ache/