From owner-freebsd-ports@freebsd.org Tue Mar 1 06:59:40 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 B640DABB381 for ; Tue, 1 Mar 2016 06:59:40 +0000 (UTC) (envelope-from elferdo@gmail.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 81BFA1ABE for ; Tue, 1 Mar 2016 06:59:40 +0000 (UTC) (envelope-from elferdo@gmail.com) Received: by mail-io0-x22b.google.com with SMTP id n190so9951273iof.0 for ; Mon, 29 Feb 2016 22:59:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=eHu0xHDytt4PqWwYHxQGqbKpeGcbSyCVxjJmHFYiOWw=; b=uxSTwY8Unhg0aXcW65X+0eP9o/jaszdLSsaXVCx00rJ0ryyLnCMVlDyx4Ppq31FxFc 8PD1A7vlV2YrZ5Q7RagXDeqQcxSBFXYel1un9GcnqptgiKWU4LWfgVG7AWxiVwEdC/wc fFqlvr04NvCYsbnoL3lf+KPpQ9NR44oWgtSilsKSD7/W+px6pKUGPfy/pEcZuCaIka+A hka6wj7lR7Urzex+ldrK+35Eecb4tW+Be0wuaGmPPG+QiUQQeSzeZRrwXBJvdDvILs6X CDmWHHq3bsLCsnNXchnAGpnKqYSq3SeWNE/K95abR4a5kBF+kVWslOwOt3obPaX0VcaI Df8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=eHu0xHDytt4PqWwYHxQGqbKpeGcbSyCVxjJmHFYiOWw=; b=K0WjzijhMZwuKQTWdn+Gz2dJVRmNh7sTnAfkGERuvqjUoh56Q1iATirrDMCJ88d0rY 4PJdYJcbYBlsE83AGL7ytHp9jX3fzYMHjJc+mWDkfAXkJt4gI0ZS5pTo7FA4jWdi9PXg jy6qjY489CZ+R/6YYcNi4Xz+UspEqLVbkP1/ql8Rrq2J9cl8zbZ6Cuv+YRmfmA4bLnVu G+jXi20jgaBwW2UUgHidAsPrAHybmLk47M5tbKv6HYo4rcGD1LdhTw0iwAAvYQ9vaEB6 ElPQXh56zGimZ/1au3d4Vawif75ujqq08QhVn0bkKt+yTSic6fmCV/TQ5JFred2cezJ4 fLGA== X-Gm-Message-State: AG10YOSNb7ku1xxsYbgmR5+izm/74elvV8tKToy+d1kvElcju4BkqhewSGEGxEyvx+4eJTsn5OIYWxpXuZ3HDA== MIME-Version: 1.0 X-Received: by 10.107.129.215 with SMTP id l84mr26434911ioi.47.1456815579838; Mon, 29 Feb 2016 22:59:39 -0800 (PST) Received: by 10.36.206.3 with HTTP; Mon, 29 Feb 2016 22:59:39 -0800 (PST) Received: by 10.36.206.3 with HTTP; Mon, 29 Feb 2016 22:59:39 -0800 (PST) In-Reply-To: References: Date: Tue, 1 Mar 2016 07:59:39 +0100 Message-ID: Subject: Re: library porting question - optional python bindings From: =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= To: Chris Inacio Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 06:59:40 -0000 El 1 mar. 2016 3:38 a. m., "Chris Inacio" escribi=C3= =B3: > > 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 suppose= d > 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? > > thanks, > Chris Inacio > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" multimedia/ffmpeg will optionally include ports providing libraries. There does not seem any implemented in an interpreted language, though I vaguely remember one option pulling in ruby (probably by transition). The idea is that you can depend on a specific file and the port that provides it with the syntax: file_to_depend_on:providing_port. I hope that helps. Cheers, Fernando