From owner-freebsd-ports@FreeBSD.ORG Fri Apr 13 19:55:46 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 314A4106566C for ; Fri, 13 Apr 2012 19:55:46 +0000 (UTC) (envelope-from nacho319@gmail.com) Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) by mx1.freebsd.org (Postfix) with ESMTP id D3B8D8FC0C for ; Fri, 13 Apr 2012 19:55:45 +0000 (UTC) Received: by qafi31 with SMTP id i31so5665697qaf.15 for ; Fri, 13 Apr 2012 12:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=VmysVoLnmA3o0feGTy/2f0OA9l0fRZe/IpHcjsuLSMg=; b=Wh4Y2qiIzJx79ZngCasRf7VYA/+wbCzYHMqtAK7JtSEdd/+QZd99eZhg1hU0Zws7KN 5QhSMJPyheQVOVyhxqmkVjcZhGMyghkUqeghGJCVC99VahvFaH6ggX3bs6y7goCeFik4 f1HX3PDFVKxnDfjmpGI0C70hZGM4JaGsxY8q7OfI44me0P+rH6hfTx+in9wAsVCnySmL 6fEtDTkXgwSsveG+b6+ush3Hv90ogj0iI02yc8Tqn6biCm5b7buE0Ha8mVVe7ojivxeE GqwlVN9dcCM+434dRPOeD3oiu4QBridYx+YMCA6UUI14P0jOWX33DDdKHa0qzvxSCPR8 fj4A== Received: by 10.224.173.139 with SMTP id p11mr4497247qaz.14.1334346945163; Fri, 13 Apr 2012 12:55:45 -0700 (PDT) Received: from [192.168.1.22] (pool-96-236-157-241.pitbpa.fios.verizon.net. [96.236.157.241]) by mx.google.com with ESMTPS id gw8sm19201823qab.7.2012.04.13.12.55.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Apr 2012 12:55:44 -0700 (PDT) References: From: Chris Inacio Content-Type: text/plain; charset=us-ascii X-Mailer: iPad Mail (9B176) In-Reply-To: Message-Id: <0E61DE82-499B-47EF-9EEA-F9F3EB166A0A@gmail.com> Date: Fri, 13 Apr 2012 15:55:42 -0400 To: "freebsd-ports@freebsd.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) 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 19:55:46 -0000 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. >>=20 >> 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? >=20 > Describing what a "variant" is, how it works in MacPorts, and what you > are trying to do would help a lot. :) >=20 > The closest guess I could make would be "slave port", but I don't > think that works the same way. >=20 Sorry, you're right.=20 For example, a port of say Emacs could have a variant of X11.=20 So Emacs or Emacs+X11.=20 The X11 variant would (somewhat obviously) include building regular Emacs bu= t also the X11 toolbar etc. while Emacs wouldn't include any X11 features (&= dependencies).=20 On the Mac, we can build universal binaries (PowerPC, ia32, and x86_64), at t= he cost of disk space. So we can build almost any package with the +universa= l variant.=20 Is that a reasonable explanation? Chris > --=20 > Freddie Cash > fjwcash@gmail.com