svn commit: r461081 - head/devel/qross

Dmitry Marakasov amdmi3 at FreeBSD.org
Tue Feb 6 18:07:34 UTC 2018


Author: amdmi3
Date: Tue Feb  6 18:07:33 2018
New Revision: 461081
URL: https://svnweb.freebsd.org/changeset/ports/461081

Log:
  - Add missing dependency on qt corelib
  - Fix dependency on python: require 2.7, fails with python3:
  
  bindings/python/qrosspython/cxx/IndirectPythonInterface.cxx:469:12: error: unknown type name 'DL_IMPORT'
  extern "C" DL_IMPORT(PyTypeObject) PyRange_Type;
             ^
  bindings/python/qrosspython/cxx/IndirectPythonInterface.cxx:469:35: error: expected ';' after top level declarator
  extern "C" DL_IMPORT(PyTypeObject) PyRange_Type;
                                    ^
                                    ;
  bindings/python/qrosspython/cxx/IndirectPythonInterface.cxx:470:34: error: expected function body after function declarator
  extern "C" DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
                                   ^
  bindings/python/qrosspython/cxx/IndirectPythonInterface.cxx:497:44: error: no member named 'PyExc_MemoryErrorInst' in the global namespace; did you mean '_Exc_MemoryErrorInst'?
  PyObject * _Exc_MemoryErrorInst() { return ::PyExc_MemoryErrorInst; }
                                             ^~~~~~~~~~~~~~~~~~~~~~~
                                             _Exc_MemoryErrorInst
  ...
  
  - Fix dependency on py-sip (use flavors to depend on correct version)
  - Switch to opt_CMAKE_BOOL
  
  Approved by:	portmgr blanket

Modified:
  head/devel/qross/Makefile

Modified: head/devel/qross/Makefile
==============================================================================
--- head/devel/qross/Makefile	Tue Feb  6 18:03:59 2018	(r461080)
+++ head/devel/qross/Makefile	Tue Feb  6 18:07:33 2018	(r461081)
@@ -13,7 +13,7 @@ LICENSE=	LGPL20+
 
 USES=		cmake
 USE_LDCONFIG=	yes
-USE_QT4=	designer gui network xml qmake_build uic_build moc_build \
+USE_QT4=	corelib designer gui network xml qmake_build uic_build moc_build \
 		rcc_build script testlib
 USE_GITHUB=	yes
 GH_ACCOUNT=	0xd34df00d
@@ -24,9 +24,9 @@ WRKSRC_SUBDIR=	src
 OPTIONS_DEFINE=	PYTHON
 OPTIONS_SUB=	yes
 PYTHON_DESC=		Python bindings
-PYTHON_CMAKE_ON=	-DENABLE_PYTHON:BOOL=true
-PYTHON_CMAKE_OFF=	-DENABLE_PYTHON:BOOL=false
-PYTHON_BUILD_DEPENDS=	sip:devel/py-sip
+PYTHON_CMAKE_BOOL=	ENABLE_PYTHON
+PYTHON_BUILD_DEPENDS=	${PYTHON_INCLUDEDIR}/sip.h:devel/py-sip@${PY_FLAVOR}
+PYTHON_USES=		python:2.7
 OPTIONS_DEFAULT=PYTHON
 
 post-extract:


More information about the svn-ports-head mailing list