Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 10:22:27 +0300
From:      Peter Pentchev <roam@orbitel.bg>
To:        Will Andrews <will@physics.purdue.edu>
Cc:        "David W. Chapman Jr." <dwcjr@inethouston.net>, ports@FreeBSD.ORG
Subject:   Re: gcc-devel
Message-ID:  <20010523102227.E12889@ringworld.oblivion.bg>
In-Reply-To: <20010522150151.R19376@casimir.physics.purdue.edu>; from will@physics.purdue.edu on Tue, May 22, 2001 at 03:01:51PM -0500
References:  <017e01c0e2fa$499cfb60$931576d8@inethouston.net> <20010522150151.R19376@casimir.physics.purdue.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 22, 2001 at 03:01:51PM -0500, Will Andrews wrote:
> On Tue, May 22, 2001 at 03:03:36PM -0500, David W. Chapman Jr. wrote:
> > I'm working on the pkg-plist for gcc-devel, how would I put this in the
> > pkg-plist
> > 
> > ./lib/gcc-lib/i386-portbld-freebsd4.3
> 
> change 4.3 to %%OSVER%%
> 
> add to Makefile:
> 
> PLIST_SUB+=	OSVER=${SOME_MAKE_VAR_WITH_4.3}
> 
> How you'd get a string like "4.3" I don't know.  You'd need to do uname
> and some sed magic, methinks.

The GNU_CONFIGURE handling in bsd.port.mk already handles this:

[roam@ringworld:v4 ~/fbsd/ports/misc/pinfo]$ make -XV CONFIGURE_ARGS
--with-readline --prefix=${PREFIX} ${CONFIGURE_TARGET}
[roam@ringworld:v4 ~/fbsd/ports/misc/pinfo]$ make -XV CONFIGURE_TARGET
${MACHINE_ARCH}--freebsd${OSREL}
[roam@ringworld:v4 ~/fbsd/ports/misc/pinfo]$ make -XV OSREL
4.3
[roam@ringworld:v4 ~/fbsd/ports/misc/pinfo]$
i386
[roam@ringworld:v4 ~/fbsd/ports/misc/pinfo]$

So.. something like:

lib/gcc-lib/%%MARCH%%-portbld-freebsd%%OSREL%%

and then in the port Makefile:

PLIST_SUB+=	MARCH=${MACHINE_ARCH}

..because OSREL is in PLIST_SUB by default.

G'luck,
Peter

-- 
This sentence contradicts itself - or rather - well, no, actually it doesn't!

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010523102227.E12889>