From owner-freebsd-ports@FreeBSD.ORG Sun Apr 20 06:00:03 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 143AB62E for ; Sun, 20 Apr 2014 06:00:03 +0000 (UTC) Received: from forward7l.mail.yandex.net (forward7l.mail.yandex.net [IPv6:2a02:6b8:0:1819::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C120D1BC6 for ; Sun, 20 Apr 2014 06:00:02 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward7l.mail.yandex.net (Yandex) with ESMTP id 7A52CBC0DA3; Sun, 20 Apr 2014 09:59:58 +0400 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id 23B65E40063; Sun, 20 Apr 2014 09:59:58 +0400 (MSK) Received: from unknown (unknown [178.76.234.16]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id KQ1JtTHmZK-xvTu4cJj; Sun, 20 Apr 2014 09:59:57 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 5fd62a0c-7735-42e5-b039-85c9c11fd59d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1397973597; bh=6nCGPR3kNG3q7sDTpQGiUGi0qhQUp5jgnrKfrJsbl48=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=NddJEZzl6AcQ9o5XGLu3kltiObtp4XHK7XIhGL9zflbkHzwhbdOr+t3p8hNpo8RRb ESNmKpWIeMu/sSrVjMUUadH7bL2f2KQFKrQbWoxuTwRn4O9fpj2ZIFV8Kgv+mWMuQP ueNXA/+mgoTTj2z1QZLVvhgtGQERUbDE1N4GO+64= Authentication-Results: smtp13.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <5353624C.6010607@yandex.ru> Date: Sun, 20 Apr 2014 09:59:40 +0400 From: Ruslan Makhmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "O. Hartmann" , FreeBSD Ports Subject: Re: [PYTHON]: Howto check dependency PyOpenGL in port's Makefile? References: <20140419163506.6eb14cca.ohartman@zedat.fu-berlin.de> In-Reply-To: <20140419163506.6eb14cca.ohartman@zedat.fu-berlin.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2014 06:00:03 -0000 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