From owner-freebsd-ports@FreeBSD.ORG Sat Mar 31 18:57:42 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 97E3816A402 for ; Sat, 31 Mar 2007 18:57:42 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from cp65.agava.net (cp65.agava.net [89.108.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id 499AA13C43E for ; Sat, 31 Mar 2007 18:57:42 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from clamav by cp65.agava.net with drweb-scanned (Exim 4.44 (FreeBSD)) id 1HXdXO-000804-Vn for freebsd-ports@freebsd.org; Sat, 31 Mar 2007 17:22:35 +0400 Received: from [213.148.29.33] (helo=nexii.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44 (FreeBSD)) id 1HXdXO-0007zj-Rd for freebsd-ports@freebsd.org; Sat, 31 Mar 2007 17:22:34 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id 737AF1703E for ; Sat, 31 Mar 2007 17:22:17 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 488BD4054; Sat, 31 Mar 2007 17:22:29 +0400 (MSD) Date: Sat, 31 Mar 2007 17:22:29 +0400 From: Dmitry Marakasov To: freebsd-ports@freebsd.org Message-ID: <20070331132228.GA20504@hades.panopticon> Mail-Followup-To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp65.agava.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [106 106] / [26 6] X-AntiAbuse: Sender Address Domain - amdmi3.ru X-Source: X-Source-Args: X-Source-Dir: Subject: How to deal with pkg-config .pc files? 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: Sat, 31 Mar 2007 18:57:42 -0000 Hi! I'm creating port that install pkgcofig .pc file, and now I have some questions: 1) Should I add USE_GNOME=pkgconfig line? I don't think it's needed, as the port installs .pc file anyway and doesn't call pkg-config at all. But other ports usually use it, so maybe it should be added for consistency? 2) Should I @dirrmtry libdata/pkgconfig? I'm a bit confosed here. There's libdata/pkgconfig in both X11BASE and LOACLBASE, and neither is removed from pkg-config's plist. That seem to be errorneous: @unexec rmdir %%LOCALBASE%%/lib/pkgconfig 2>/dev/null || true @unexec rmdir %%X11BASE%%/lib/pkgconfig 2>/dev/null || true shouldn't it be: @unexec rmdir %%LOCALBASE%%/libdata/pkgconfig 2>/dev/null || true @unexec rmdir %%X11BASE%%/libdata/pkgconfig 2>/dev/null || true It seems that correct answer is: - use USE_GNOME=pkgconfig - don't use @dirrm libdata/pkgconfig - pkg-config's plist is incorrect Then the last needs to be corrected and maybe Porter's handbook should be updated, as there are ports that don't USE_GNOME=pkgconfig and do @dirrm. Or correct me if I'm wrong. -- Best regards, Dmitry Marakasov mailto:amdmi3@amdmi3.ru