From owner-freebsd-ports@freebsd.org Tue Oct 18 12:54:22 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6419C155F1 for ; Tue, 18 Oct 2016 12:54:22 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (mail.soaustin.net [192.108.105.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.soaustin.net", Issuer "StartCom Class 2 IV Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE4A96F; Tue, 18 Oct 2016 12:54:22 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from lonesome.com (bones.soaustin.net [192.108.105.22]) by mail.soaustin.net (Postfix) with ESMTPSA id 8B045ABD; Tue, 18 Oct 2016 07:54:15 -0500 (CDT) Date: Tue, 18 Oct 2016 07:54:14 -0500 From: Mark Linimon To: Matthew Seaman Cc: freebsd-ports@freebsd.org Subject: Re: private ports and pkgs versioning Message-ID: <20161018125414.GA18517@lonesome.com> References: <1cba6ef9-89af-c3b8-48df-0cbdc8499b6c@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 12:54:23 -0000 On Tue, Oct 18, 2016 at 08:49:06AM +0100, Matthew Seaman wrote: > Yes, there is a lot of useful stuff in the ports tree to support local > ports or even whole local categories of ports. I can't recall now how I > learned about all this stuff -- it may well have been just be a > combination of reading Makefiles and hints dropped on mailing lists. I > cannot recall a document describing this stuff anywhere. I don't believe that there is one. I'm sure there are N locally-grown solutions out in the wild. We ought to work together to poll people on what they use. As for adding the category, I think there's a quick fix, if you don't care about building INDEX. Add USE_LOCAL_MK=yes to your Makefile invocations, and use the patch below. Note: I haven't tried this yet, so adding the category to ports/Makefile may also be necessary to pacify ports/Mk/bsd.port.subdir.mk (e.g. INDEX.) Index: ports/Mk/bsd.local.mk =================================================================== --- ports/Mk/bsd.local.mk (revision 423944) +++ ports/Mk/bsd.local.mk (working copy) @@ -14,6 +14,8 @@ # time should live. # +VALID_CATEGORIES+= local + .endif # !defined(_POSTMKINCLUDED) && !defined(Local_Pre_Include) .if defined(_POSTMKINCLUDED) && !defined(Local_Post_Include) mcl