From owner-freebsd-ports@FreeBSD.ORG Wed Oct 27 17:01:05 2010 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 A4DBF106564A for ; Wed, 27 Oct 2010 17:01:05 +0000 (UTC) (envelope-from freebsd-lists@christianserving.org) Received: from zion.christianserving.org (zion.christianserving.org [66.128.242.154]) by mx1.freebsd.org (Postfix) with ESMTP id 77C9E8FC1A for ; Wed, 27 Oct 2010 17:01:05 +0000 (UTC) Received: from localhost (localhost.christianserving.org [127.0.0.1]) by zion.christianserving.org (Postfix) with ESMTP id 37F1424FD48 for ; Wed, 27 Oct 2010 11:44:56 -0500 (CDT) X-Virus-Scanned: amavisd-new at christianserving.org X-Spam-Flag: NO X-Spam-Score: -3.956 X-Spam-Level: X-Spam-Status: No, score=-3.956 tagged_above=-9999 required=6 tests=[ALL_TRUSTED=-1.8, AWL=0.443, BAYES_00=-2.599] autolearn=ham Received: from mm-riggsj.peace.daveramsey.com (mail.daveramsey.com [67.216.167.148]) by zion.christianserving.org (Postfix) with ESMTPSA for ; Wed, 27 Oct 2010 11:44:55 -0500 (CDT) From: Jim Riggs Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Oct 2010 11:44:54 -0500 Message-Id: To: freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) Cc: Subject: Multiple subdirectories/sub-builds 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, 27 Oct 2010 17:01:05 -0000 I am working on a new port that has several "sub-builds." That is, the = distfile has several subdirectories, each with its own = configure/make/install. Are there any best practices or suggestions for = dealing with this scenario? I didn't find anything in the handbook, and = list searches didn't turn up anything (though I don't know what exactly = to search for). I know that I could do multiple slave ports and set WRKSRC for each of = them, but I don't really want to clutter up ports/packages with a bunch = of new slave ports which really don't apply standalone. I suppose I could define do-(configure|build|install) to do configure, = make, make install, respectively, in each of the subdirs. This way, = though, I would be losing a lot of the stuff that ports does for free = (configure args, make args, etc.) unless I reproduce parts of = bsd.port.mk. Is there another way to do this gracefully? Am I missing something = obvious? Any suggestions or ideas?