From owner-dev-commits-ports-all@freebsd.org Mon Sep 13 17:26:13 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 50C1A67F123; Mon, 13 Sep 2021 17:26:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H7YKx1Yvqz3RJG; Mon, 13 Sep 2021 17:26:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 15A8231D2; Mon, 13 Sep 2021 17:26:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18DHQC2b059000; Mon, 13 Sep 2021 17:26:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18DHQCAF058999; Mon, 13 Sep 2021 17:26:12 GMT (envelope-from git) Date: Mon, 13 Sep 2021 17:26:12 GMT Message-Id: <202109131726.18DHQCAF058999@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 129d59283ffa - main - audio/zita-jclient: Make march=native conditional on the new option NATIVE, and remove -O2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 129d59283ffa0881ecb4e105e7d4a229152218fe Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2021 17:26:13 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=129d59283ffa0881ecb4e105e7d4a229152218fe commit 129d59283ffa0881ecb4e105e7d4a229152218fe Author: Yuri Victorovich AuthorDate: 2021-09-13 17:20:46 +0000 Commit: Yuri Victorovich 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)