From owner-freebsd-ports Wed May 23 0:23:22 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id C8F4E37B424 for ; Wed, 23 May 2001 00:23:18 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 47380 invoked by uid 1000); 23 May 2001 07:22:27 -0000 Date: Wed, 23 May 2001 10:22:27 +0300 From: Peter Pentchev To: Will Andrews Cc: "David W. Chapman Jr." , ports@FreeBSD.ORG Subject: Re: gcc-devel Message-ID: <20010523102227.E12889@ringworld.oblivion.bg> Mail-Followup-To: Will Andrews , "David W. Chapman Jr." , ports@FreeBSD.ORG References: <017e01c0e2fa$499cfb60$931576d8@inethouston.net> <20010522150151.R19376@casimir.physics.purdue.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010522150151.R19376@casimir.physics.purdue.edu>; from will@physics.purdue.edu on Tue, May 22, 2001 at 03:01:51PM -0500 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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