From owner-freebsd-ports@FreeBSD.ORG Wed Jan 4 14:42:45 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55E231065676 for ; Wed, 4 Jan 2012 14:42:45 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 185A38FC15 for ; Wed, 4 Jan 2012 14:42:44 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q04EMXOL025590 for ; Wed, 4 Jan 2012 07:22:33 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q04EMXtn025587 for ; Wed, 4 Jan 2012 07:22:33 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 4 Jan 2012 07:22:33 -0700 (MST) From: Warren Block To: ports@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 04 Jan 2012 07:22:33 -0700 (MST) Cc: Subject: Porter's Handbook: PREFIX and DESTDIR 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: Wed, 04 Jan 2012 14:42:45 -0000 The section on PREFIX and DESTDIR in the Porter's Handbook is unclear and confusing. Following up from a thread in -doc, here are the proposed changes so far. Existing section: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-prefix.html Proposed: http://www.wonkity.com/~wblock/porters-prefix/book.html#PORTING-PREFIX diff: http://www.wonkity.com/~wblock/porters-prefix/patch-porters-prefix.diff Beyond some rewriting and clarification, I removed the mention of LOCALBASE sometimes being /opt, which is covered by saying it can be a custom path. Is there any reason to keep the references to /usr/X11R6? Finally, this paragraph The variable PREFIX can be reassigned in your Makefile or in the user's environment. However, it is strongly discouraged for individual ports to set this variable explicitly in the Makefiles. is not clear, and was rewritten to PREFIX should not be set explicitly in a port's Makefile. Users installing the port may have set PREFIX to a custom location, and the port should respect that setting. Does that capture the intended meaning of the original? Has it left anything out?