From owner-svn-ports-all@freebsd.org Wed Jun 27 05:09:29 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6294810007B5; Wed, 27 Jun 2018 05:09:29 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D40194668; Wed, 27 Jun 2018 05:09:29 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D45441E7F6; Wed, 27 Jun 2018 05:09:28 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5R59SoS009161; Wed, 27 Jun 2018 05:09:28 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5R59SGX009158; Wed, 27 Jun 2018 05:09:28 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201806270509.w5R59SGX009158@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Wed, 27 Jun 2018 05:09:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473418 - in head/comms/airspy: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/comms/airspy: . files X-SVN-Commit-Revision: 473418 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2018 05:09:29 -0000 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@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 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 + #define _inline inline + #define _aligned_free(mem) free(mem)