From owner-freebsd-ports@FreeBSD.ORG Thu Jun 17 17:01:12 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 E3F4B16A4CE for ; Thu, 17 Jun 2004 17:01:12 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-50-15.dynamic.qsc.de [212.202.50.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F56D43D48 for ; Thu, 17 Jun 2004 17:01:10 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from [172.16.0.11] (helo=localhost) by fillmore.dyndns.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34 (FreeBSD)) id 1Bb0Fd-0006J6-TP; Thu, 17 Jun 2004 19:00:36 +0200 Date: Thu, 17 Jun 2004 19:00:32 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) To: Sam Lawrance From: Oliver Eikemeier In-Reply-To: <1087488889.13545.43.camel@dirk> Message-Id: Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: ports@freebsd.org cc: Cyrille Lefevre 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 17:01:13 -0000 Am Donnerstag den, 17. Juni 2004, um 18:14, schrieb Sam Lawrance: > 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%%" > You shouldn't do things like this in the Makefile. Use a real pkg-plist. -Oliver