Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2018 07:28:43 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r472763 - in head/misc: . py-SoapySDR py-SoapySDR/files
Message-ID:  <201806190728.w5J7Sh7X099768@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Tue Jun 19 07:28:42 2018
New Revision: 472763
URL: https://svnweb.freebsd.org/changeset/ports/472763

Log:
  New port: misc/py-SoapySDR: Vendor and platform neutral SDR support library (python binding)

Added:
  head/misc/py-SoapySDR/
  head/misc/py-SoapySDR/Makefile   (contents, props changed)
  head/misc/py-SoapySDR/distinfo   (contents, props changed)
  head/misc/py-SoapySDR/files/
  head/misc/py-SoapySDR/files/patch-CMakeLists.txt   (contents, props changed)
  head/misc/py-SoapySDR/files/patch-python3_CMakeLists.txt   (contents, props changed)
  head/misc/py-SoapySDR/files/patch-python3_FindPython3Interp.cmake   (contents, props changed)
  head/misc/py-SoapySDR/files/patch-python3_FindPython3Libs.cmake   (contents, props changed)
  head/misc/py-SoapySDR/files/patch-python_CMakeLists.txt   (contents, props changed)
  head/misc/py-SoapySDR/pkg-descr   (contents, props changed)
Modified:
  head/misc/Makefile

Modified: head/misc/Makefile
==============================================================================
--- head/misc/Makefile	Tue Jun 19 06:56:12 2018	(r472762)
+++ head/misc/Makefile	Tue Jun 19 07:28:42 2018	(r472763)
@@ -402,6 +402,7 @@
     SUBDIR += pubs
     SUBDIR += py-PyUserInput
     SUBDIR += py-SimpleSoapy
+    SUBDIR += py-SoapySDR
     SUBDIR += py-YABT
     SUBDIR += py-cinder
     SUBDIR += py-colorbrewer

