svn commit: r473418 - in head/comms/airspy: . files

Yuri Victorovich yuri at FreeBSD.org
Wed Jun 27 05:09:29 UTC 2018


Author: yuri
Date: Wed Jun 27 05:09:28 2018
New Revision: 473418
URL: https://svnweb.freebsd.org/changeset/ports/473418

Log:
  comms/airspy: Fix build due to the MMX-related errors
  
  Fix errors like this:
  error: always_inline function '_mm_loadu_ps' requires target feature 'mmx',
         but would be inlined into function 'x' that is compiled without support for 'mmx'
  
  Reported by:	fallout

Added:
  head/comms/airspy/files/patch-libairspy_src_iqconverter__float.c   (contents, props changed)
Modified:
  head/comms/airspy/Makefile

Modified: head/comms/airspy/Makefile
==============================================================================
--- head/comms/airspy/Makefile	Wed Jun 27 04:39:44 2018	(r473417)
+++ head/comms/airspy/Makefile	Wed Jun 27 05:09:28 2018	(r473418)
@@ -4,6 +4,7 @@ PORTNAME=	airspy
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.0.9-18
 DISTVERSIONSUFFIX=	-gbfb6670
+PORTREVISION=	1
 CATEGORIES=	comms hamradio
 
 MAINTAINER=	yuri at FreeBSD.org
@@ -21,5 +22,12 @@ USE_LDCONFIG=	yes
 
 CMAKE_OFF=	INSTALL_UDEV_RULES
 CMAKE_ARGS=	-DLIBUSB_LIBRARIES="/usr/lib/libusb.so"
+
+OPTIONS_DEFINE_amd64=	SSE
+OPTIONS_DEFINE_i386=	SSE
+OPTIONS_DEFAULT_amd64=	SSE
+OPTIONS_DEFAULT_i386=	SSE
+
+SSE_CFLAGS=	-DFREEBSD_USE_SIMD -msse -msse2 -mfpmath=sse -mmmx
 
 .include <bsd.port.mk>

Added: head/comms/airspy/files/patch-libairspy_src_iqconverter__float.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/airspy/files/patch-libairspy_src_iqconverter__float.c	Wed Jun 27 05:09:28 2018	(r473418)
@@ -0,0 +1,12 @@
+--- libairspy/src/iqconverter_float.c.orig	2018-06-27 04:58:05 UTC
++++ libairspy/src/iqconverter_float.c
+@@ -39,7 +39,9 @@ THE SOFTWARE.
+   #define _inline inline
+   #define FIR_STANDARD
+ #elif defined(__FreeBSD__)
++# if defined(FREEBSD_USE_SIMD)
+   #define USE_SSE2
++# endif
+ #include <immintrin.h>
+   #define _inline inline
+   #define _aligned_free(mem) free(mem)


More information about the svn-ports-all mailing list