From owner-freebsd-ports Thu Sep 14 5:20: 6 2000 Delivered-To: freebsd-ports@freebsd.org Received: from sentinel.office1.bg (sentinel.office1.bg [195.24.48.182]) by hub.freebsd.org (Postfix) with SMTP id 78F5037B42C for ; Thu, 14 Sep 2000 05:20:01 -0700 (PDT) Received: (qmail 33850 invoked by uid 1001); 14 Sep 2000 12:14:05 -0000 Date: Thu, 14 Sep 2000 15:14:05 +0300 From: Peter Pentchev To: Maxim Sobolev Cc: Marco van de Voort , freebsd-ports@FreeBSD.org Subject: Re: Freepascal Message-ID: <20000914151405.F32524@ringwraith.office1.bg> References: <20000913201407.4E4E52E802@hermes.tue.nl> <39C0ADA0.EBE7FE9F@FreeBSD.org> <20000914140034.B32524@ringwraith.office1.bg> <39C0B48C.EDDDDC73@FreeBSD.org> <20000914142439.D32524@ringwraith.office1.bg> <39C0BCB6.1AE26094@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <39C0BCB6.1AE26094@FreeBSD.org>; from sobomax@FreeBSD.org on Thu, Sep 14, 2000 at 02:55:35PM +0300 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Sep 14, 2000 at 02:55:35PM +0300, Maxim Sobolev wrote: > Peter Pentchev wrote: > > > On Thu, Sep 14, 2000 at 02:20:45PM +0300, Maxim Sobolev wrote: > > > > > > I'm not sure what you are talking about, but what wrong with the following: > > > > > > OSNAME!= uname -s > > > > > > .if ${OSNAME} == "FreeBSD" > > > blabla > > > .else > > > ... > > > .endif > > > > Weell.. the truth is, I was not wholly aware of '!=' :) But then again.. > > portability? :( '!=' seems to be quite pmake-specific :( > > What type of portability you are thinking of? AFAIK, ".if FOO" stuff don't > compatible with gmake anyway, so you will not loose anything by extending > unportability a bit ;). Actually, I think the original poster was referring exactly to gmake - not in the ports context, but rather later, in a port that defines USE_GMAKE, and then invokes gmake in the source subdirs - that's where determining the arch might be useful. This could be done by checking for some variable that the port itself defines (MAKE_ENV-style), but it would fail if the program were to be made outside of the ports tree, by just uncompressing the archive, and typing ./configure and gmake by hand :( G'luck, Peter -- What would this sentence be like if pi were 3? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message