Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/mumble chat/mumble: needs python as tool



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f4cdf21f105a
branches:  trunk
changeset: 428457:f4cdf21f105a
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Tue Apr 28 05:46:27 2020 +0000

description:
chat/mumble: needs python as tool

Otherwise configure fails with:

   ...
   Reading /tmp/pkgbuild/2020Q1/chat/mumble/work/mumble-1.3.0/src/mumble/mumble.pro
   Project ERROR: Unable to find the system's Python binary. Some scripts invoked during the Mumble build use Python. You can manually specify it via the MUMBLE_PYTHON environment variable (either 2 
or 3).

diffstat:

 chat/mumble/Makefile |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 4b193916f407 -r f4cdf21f105a chat/mumble/Makefile
--- a/chat/mumble/Makefile      Tue Apr 28 05:29:42 2020 +0000
+++ b/chat/mumble/Makefile      Tue Apr 28 05:46:27 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2020/04/12 08:28:21 adam Exp $
+# $NetBSD: Makefile,v 1.17 2020/04/28 05:46:27 riastradh Exp $
 
 DISTNAME=      mumble-1.3.0
 PKGREVISION=   7
@@ -16,6 +16,9 @@
 USE_LANGUAGES= c c++11
 USE_LIBTOOL=   yes
 
+PYTHON_FOR_BUILD_ONLY= tool
+CONFIGURE_ENV+=                MUMBLE_PYTHON=${PYTHONBIN:Q}
+
 BUILD_TARGET=  release
 
 # C++11
@@ -61,7 +64,7 @@
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
 
 do-configure:
-       cd ${WRKSRC} && ${QTDIR}/bin/qmake -unix -recursive main.pro \
+       cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QTDIR}/bin/qmake -unix -recursive main.pro \
            ${CONFIG_OPTIONS} ${MAKE_ENV} \
            QMAKE_CFLAGS=${CFLAGS:Q} \
            QMAKE_CXXFLAGS=${CXXFLAGS:Q} \
@@ -104,6 +107,7 @@
 .include "../../devel/libltdl/buildlink3.mk"
 .include "../../devel/protobuf/buildlink3.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../lang/python/pyversion.mk"
 .include "../../net/mDNSResponder/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../x11/qt5-qtbase/buildlink3.mk"



Home | Main Index | Thread Index | Old Index