Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2018 02:03:17 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483634 - head/audio/zita-resampler/files
Message-ID:  <201811010203.wA123Hf5002535@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Thu Nov  1 02:03:17 2018
New Revision: 483634
URL: https://svnweb.freebsd.org/changeset/ports/483634

Log:
  There was one more case of -march=native that was missed by the
  previous patch.  Rename patch-Makefile to patch-source_Makefile
  and add patch-apps_Makefile.  There is not enough history of the
  former to be worth a repomove IMHO.
  
  Pointy hat to:	linimon

Added:
  head/audio/zita-resampler/files/patch-apps_Makefile   (contents, props changed)
  head/audio/zita-resampler/files/patch-source_Makefile   (contents, props changed)
Deleted:
  head/audio/zita-resampler/files/patch-Makefile

Added: head/audio/zita-resampler/files/patch-apps_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/zita-resampler/files/patch-apps_Makefile	Thu Nov  1 02:03:17 2018	(r483634)
@@ -0,0 +1,10 @@
+--- ../apps/Makefile.orig	2018-10-31 16:04:18.214221199 +0000
++++ ../apps/Makefile	2018-10-31 16:04:25.590905029 +0000
+@@ -25,7 +25,6 @@
+ VERSION = 1.6.0
+ CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\"
+ CXXFLAGS += -O2  -ffast-math -Wall
+-CXXFLAGS += -march=native
+ 
+ 
+ all:	zresample zretune zresample.1.gz zretune.1.gz

Added: head/audio/zita-resampler/files/patch-source_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/zita-resampler/files/patch-source_Makefile	Thu Nov  1 02:03:17 2018	(r483634)
@@ -0,0 +1,55 @@
+--- Makefile.orig	2018-08-24 18:41:47 UTC
++++ Makefile
+@@ -1,7 +1,7 @@
+ # ----------------------------------------------------------------------------
+ #
+ #  Copyright (C) 2006-2018 Fons Adriaensen <fons@linuxaudio.org>
+-#    
++#
+ #  This program is free software; you can redistribute it and/or modify
+ #  it under the terms of the GNU General Public License as published by
+ #  the Free Software Foundation; either version 3 of the License, or
+@@ -20,10 +20,9 @@
+ 
+ # Modify as required.
+ #
+-SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
+ PREFIX ?= /usr/local
+ INCDIR ?= $(PREFIX)/include
+-LIBDIR ?= $(PREFIX)/lib$(SUFFIX)
++LIBDIR ?= $(PREFIX)/lib
+ 
+ MAJVERS = 1
+ MINVERS = 6.2
+@@ -33,8 +32,7 @@ DISTDIR = zita-resampler-$(VERSION)
+ 
+ CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
+ CXXFLAGS += -Wall -fPIC -O2 -ffast-math
+-CXXFLAGS += -march=native
+-LDFLAGS += 
++LDFLAGS +=
+ LDLIBS +=
+ 
+ 
+@@ -46,6 +44,7 @@ ZITA-RESAMPLER_O = resampler.o vresampler.o resampler-
+ ZITA-RESAMPLER_H = zita-resampler/resampler.h zita-resampler/resampler-table.h \
+ 	zita-resampler/vresampler.h zita-resampler/cresampler.h
+ 
++all: $(ZITA-RESAMPLER_MIN)
+ 
+ $(ZITA-RESAMPLER_MIN): $(ZITA-RESAMPLER_O)
+ 	$(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
+@@ -56,9 +55,10 @@ $(ZITA-RESAMPLER_O):	$(ZITA-RESAMPLER_H)
+ install:	$(ZITA-RESAMPLER_MIN)
+ 	install -d $(DESTDIR)$(INCDIR)/zita-resampler
+ 	install -d $(DESTDIR)$(LIBDIR)
+-	install -m 644 $(ZITA-RESAMPLER_H)   $(DESTDIR)$(INCDIR)/zita-resampler
+-	install -m 755 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)
+-	ldconfig
++	${BSD_INSTALL_DATA} -m 644 $(ZITA-RESAMPLER_H)   $(DESTDIR)$(INCDIR)/zita-resampler
++	${BSD_INSTALL_LIB} -m 755 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)
++	# ldconfig
++	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_MAJ)
+ 	ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(LIBDIR)/$(ZITA-RESAMPLER_SO)
+ 
+ uninstall:



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