[114610] trunk/dports/audio
ryandesign at macports.org
ryandesign at macports.org
Wed Dec 11 13:03:31 PST 2013
Revision: 114610
https://trac.macports.org/changeset/114610
Author: ryandesign at macports.org
Date: 2013-12-11 13:03:31 -0800 (Wed, 11 Dec 2013)
Log Message:
-----------
rubberband: new port, version 1.8.1
Added Paths:
-----------
trunk/dports/audio/rubberband/
trunk/dports/audio/rubberband/Portfile
trunk/dports/audio/rubberband/files/
trunk/dports/audio/rubberband/files/patch-Makefile.osx.diff
Added: trunk/dports/audio/rubberband/Portfile
===================================================================
--- trunk/dports/audio/rubberband/Portfile (rev 0)
+++ trunk/dports/audio/rubberband/Portfile 2013-12-11 21:03:31 UTC (rev 114610)
@@ -0,0 +1,55 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name rubberband
+version 1.8.1
+set download_id 34
+categories audio
+platforms darwin
+maintainers ryandesign openmaintainer
+license GPL-2+
+
+description audio time-stretching and pitch-shifting library and utility program
+
+long_description Rubber Band is a library and utility program that permits \
+ changing the tempo and pitch of an audio recording \
+ independently of one another.
+
+homepage http://breakfastquay.com/rubberband/
+master_sites http://code.breakfastquay.com/attachments/download/${download_id}/
+use_bzip2 yes
+
+checksums rmd160 21178218aeffb0a0827ba8c4fd32e95f5a08b295 \
+ sha256 ff0c63b0b5ce41f937a8a3bc560f27918c5fe0b90c6bc1cb70829b86ada82b75
+
+depends_lib port:libsndfile
+
+patchfiles patch-Makefile.osx.diff
+
+use_configure no
+
+variant universal {}
+
+build.target default
+build.args -f Makefile.osx \
+ ARCHFLAGS="[get_canonical_archflags cc]" \
+ CC=${configure.cc} \
+ CXX=${configure.cxx} \
+ PREFIX=${prefix}
+
+eval destroot.args ${build.args}
+
+post-destroot {
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ CHANGELOG \
+ COPYING \
+ README.txt \
+ ${destroot}${docdir}
+}
+
+livecheck.type regex
+livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
Property changes on: trunk/dports/audio/rubberband/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/audio/rubberband/files/patch-Makefile.osx.diff
===================================================================
--- trunk/dports/audio/rubberband/files/patch-Makefile.osx.diff (rev 0)
+++ trunk/dports/audio/rubberband/files/patch-Makefile.osx.diff 2013-12-11 21:03:31 UTC (rev 114610)
@@ -0,0 +1,93 @@
+Various improvements to the OS X Makefile already submitted and committed to upstream
+https://bitbucket.org/breakfastquay/rubberband/issue/3/makefileosx-doesnt-have-an-install-target
+--- Makefile.osx.orig 2012-10-28 05:30:09.000000000 -0500
++++ Makefile.osx 2013-12-11 14:42:41.000000000 -0600
+@@ -1,29 +1,39 @@
+
++PREFIX := /usr/local
+ CXX := g++
+ CC := gcc
+ ARCHFLAGS :=
+ OPTFLAGS := -DNDEBUG -ffast-math -mfpmath=sse -msse -msse2 -O3 -ftree-vectorize
+-
+-CXXFLAGS := $(ARCHFLAGS) $(OPTFLAGS) -I/usr/local/include -DUSE_PTHREADS -DMALLOC_IS_ALIGNED -DHAVE_VDSP -DUSE_SPEEX -DNO_THREAD_CHECKS -DNO_TIMING -Irubberband -I. -Isrc
+-
+-LIBRARY_LIBS := -framework Accelerate
+-
++CXXFLAGS := $(ARCHFLAGS) $(OPTFLAGS) -Irubberband -I. -Isrc -I$(PREFIX)/include -DUSE_PTHREADS -DMALLOC_IS_ALIGNED -DHAVE_VDSP -DUSE_SPEEX -DNO_THREAD_CHECKS -DNO_TIMING
+ CFLAGS := $(ARCHFLAGS) $(OPTFLAGS)
+ LDFLAGS := $(ARCHFLAGS) -lpthread $(LDFLAGS)
+
+-PROGRAM_LIBS := -L/usr/local/lib -lsndfile $(LIBRARY_LIBS)
+-VAMP_PLUGIN_LIBS := -L/usr/local/lib -lvamp-sdk $(LIBRARY_LIBS)
++LIBRARY_LIBS := -framework Accelerate
++PROGRAM_LIBS := -L$(PREFIX)/lib -lsndfile $(LIBRARY_LIBS)
++VAMP_PLUGIN_LIBS := -L$(PREFIX)/lib -lvamp-sdk $(LIBRARY_LIBS)
+ LADSPA_PLUGIN_LIBS := $(LIBRARY_LIBS)
+
+ MKDIR := mkdir
+ AR := ar
+
+-DYNAMIC_LDFLAGS := -dynamiclib
++INSTALL_BINDIR := $(PREFIX)/bin
++INSTALL_INCDIR := $(PREFIX)/include/rubberband
++INSTALL_LIBDIR := $(PREFIX)/lib
++INSTALL_VAMPDIR := $(PREFIX)/lib/vamp
++INSTALL_LADSPADIR := $(PREFIX)/lib/ladspa
++INSTALL_LRDFDIR := $(PREFIX)/share/ladspa/rdf
++INSTALL_PKGDIR := $(PREFIX)/lib/pkgconfig
++
++LIBNAME := librubberband
++
+ DYNAMIC_EXTENSION := .dylib
++DYNAMIC_FULL_VERSION := 2.1.0
++DYNAMIC_ABI_VERSION := 2
++DYNAMIC_LDFLAGS := -dynamiclib -install_name $(INSTALL_LIBDIR)/$(LIBNAME).$(DYNAMIC_ABI_VERSION)$(DYNAMIC_EXTENSION) -current_version $(DYNAMIC_FULL_VERSION) -compatibility_version $(DYNAMIC_ABI_VERSION)
+
+ PROGRAM_TARGET := bin/rubberband
+-STATIC_TARGET := lib/librubberband.a
+-DYNAMIC_TARGET := lib/librubberband$(DYNAMIC_EXTENSION)
++STATIC_TARGET := lib/$(LIBNAME).a
++DYNAMIC_TARGET := lib/$(LIBNAME)$(DYNAMIC_EXTENSION)
+ VAMP_TARGET := lib/vamp-rubberband$(DYNAMIC_EXTENSION)
+ LADSPA_TARGET := lib/ladspa-rubberband$(DYNAMIC_EXTENSION)
+
+@@ -121,10 +131,10 @@
+ LADSPA_OBJECTS := $(LADSPA_SOURCES:.cpp=.o)
+
+ $(PROGRAM_TARGET): $(LIBRARY_OBJECTS) $(PROGRAM_OBJECTS)
+- $(CXX) -o $@ $^ $(PROGRAM_LIBS) $(PROGRAM_LIBS) $(LDFLAGS)
++ $(CXX) -o $@ $^ $(PROGRAM_LIBS) $(LDFLAGS)
+
+ $(STATIC_TARGET): $(LIBRARY_OBJECTS)
+- $(AR) rc $@ $^
++ $(AR) rsc $@ $^
+
+ $(DYNAMIC_TARGET): $(LIBRARY_OBJECTS)
+ $(CXX) $(DYNAMIC_LDFLAGS) $^ -o $@ $(LIBRARY_LIBS) $(LDFLAGS)
+@@ -140,6 +150,25 @@
+ lib:
+ $(MKDIR) $@
+
++install: default
++ $(MKDIR) -p $(DESTDIR)$(INSTALL_BINDIR)
++ $(MKDIR) -p $(DESTDIR)$(INSTALL_INCDIR)
++ $(MKDIR) -p $(DESTDIR)$(INSTALL_LIBDIR)
++ $(MKDIR) -p $(DESTDIR)$(INSTALL_VAMPDIR)
++ $(MKDIR) -p $(DESTDIR)$(INSTALL_LADSPADIR)
++ $(MKDIR) -p $(DESTDIR)$(INSTALL_LRDFDIR)
++ $(MKDIR) -p $(DESTDIR)$(INSTALL_PKGDIR)
++ cp $(PROGRAM_TARGET) $(DESTDIR)$(INSTALL_BINDIR)
++ cp $(PUBLIC_INCLUDES) $(DESTDIR)$(INSTALL_INCDIR)
++ cp $(STATIC_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)
++ rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME).$(DYNAMIC_ABI_VERSION)$(DYNAMIC_EXTENSION)
++ rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
++ cp $(DYNAMIC_TARGET) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME).$(DYNAMIC_FULL_VERSION)$(DYNAMIC_EXTENSION)
++ ln -s $(LIBNAME).$(DYNAMIC_FULL_VERSION)$(DYNAMIC_EXTENSION) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME).$(DYNAMIC_ABI_VERSION)$(DYNAMIC_EXTENSION)
++ ln -s $(LIBNAME).$(DYNAMIC_FULL_VERSION)$(DYNAMIC_EXTENSION) $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
++ sed "s,%PREFIX%,$(PREFIX)," rubberband.pc.in \
++ > $(DESTDIR)$(INSTALL_PKGDIR)/rubberband.pc
++
+ clean:
+ rm -f $(LIBRARY_OBJECTS) $(PROGRAM_OBJECTS) $(LADSPA_OBJECTS) $(VAMP_OBJECTS)
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131211/c034a84a/attachment.html>
More information about the macports-changes
mailing list