Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2021 17:26:12 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 129d59283ffa - main - audio/zita-jclient: Make march=native conditional on the new option NATIVE, and remove -O2
Message-ID:  <202109131726.18DHQCAF058999@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=129d59283ffa0881ecb4e105e7d4a229152218fe

commit 129d59283ffa0881ecb4e105e7d4a229152218fe
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-09-13 17:20:46 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-09-13 17:25:03 +0000

    audio/zita-jclient: Make march=native conditional on the new option NATIVE, and remove -O2
    
    PR:             258480
    Reported by:    mikael (submitted original patch)
---
 audio/zita-jclient/Makefile             |  7 ++++++-
 audio/zita-jclient/files/patch-Makefile | 13 ++++++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/audio/zita-jclient/Makefile b/audio/zita-jclient/Makefile
index 6280ff850a7c..0f27d3c322c3 100644
--- a/audio/zita-jclient/Makefile
+++ b/audio/zita-jclient/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	zita-jclient
 DISTVERSION=	0.4.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	audio
 MASTER_SITES=	https://kokkinizita.linuxaudio.org/linuxaudio/downloads/
 
@@ -23,6 +23,11 @@ PLIST_FILES=	include/zita-jclient.h \
 		lib/libzita-jclient.so \
 		lib/libzita-jclient.so.${PORTVERSION}
 
+OPTIONS_DEFINE=	NATIVE
+
+NATIVE_DESC=		Build with native optimizations (-march=native)
+NATIVE_MAKE_ARGS=	FREEBSD_CXXFLAGS_EXTRA="-march=native"
+
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libzita-jclient.so.${PORTVERSION}
 
diff --git a/audio/zita-jclient/files/patch-Makefile b/audio/zita-jclient/files/patch-Makefile
index c836440fffbc..513373343dac 100644
--- a/audio/zita-jclient/files/patch-Makefile
+++ b/audio/zita-jclient/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig	2021-07-27 18:24:41 UTC
+--- Makefile.orig	2018-08-24 18:41:55 UTC
 +++ Makefile
 @@ -20,7 +20,7 @@
  
@@ -9,6 +9,17 @@
  PREFIX ?= /usr/local
  INCDIR ?= $(PREFIX)/include
  LIBDIR ?= $(PREFIX)/lib$(SUFFIX)
+@@ -31,8 +31,8 @@ VERSION = $(MAJVERS).$(MINVERS)
+ 
+ 
+ CPPFLAGS += -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+-CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
++CXXFLAGS += -Wall -fPIC -ffast-math
++CXXFLAGS += ${FREEBSD_CXXFLAGS_EXTRA}
+ LDFLAGS += 
+ LDLIBS +=
+ 
 @@ -56,7 +56,7 @@ install:	$(ZITA-JCLIENT_MIN)
  	install -d $(DESTDIR)$(LIBDIR)
  	install -m 644 $(ZITA-JCLIENT_H) $(DESTDIR)$(INCDIR)



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