From owner-freebsd-ports@FreeBSD.ORG Thu Nov 18 13:30:01 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 B9D6A106564A for ; Thu, 18 Nov 2010 13:30:01 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 718DA8FC18 for ; Thu, 18 Nov 2010 13:30:01 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for freebsd-ports@freebsd.org with esmtp (envelope-from ) id <1PJ4Yq-0003jw-Lh>; Thu, 18 Nov 2010 14:30:00 +0100 Received: from telesto.geoinf.fu-berlin.de ([130.133.86.198]) by inpost2.zedat.fu-berlin.de (Exim 4.69) for freebsd-ports@freebsd.org with esmtpsa (envelope-from ) id <1PJ4Yq-0002BA-DR>; Thu, 18 Nov 2010 14:30:00 +0100 Message-ID: <4CE52A5B.9040400@zedat.fu-berlin.de> Date: Thu, 18 Nov 2010 14:30:03 +0100 From: "O. Hartmann" Organization: Freie =?ISO-8859-1?Q?Universit=E4t_Berlin?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 130.133.86.198 Subject: How to force port respecting PKGCONFIGDIR? 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: Thu, 18 Nov 2010 13:30:01 -0000 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