From owner-freebsd-ports@FreeBSD.ORG Fri Mar 23 23:49:48 2012 Return-Path: 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 76CB91065670; Fri, 23 Mar 2012 23:49:48 +0000 (UTC) (envelope-from rflynn@acsalaska.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0D2638FC17; Fri, 23 Mar 2012 23:49:48 +0000 (UTC) Received: from [127.0.0.1] (squeeze.lan.rachie.is-a-geek.net [192.168.2.30]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 3CAE37E857; Fri, 23 Mar 2012 15:49:45 -0800 (AKDT) Message-ID: <4F6D0BF9.2090700@acsalaska.net> Date: Sat, 24 Mar 2012 00:49:13 +0100 From: Mel Flynn User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Michael Scheidell References: <4F6CE755.8020502@FreeBSD.org> <4F6D07C0.5040602@freebsd.org> In-Reply-To: <4F6D07C0.5040602@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Chris Rees , freebsd-ports@freebsd.org Subject: Re: How useful is %%DATADIR%%, anyway? 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: Fri, 23 Mar 2012 23:49:48 -0000 On 3/24/2012 00:31, Michael Scheidell wrote: > > > On 3/23/12 6:27 PM, Chris Rees wrote: >> Almost. PORTDOCS=* in the Makefile basically uses find on ${DOCSDIR} >> and sticks it into TMPPLIST. The advantage is that we then have one >> line in the Makefile instead of up to 2000 in pkg-plist. > > thats frekeing magic.. how did it find the source in $WRKDIR/specs? It doesn't. It looks at ${DOCSDIR}. See add-plist-docs target in Mk/bsd.port.mk. As such the requirement for this to work, is that docs are installed in ${DOCSDIR}. If a port has a valid reason to not install documentation into ${PREFIX}/share/doc/${PORTNAME} then DOCSDIR should be set in the port's Makefile. Same applies to PORTDATA and PORTEXAMPLES and their respective DATADIR and EXAMPLESDIR. I think even more space can be saved if a PORTWWW is introduced, though PORTWWW=* should be used more carefully as WWWDIR can be dynamic. -- Mel