From owner-freebsd-ports@FreeBSD.ORG Fri Jun 18 02:22:28 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 F2A9016A4CE for ; Fri, 18 Jun 2004 02:22:27 +0000 (GMT) Received: from hourri.hittite.isp.9tel.net (hourri.hittite.isp.9tel.net [62.62.156.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6946443D4C for ; Fri, 18 Jun 2004 02:22:27 +0000 (GMT) (envelope-from clefevre-lists@9online.fr) Received: from pc2k (28-216-118-80.kaptech.net [80.118.216.28]) by hourri.hittite.isp.9tel.net (Postfix) with SMTP id 06C99157568; Fri, 18 Jun 2004 05:07:08 +0200 (CEST) Message-ID: <078d01c454db$101f8a50$7890a8c0@dyndns.org> From: "Cyrille Lefevre" To: "Sam Lawrance" , "Oliver Eikemeier" References: <1087524736.905.5.camel@dirk> Date: Fri, 18 Jun 2004 04:22:10 +0200 Organization: ACME MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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: Fri, 18 Jun 2004 02:22:28 -0000 "Sam Lawrance" wrote: > On Fri, 2004-06-18 at 03:00, Oliver Eikemeier wrote: [snip] > I do have a real pkg-plist, but the lines above are used to add the > gnome links conditionally. > > Is there another way? (It may be a moot point if I just have the port > install them unconditionally). the usual way is something like that : in Makefile .if defined(HAVE_SOMETHING) PLIST_SUB+= SOMETHING="" .else PLIST_SUB+= SOMETHING="@comment " .endif and in pkg-plist @comment in your case, cd to ${X11BASE} @cwd %%X11BASE%% %%SOMETHING%%share/gnome/applications/xyzzy.desktop @comment then go back to ${PREFIX} @cwd %%PREFIX%% Cyrille Lefevre. -- mailto:clefevre-lists@9online.fr