From owner-freebsd-ports@FreeBSD.ORG Thu Jun 17 16:20:42 2004 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 1E3FE16A4CE for ; Thu, 17 Jun 2004 16:20:42 +0000 (GMT) Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id C64EC43D53 for ; Thu, 17 Jun 2004 16:20:40 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from [61.8.34.53] (ppp2235.dyn.pacific.net.au [61.8.34.53]) i5HG7YNU026209; Fri, 18 Jun 2004 02:07:35 +1000 From: Sam Lawrance To: Cyrille Lefevre In-Reply-To: <04c601c4547b$11cf85e0$7890a8c0@dyndns.org> References: <1087444685.904.16.camel@dirk> <04c601c4547b$11cf85e0$7890a8c0@dyndns.org> Content-Type: text/plain Message-Id: <1087488889.13545.43.camel@dirk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 18 Jun 2004 02:14:51 +1000 Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: pkg-plist and installing under multiple prefixes 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: Thu, 17 Jun 2004 16:20:42 -0000 On Fri, 2004-06-18 at 00:55, Cyrille Lefevre wrote: > "Sam Lawrance" wrote: > > > > I'm porting a binary distributiono of a java application. > > > > Like a number of similar ports, it installs into ${PREFIX}/${PORTNAME}. > > I want to also install gnome application entries, but these are usually > > under ${X11BASE}/share/gnome/applications. > > > > Just doing > > > > PLIST_FILES += ${X11BASE}/share/gnome/applications/xyzzy.desktop > > PLIST_FILES += @cwd %%X11BASE%% > PLIST_FILES += share/gnome/applications/xyzzy.desktop > ... > PLIST_FILES += @cwd %%PREFIX%% Cheers, that got me on the right track. %%PREFIX%% is set to substitute for %D. I don't understand this - but setting the substitution to ${PREFIX} works. Also the substitutions needed to be quoted. This works: PLIST_SUB+= PREFIX=${PREFIX} PLIST_FILES+= "@cwd %%X11BASE%%" PLIST_FILES+= share/gnome/applications/xyzzy.desktop PLIST_FILES+= "@cwd %%PREFIX%%" -Sam