From owner-freebsd-ports@FreeBSD.ORG Mon Dec 8 17:44:57 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33ABC16A4CE for ; Mon, 8 Dec 2003 17:44:57 -0800 (PST) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 9C26A43D21 for ; Mon, 8 Dec 2003 17:44:55 -0800 (PST) (envelope-from eugos@gmx.net) Received: (qmail 1157 invoked by uid 65534); 9 Dec 2003 01:44:54 -0000 Received: from p508476FA.dip.t-dialin.net (EHLO gmx.net) (80.132.118.250) by mail.gmx.net (mp016) with SMTP; 09 Dec 2003 02:44:54 +0100 X-Authenticated: #19965254 Message-ID: <3FD529AA.9060900@gmx.net> Date: Tue, 09 Dec 2003 02:47:22 +0100 From: Eugene Ossintsev User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031019 X-Accept-Language: ru, en MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: x11-toolkits/py-qt: about libGL detection X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2003 01:44:57 -0000 Hello, If x11-toolkits/qt32 is built WITHOUT_OPENGL, during building of x11-toolkits/py-qt two files: qtgl.py and qtgl.pyc are not created. So, those lines in pkg-plist become incorrect: %%PYTHON_SITELIBDIR%%/qtgl.py %%PYTHON_SITELIBDIR%%/qtgl.pyc I'd like to "comment" them as %%GL%%%%PYTHON_SITELIBDIR%%/qtgl.py %%GL%%%%PYTHON_SITELIBDIR%%/qtgl.pyc and add to Makefile the following lines to detect whether libqt-mt is built with libGL or without: WITH_GL!= ldd ${X11BASE}/lib/libqt-mt.so | ${GREP} 'libGL' || ${TRUE} .if !empty(WITH_GL) PLIST_SUB+= GL="" .else PLIST_SUB+= GL="@comment " .endif I've found such a trick is used in some of the ports. But I do not know how correct it is. What could you suggest to do? -- Eugene Ossintsev