From owner-freebsd-ports@FreeBSD.ORG Sun Jan 31 14:36:22 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3E7F106568B for ; Sun, 31 Jan 2010 14:36:22 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx1.freebsd.org (Postfix) with ESMTP id 4A6E78FC0A for ; Sun, 31 Jan 2010 14:36:21 +0000 (UTC) Received: by ewy3 with SMTP id 3so6637ewy.33 for ; Sun, 31 Jan 2010 06:36:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=Rsnq4UcKZ8m+MaTibpGaklvYpeRWHvEYnxmTqKHZSBk=; b=pXtfO7GzlPRDjk0iIaM5n5CaZkYqctJvAv92cIzJM2vAhH/wMEDRoTY9BjUQMh4KMm FjEhlzqAGCWzxY78MYbrmfoVJmz53OhYe/fXAeH5Vcs2AH9QNq0gSqSxAnCMrxsPkQlJ PAaMFj2Svh3fuSVz09vSBf5mJxiJeds4Zbm7A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=o4FnwBBXn9Z3UD90PRQic19OIyO49F2qWamo3s4JQREeA7vSXEW77UYwB8WdqA3y1v Nqq8HNNJ16giR/qIzZezo1zcnMwVcSDggqHRbleX5jtz6HMCcfI1keSEKflb0hByy/91 egKjqkw8HVNcAx75Ljh5DAfFeCxS9DP5CPFoA= MIME-Version: 1.0 Received: by 10.216.162.142 with SMTP id y14mr1894430wek.192.1264948581029; Sun, 31 Jan 2010 06:36:21 -0800 (PST) In-Reply-To: <4B6580B7.5040804@gwdg.de> References: <4B61EB16.9090205@gwdg.de> <4B6580B7.5040804@gwdg.de> Date: Sun, 31 Jan 2010 09:36:20 -0500 Message-ID: From: "b. f." To: Rainer Hurling Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports@freebsd.org Subject: Re: Need help with new port math/ggobi X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2010 14:36:22 -0000 On 1/31/10, Rainer Hurling wrote: > I have a last question before I will do send-pr for my new port math/ggobi. > > The original program wants to install 'ggobi.pc' under > > /usr/local/lib/pkgconfig/ > > instead of > > /usr/local/libdata/pkgconfig/ > > I wrote a small patch in Makefile to change the location: > > post-patch: > @${REINPLACE_CMD} -e > 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ > ${WRKSRC}/Makefile.am \ > ${WRKSRC}/Makefile.in > > Do you think this replacement is save enough if someone wants to install > in another place? At first glance, it looks okay, although if you are not remaking Makefile.in, you could probably just patch Makefile.in, and ignore Makefile.am. But since you are already using some components of Gnome, you could instead just add 'gnomehack' to USE_GNOME, which already has some boilerplate code to do this, rather than adding your own custom post-patch target. Also, I think that you can use @dirrm instead of @dirrmtry for etc/xdg/ggobi (although not for etc/xdg). b.