Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2014 09:59:40 +0400
From:      Ruslan Makhmatkhanov <cvs-src@yandex.ru>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>,  FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: [PYTHON]: Howto check dependency PyOpenGL in port's Makefile?
Message-ID:  <5353624C.6010607@yandex.ru>
In-Reply-To: <20140419163506.6eb14cca.ohartman@zedat.fu-berlin.de>
References:  <20140419163506.6eb14cca.ohartman@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5353624C.6010607>