Added: head/misc/py-SoapySDR/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-SoapySDR/Makefile	Tue Jun 19 07:28:42 2018	(r472763)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME=	SoapySDR
+DISTVERSIONPREFIX=	soapy-sdr-
+DISTVERSION=	0.6.1-71
+DISTVERSIONSUFFIX=	-g69c16e9
+CATEGORIES=	misc python 
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Vendor and platform neutral SDR support library (python binding)
+
+LICENSE=	BSL
+LICENSE_FILE=	${WRKSRC}/LICENSE_1_0.txt
+
+BROKEN_FreeBSD_10=	error: redefinition of 'swig::traits<unsigned int>'
+
+BUILD_DEPENDS=	swig3.0:devel/swig30
+LIB_DEPENDS=	libSoapySDR.so:misc/soapysdr
+
+USES=		cmake:outsource python
+USE_GITHUB=	yes
+GH_ACCOUNT=	pothosware
+USE_PYTHON=	flavors
+
+CMAKE_ARGS=	-DFREEBSD_PYTHON_VERSION:INTEGER=${PYTHON_VER:S/.//} \
+		-DFREEBSD_PYTHON_VER2:STRING=${PYTHON_VER}
+CMAKE_OFF=	ENABLE_DOCS
+
+PLIST_FILES=	${PYTHON_SITELIBDIR}/SoapySDR.py \
+		${PYTHON_SITELIBDIR}/_SoapySDR.so
+
+post-install: # Until fixed, just delete libs: https://github.com/pothosware/SoapySDR/issues/169
+	@cd ${STAGEDIR}${PREFIX} && ${RM} -r bin include lib/lib* libdata share
+
+.include <bsd.port.mk>

Added: head/misc/py-SoapySDR/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-SoapySDR/distinfo	Tue Jun 19 07:28:42 2018	(r472763)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1529384177
+SHA256 (pothosware-SoapySDR-soapy-sdr-0.6.1-71-g69c16e9_GH0.tar.gz) = 308ea401054eb52bcce828012393fe143174f7b25d0e04ce189c00713645e1b5
+SIZE (pothosware-SoapySDR-soapy-sdr-0.6.1-71-g69c16e9_GH0.tar.gz) = 119259

Added: head/misc/py-SoapySDR/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-SoapySDR/files/patch-CMakeLists.txt	Tue Jun 19 07:28:42 2018	(r472763)
@@ -0,0 +1,26 @@
+--- CMakeLists.txt.orig	2018-06-19 06:16:03 UTC
++++ CMakeLists.txt
+@@ -121,19 +121,23 @@ add_subdirectory(docs)
+ ########################################################################
+ # Python support (optional)
+ ########################################################################
++if (${FREEBSD_PYTHON_VERSION} LESS 30)
+ message(STATUS "")
+ message(STATUS "#############################################")
+ message(STATUS "## Begin configuration for Python support...")
+ message(STATUS "#############################################")
+ message(STATUS "Enabling optional Python bindings if possible...")
+ add_subdirectory(python)
++endif()
+ 
++if (${FREEBSD_PYTHON_VERSION} GREATER_EQUAL 30)
+ message(STATUS "")
+ message(STATUS "#############################################")
+ message(STATUS "## Begin configuration for Python3 support...")
+ message(STATUS "#############################################")
+ message(STATUS "Enabling optional Python3 bindings if possible...")
+ add_subdirectory(python3)
++endif()
+ 
+ 
+ ########################################################################

Added: head/misc/py-SoapySDR/files/patch-python3_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-SoapySDR/files/patch-python3_CMakeLists.txt	Tue Jun 19 07:28:42 2018	(r472763)
@@ -0,0 +1,11 @@
+--- python3/CMakeLists.txt.orig	2018-05-13 06:02:48 UTC
++++ python3/CMakeLists.txt
+@@ -55,7 +55,7 @@ endif()
+ ########################################################################
+ include(FeatureSummary)
+ include(CMakeDependentOption)
+-cmake_dependent_option(ENABLE_PYTHON3 "Enable python bindings" ON "ENABLE_LIBRARY;SWIG_FOUND;PYTHON3INTERP_FOUND;PYTHON3LIBS_FOUND;PYTHON3_DEBUG_OK;BUILD_PYTHON3" OFF)
++option(ENABLE_PYTHON3 "Enable python bindings" ON)
+ add_feature_info(Python3 ENABLE_PYTHON3 "python3 bindings")
+ if (NOT ENABLE_PYTHON3)
+     return()

Added: head/misc/py-SoapySDR/files/patch-python3_FindPython3Interp.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-SoapySDR/files/patch-python3_FindPython3Interp.cmake	Tue Jun 19 07:28:42 2018	(r472763)
@@ -0,0 +1,20 @@
+--- python3/FindPython3Interp.cmake.orig	2018-06-19 06:38:27 UTC
++++ python3/FindPython3Interp.cmake
+@@ -39,7 +39,7 @@
+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
+ FIND_PROGRAM(PYTHON3_EXECUTABLE
+-  NAMES python3.2mu python3.2m python3.2u python3.2 python3.1 python3.0 python3
++  NAMES python${FREEBSD_PYTHON_VER2}
+   PATHS
+   [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.2\\InstallPath]
+   [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.1\\InstallPath]
+@@ -47,7 +47,7 @@ FIND_PROGRAM(PYTHON3_EXECUTABLE
+   )
+ 
+ FIND_PROGRAM(PYTHON3_DBG_EXECUTABLE
+-  NAMES python3.2dmu python3.2dm python3.2du python3.2d python3.1-dbg python3.0-dbg python3-dbg
++  NAMES python${FREEBSD_PYTHON_VER2}-dbg
+   PATHS
+   [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.2\\InstallPath]
+   [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\3.1\\InstallPath]

Added: head/misc/py-SoapySDR/files/patch-python3_FindPython3Libs.cmake
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-SoapySDR/files/patch-python3_FindPython3Libs.cmake	Tue Jun 19 07:28:42 2018	(r472763)
@@ -0,0 +1,11 @@
+--- python3/FindPython3Libs.cmake.orig	2018-06-19 06:36:21 UTC
++++ python3/FindPython3Libs.cmake
+@@ -46,7 +46,7 @@ INCLUDE(CMakeFindFrameworks)
+ # Search for the python framework on Apple.
+ # CMAKE_FIND_FRAMEWORKS(Python)
+ 
+-FOREACH(_CURRENT_VERSION 3.5 3.4 3.3 3.2 3.1 3.0)
++FOREACH(_CURRENT_VERSION ${FREEBSD_PYTHON_VER2})
+   IF(_CURRENT_VERSION GREATER 3.1)
+       SET(_32FLAGS "m" "u" "mu" "dm" "du" "dmu" "")
+   ELSE()

Added: head/misc/py-SoapySDR/files/patch-python_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-SoapySDR/files/patch-python_CMakeLists.txt	Tue Jun 19 07:28:42 2018	(r472763)
@@ -0,0 +1,11 @@
+--- python/CMakeLists.txt.orig	2018-06-19 07:11:01 UTC
++++ python/CMakeLists.txt
+@@ -121,7 +121,7 @@ set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_FLAGS}
+ ########################################################################
+ include(FeatureSummary)
+ include(CMakeDependentOption)
+-cmake_dependent_option(ENABLE_PYTHON "Enable python bindings" ON "ENABLE_LIBRARY;SWIG_FOUND;PYTHONINTERP_FOUND;PYTHONLIBS_FOUND;PYTHON_DEBUG_OK;PYTHON_VERSION_MATCH" OFF)
++option(ENABLE_PYTHON "Enable python bindings" ON)
+ add_feature_info(Python ENABLE_PYTHON "python bindings v${PYTHON_VERSION_STRING}")
+ if (NOT ENABLE_PYTHON)
+     return()

Added: head/misc/py-SoapySDR/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/misc/py-SoapySDR/pkg-descr	Tue Jun 19 07:28:42 2018	(r472763)
@@ -0,0 +1,4 @@
+Python binding of SoapySDR, an open-source generalized C/C++ API and runtime
+library for interfacing with SDR devices.
+
+WWW: https://github.com/pothosware/SoapySDR



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