[PYTHON]: Howto check dependency PyOpenGL in port's Makefile?

O. Hartmann ohartman at zedat.fu-berlin.de
Sun Apr 20 06:30:05 UTC 2014


On Sun, 20 Apr 2014 09:59:40 +0400
Ruslan Makhmatkhanov <cvs-src at yandex.ru> wrote:

> Hi,
> 
> O. Hartmann wrote on 19.04.2014 18:35:
> >
> > I try to port PyOpenCL and one dependency is PyOpenGL and Mako. For Mako
> > (textproc/py-mako) the check for dependecy seems simple as I can check
> >
> > BUILD_DEPENDS+=	${PYTHONBASE}/bin/mako-render:${PORTSDIR}/textproc/py-mako
> >
> > But how can I check for PyOpenGL? As far as I came, it must be something like
> >
> > ${PYTHON_SITELIBDIR}/PyOpenGL-BLABLA-${PYTHON_PKGNAMEPREFIX}, PYTHON_PKGNAMEPREFIX
> > expand to py27- (in my case) and NOT py2.7- as requested by the PyOpenGL port:
> >
> > /usr/local/lib/python2.7/site-packages/PyOpenGL-3.0.1-py2.7.egg-info/
> >
> > I'd like to have a general solution not nailed down to version 3.0.1 of PyOpenGL and
> > maybe an elegant way to check for the correct file.
> >
> > Is there an official way to do so?
> >
> > Thanks in advance,
> >
> > Oliver
> 
> It's not recommended to refer some particular file from the dependent 
> package, use the package name itself like that:
> 
> ${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako
> ${PYTHON_PKGNAMEPREFIX}opengl>0:${PORTSDIR}/graphics/py-opengl
> 

Thanks.

oh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140420/992852cc/attachment.sig>


More information about the freebsd-ports mailing list