From owner-freebsd-ports@FreeBSD.ORG Mon Oct 15 16:28:56 2007 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 40A5216A419 for ; Mon, 15 Oct 2007 16:28:56 +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 EC25413C45D for ; Mon, 15 Oct 2007 16:28:55 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=nexii.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44 (FreeBSD)) id 1IhSoG-000Ecq-8l for freebsd-ports@freebsd.org; Mon, 15 Oct 2007 20:28:52 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id 12D891708C for ; Mon, 15 Oct 2007 20:30:06 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 32E074321; Mon, 15 Oct 2007 20:30:24 +0400 (MSD) Date: Mon, 15 Oct 2007 20:30:24 +0400 From: Dmitry Marakasov To: freebsd-ports@freebsd.org Message-ID: <20071015163024.GA55552@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.16 (2007-06-09) 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 - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - amdmi3.ru X-Source: X-Source-Args: X-Source-Dir: Subject: DATADIR question 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: Mon, 15 Oct 2007 16:28:56 -0000 Hi! I'm porting silvertree game (from creators of wesnoth), and I have some issues with it's DATADIR. The problem is that port is named silvertree, but it installs data under ${PREFIX}/share/silvertree-rpg. What do I do with DATADIR in this case? 1. Rename the port: Not a best solution, as I'll have to introduce additional variables like DISTNAME, which are overwise correct with their default values. Also, this -rpg suffix may change in future. 2. Leave it as it is: * Will install data to ${PREFIX}/share/silvertree-rpg * Plist: share/silvertree-rpg/somefile * portlint complaints, DATADIR is not used at all 3. Force configure to use DATADIR with adding --datadir to CONFIGURE_ARGS * Will install data to ${PREFIX}/share/silvertree/silvertree-rpg * Plist: %%DATADIR%%/silvertree-rpg/somefile 4. Change DATADIR in port * Will install data to ${PREFIX}/share/silvertree-rpg * Plist: %%DATADIR%%/somefile * DATADIR=${PREFIX}/share/silvertree-rpg I think the correct way is 3 or 4, but I didn't find enough data on DATADIR meaning: should it be user-changeable (i.e. user can install a port without touching PREFIX but changing DATADIR), or is more like a shortcut to sync port's Makefile and plist, so port could change it to actual value and plist should only use %%DATADIR%%? Seems that DATADIR user-changeable is not the case, as it's not even passed to configure by default. So correct way is more like #4, am I right? -- Dmitry A. Marakasov | jabber: amdmi3@jabber.ru amdmi3@amdmi3.ru | http://www.amdmi3.ru