From owner-freebsd-ports@FreeBSD.ORG Fri Apr 13 20:01:07 2012 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 65566106566C for ; Fri, 13 Apr 2012 20:01:07 +0000 (UTC) (envelope-from annulen@yandex.ru) Received: from forward17.mail.yandex.net (forward17.mail.yandex.net [IPv6:2a02:6b8:0:1402::2]) by mx1.freebsd.org (Postfix) with ESMTP id CAB2B8FC18 for ; Fri, 13 Apr 2012 20:01:06 +0000 (UTC) Received: from web24.yandex.ru (web24.yandex.ru [95.108.253.233]) by forward17.mail.yandex.net (Yandex) with ESMTP id 61EAB1061768; Sat, 14 Apr 2012 00:01:05 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1334347265; bh=jbPvq81Dqn2wszOLLu/qIEUrRahFnBrfq9uaydtez6s=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=q2wf3nCy1LFRIWSnjSeblRWUTYcWSu5smbpHbM6QKTPyZJTJxiSG+zQv0A/a2K1rF TIZVXYDLf4dG6J9Va8mt97IH7NPoSLt1xaxSRwtH/5mkq5uNx/wil6sG1w+PmCVR3c 0lW0shNVmpNzL0x0kMj2XeFTBCWLMGACZEodKavc= Received: from 127.0.0.1 (localhost.localdomain [127.0.0.1]) by web24.yandex.ru (Yandex) with ESMTP id 1E0EE3AA0016; Sat, 14 Apr 2012 00:01:05 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1334347265; bh=jbPvq81Dqn2wszOLLu/qIEUrRahFnBrfq9uaydtez6s=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=q2wf3nCy1LFRIWSnjSeblRWUTYcWSu5smbpHbM6QKTPyZJTJxiSG+zQv0A/a2K1rF TIZVXYDLf4dG6J9Va8mt97IH7NPoSLt1xaxSRwtH/5mkq5uNx/wil6sG1w+PmCVR3c 0lW0shNVmpNzL0x0kMj2XeFTBCWLMGACZEodKavc= Received: from [212.119.246.21] ([212.119.246.21]) by web24.yandex.ru with HTTP; Sat, 14 Apr 2012 00:01:04 +0400 From: Konstantin Tokarev To: Chris Inacio In-Reply-To: <0E61DE82-499B-47EF-9EEA-F9F3EB166A0A@gmail.com> References: <0E61DE82-499B-47EF-9EEA-F9F3EB166A0A@gmail.com> MIME-Version: 1.0 Message-Id: <866281334347264@web24.yandex.ru> Date: Sat, 14 Apr 2012 00:01:04 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r Cc: "freebsd-ports@freebsd.org" Subject: Re: port variants 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, 13 Apr 2012 20:01:07 -0000 13.04.2012, 23:55, "Chris Inacio" : > On Apr 13, 2012, at 3:39 PM, Freddie Cash wrote: > >> šOn Fri, Apr 13, 2012 at 12:04 PM, Chris Inacio wrote: >>> šI was recently asked to do some FreeBSD ports support work. šI mostly use a >>> šMac and the MacPorts system. šMacPorts has the concept of a variant for a >>> šport, but I can't find the analogue in the FreeBSD system. >>> >>> šDoes the FreeBSD ports system have the concept of a variant? šIf so, can >>> šsomeone point me in the right direction on how to create one? >> šDescribing what a "variant" is, how it works in MacPorts, and what you >> šare trying to do would help a lot. š:) >> >> šThe closest guess I could make would be "slave port", but I don't >> šthink that works the same way. > > Sorry, you're right. > > For example, a port of say Emacs could have a variant of X11. > > So Emacs or Emacs+X11. > > The X11 variant would (somewhat obviously) include building regular Emacs but also the X11 toolbar etc. while Emacs wouldn't include any X11 features (& dependencies). > > On the Mac, we can build universal binaries (PowerPC, ia32, and x86_64), at the cost of disk space. So we can build almost any package with the +universal variant. > > Is that a reasonable explanation? Seems like you need makefile options: http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html -- Regards, Konstantin