Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2016 07:59:39 +0100
From:      =?UTF-8?Q?Fernando_Herrero_Carr=C3=B3n?= <elferdo@gmail.com>
To:        Chris Inacio <nacho319@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: library porting question - optional python bindings
Message-ID:  <CAMwkeZz3==ErD8t0eYiNr_3W4euRhf%2BbMutqiR7nOnTUny=enA@mail.gmail.com>
In-Reply-To: <CAG_PEeyLw_VS=pL-3J6NZycx9-b_qo9GRaxoeV34i5gq_Cx=bg@mail.gmail.com>
References:  <CAG_PEeyLw_VS=pL-3J6NZycx9-b_qo9GRaxoeV34i5gq_Cx=bg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
El 1 mar. 2016 3:38 a. m., "Chris Inacio" <nacho319@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMwkeZz3==ErD8t0eYiNr_3W4euRhf%2BbMutqiR7nOnTUny=enA>