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

--
Regards,
Ruslan

T.O.S. Of Reality
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to