From owner-freebsd-ports@freebsd.org Tue Mar 1 02:51:27 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 D0055AB8A28 for ; Tue, 1 Mar 2016 02:51:27 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B40031B67 for ; Tue, 1 Mar 2016 02:51:26 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id u212rV7p017519 for ; Mon, 29 Feb 2016 18:53:37 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: References: From: "Chris H" Subject: Re: library porting question - optional python bindings Date: Mon, 29 Feb 2016 18:53:37 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <82709c7e29849f965aef1319ce0a9093@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2016 02:51:27 -0000 On Mon, 29 Feb 2016 21:38:40 -0500 Chris Inacio wrote > All, > > I'm trying to build a port definition for a library/application that can > optionally include Python bindings. The library/application generally > depends on other C libraries to exist (ZMQ v3, Protobufs-C) and if you > enable Python support, then you need a Python interpreter plus > Python-protobufs & python zmq. > > Putting an OPTION of Python in the port file is easy. Including the > optional Python dependencies (and presumably targets - but I'm not that far > yet) seems to be a lot more complicated. I haven't found anything that > would tell me how I'm supposed to do that. I have found that I'm supposed > to add pyXX prefixes to the python targets. > > Does anyone know of a similar application/library that I can go look at? > Is there any documentation on how to solve this? Sure. You've read the Porters Handbook; https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ Right? :) Other than that, there's a myriad of ports in the ports tree. Almost all of which have (OPTIONAL) requirements. Your keyword here is; depends. :) HTH --Chris > > thanks, > Chris Inacio