From owner-freebsd-ports@FreeBSD.ORG Thu Nov 18 14:31:31 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 B5AC2106566B for ; Thu, 18 Nov 2010 14:31:31 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 921E48FC2D for ; Thu, 18 Nov 2010 14:31:31 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1PJ4tz-000EK5-PE; Thu, 18 Nov 2010 08:51:56 -0500 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id EC219476C288; Thu, 18 Nov 2010 08:51:51 -0500 (EST) Message-ID: <4CE52F79.7080306@FreeBSD.org> Date: Thu, 18 Nov 2010 08:51:53 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "O. Hartmann" References: <4CE52A5B.9040400@zedat.fu-berlin.de> In-Reply-To: <4CE52A5B.9040400@zedat.fu-berlin.de> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.2 (/) Cc: freebsd-ports@freebsd.org Subject: Re: How to force port respecting PKGCONFIGDIR? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2010 14:31:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 O. Hartmann wrote: > Hello. > As I realized while trying to port xerces-c version 3.1.1 in an test > environment as suggested in the porters handbook, the software, which is > capable of using the GNU autotoll environment, installs its xerces-c.pc > file into ${PREFIX}/lib/pkgconfig/ and not according the > FreeBSD paradigm into ${PREFIX}/libdata/pkgconfig/. I see three ports > having already installed their obviously mislead *.pc file into > ${PREFIX}/lib/pkgconfig/ in real-world-installations (libvlc.pc, > lapackpp.pc and vlc-plugin.pc) on all of my FreeBSD boxes where these > packages are installed - every other package using pkg-config seems to > have their config files installed at the proper place and therefor > ${PREFIX}/libdata/pkgconfig/ is well populated. > > The question is: how can I trim my port's Makefile to accept and respect > FreeBSD's path? I tried to figure out what directive has to be set and > passed to any kind of environemnt, but the handbook silence this out. I > have a faint clue that all directives tagged *_PC_* has to do something > with this, but in ports I examined which install their pkg-config files > in the proper way I did not find any hint. > > Please set me CC if responding due to I'm not subscriber of the list. > > Thanks. > > Oliver Hi Oliver, Have a look at this patch file for an example of how to do that: http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/GraphicsMagick13/files/patch-Makefile.in?rev=1.7;content-type=text%2Fplain Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFM5S950sRouByUApARAljzAJ9CCNOc5RF0abkE673mkcZ+uXHuogCfYoU5 XiKFBhwCDLd/NorLv/bvUM0= =w5OP -----END PGP SIGNATURE-----