[135927] trunk/dports/audio

ryandesign at macports.org ryandesign at macports.org
Wed May 6 20:17:03 PDT 2015


Revision: 135927
          https://trac.macports.org/changeset/135927
Author:   ryandesign at macports.org
Date:     2015-05-06 20:17:03 -0700 (Wed, 06 May 2015)
Log Message:
-----------
stk: new port, version 4.5.0

Added Paths:
-----------
    trunk/dports/audio/stk/
    trunk/dports/audio/stk/Portfile
    trunk/dports/audio/stk/files/
    trunk/dports/audio/stk/files/patch-configure.ac.diff
    trunk/dports/audio/stk/files/patch-src-Makefile.in.diff

Added: trunk/dports/audio/stk/Portfile
===================================================================
--- trunk/dports/audio/stk/Portfile	                        (rev 0)
+++ trunk/dports/audio/stk/Portfile	2015-05-07 03:17:03 UTC (rev 135927)
@@ -0,0 +1,62 @@
+# -*- 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
+
+# configure script checks endianness.
+PortGroup           muniversal 1.0
+
+name                stk
+version             4.5.0
+categories          audio
+platforms           darwin
+maintainers         ryandesign openmaintainer
+license             MIT
+
+description         open source audio signal processing and algorithmic \
+                    synthesis classes
+
+long_description    The Synthesis ToolKit in C++ (STK) is a set of open source \
+                    audio signal processing and algorithmic synthesis classes \
+                    written in the C++ programming language. \
+                    STK was designed to facilitate rapid development of music \
+                    synthesis and audio processing software, with an emphasis \
+                    on cross-platform functionality, realtime control, ease of \
+                    use, and educational example code. \
+                    The Synthesis ToolKit is extremely portable (it's mostly \
+                    platform-independent C and C++ code), and it's completely \
+                    user-extensible (all source included, no unusual \
+                    libraries, and no hidden drivers). \
+                    We like to think that this increases the chances that our \
+                    programs will still work in another 5-10 years. \
+                    In fact, the ToolKit has been working continuously for \
+                    nearly 20 years now. \
+                    STK currently runs with realtime support (audio and MIDI) \
+                    on Linux, OS X, and Windows computer platforms. \
+                    Generic, non-realtime support has been tested under \
+                    NeXTStep, Sun, and other platforms and should work with \
+                    any standard C++ compiler.
+
+homepage            https://ccrma.stanford.edu/software/stk/
+master_sites        ${homepage}release/
+
+checksums           rmd160  a37dcae6792f395f6c74491dfeb9fa02224927e3 \
+                    sha256  619f1a0dee852bb2b2f37730e2632d83b7e0e3ea13b4e8a3166bf11191956ee3
+
+patchfiles          patch-configure.ac.diff \
+                    patch-src-Makefile.in.diff
+
+use_autoreconf      yes
+
+# configure script does not use provided CFLAGS, CXXFLAGS, LDFLAGS.
+merger_arch_compiler yes
+merger_arch_flag    no
+
+configure.args      --disable-static \
+                    --enable-shared
+
+build.env           DYLD_LIBRARY_PATH=${worksrcpath}/src
+
+livecheck.type      regex
+livecheck.url       ${homepage}download.html
+livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}


Property changes on: trunk/dports/audio/stk/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/audio/stk/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/audio/stk/files/patch-configure.ac.diff	                        (rev 0)
+++ trunk/dports/audio/stk/files/patch-configure.ac.diff	2015-05-07 03:17:03 UTC (rev 135927)
@@ -0,0 +1,25 @@
+--- configure.ac.orig	2014-04-26 15:33:24.000000000 -0500
++++ configure.ac	2015-05-04 03:38:33.000000000 -0500
+@@ -111,14 +111,16 @@
+ 
+ AC_CANONICAL_HOST
+ 
+-AC_SUBST( sharedlib, ["libstk.so"] )
+-AC_SUBST( sharedname, ["libstk.so.\$(RELEASE)"] )
+-AC_SUBST( libflags, ["-shared -Wl,-soname,\$(SHAREDLIB).\$(MAJOR) -o \$(SHAREDLIB).\$(RELEASE)"] )
++AC_SUBST( sharedlib, ["libstk.so.\$(MAJOR)"] )
++AC_SUBST( sharedname, ["libstk.so"] )
++AC_SUBST( sharedrelease, ["libstk.so.\$(RELEASE)"] )
++AC_SUBST( libflags, ["-shared -Wl,-soname,\$(SHAREDLIB)"] )
+ case $host in
+   *-apple*)
+-  AC_SUBST( sharedlib, ["libstk.dylib"] )
+-  AC_SUBST( sharedname, ["libstk.\$(RELEASE).dylib"] )
+-  AC_SUBST( libflags, ["-dynamiclib -o libstk.\$(RELEASE).dylib"] )
++  AC_SUBST( sharedlib, ["libstk.\$(MAJOR).dylib"] )
++  AC_SUBST( sharedname, ["libstk.dylib"] )
++  AC_SUBST( sharedrelease, ["libstk.\$(RELEASE).dylib"] )
++  AC_SUBST( libflags, ["-dynamiclib -install_name \$(libdir)/\$(SHAREDLIB)"] )
+ esac
+ 
+ if test $realtime = yes; then

Added: trunk/dports/audio/stk/files/patch-src-Makefile.in.diff
===================================================================
--- trunk/dports/audio/stk/files/patch-src-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/audio/stk/files/patch-src-Makefile.in.diff	2015-05-07 03:17:03 UTC (rev 135927)
@@ -0,0 +1,84 @@
+--- src/Makefile.in.orig	2014-04-26 15:33:24.000000000 -0500
++++ src/Makefile.in	2015-05-06 21:50:25.000000000 -0500
+@@ -3,6 +3,8 @@
+ 
+ STATICLIB = libstk.a
+ SHAREDLIB = @sharedlib@
++SHAREDNAME = @sharedname@
++SHAREDRELEASE = @sharedrelease@
+ MAJOR = 4
+ RELEASE = 4.4.4
+ 
+@@ -10,23 +12,24 @@
+ RM = /bin/rm
+ LN = /bin/ln
+ OBJECT_PATH = @object_path@
+-LIBDIR = @libdir@
+-PREFIX = @prefix@
+-INCLUDEDIR = @includedir@
++prefix = @prefix@
++exec_prefix = @exec_prefix@
++bindir = @bindir@
++libdir = @libdir@
++includedir = @includedir@
+ vpath %.o $(OBJECT_PATH)
+ 
+-OBJECTS	=	Stk.o Generator.o Noise.o Blit.o BlitSaw.o BlitSquare.o Granulate.o \
++OBJECTS	=	Stk.o Noise.o Blit.o BlitSaw.o BlitSquare.o Granulate.o \
+ 					Envelope.o ADSR.o Asymp.o Modulate.o SineWave.o FileLoop.o SingWave.o \
+-					FileRead.o FileWrite.o WvIn.o FileWvIn.o WvOut.o FileWvOut.o \
+-					Filter.o Fir.o Iir.o OneZero.o OnePole.o PoleZero.o TwoZero.o TwoPole.o \
++					FileRead.o FileWrite.o FileWvIn.o FileWvOut.o \
++					Fir.o Iir.o OneZero.o OnePole.o PoleZero.o TwoZero.o TwoPole.o \
+ 					BiQuad.o FormSwep.o Delay.o DelayL.o DelayA.o \
+ 					\
+-					Effect.o PRCRev.o JCRev.o NRev.o FreeVerb.o \
++					PRCRev.o JCRev.o NRev.o FreeVerb.o \
+ 					Chorus.o Echo.o PitShift.o LentPitShift.o \
+-					Function.o ReedTable.o JetTable.o BowTable.o Cubic.o \
+-					Voicer.o Vector3D.o Sphere.o Twang.o Guitar.o \
++					Voicer.o Sphere.o Twang.o Guitar.o \
+ 					\
+-					Instrmnt.o Clarinet.o BlowHole.o Saxofony.o Flute.o Brass.o BlowBotl.o \
++					Clarinet.o BlowHole.o Saxofony.o Flute.o Brass.o BlowBotl.o \
+ 					Bowed.o Plucked.o StifKarp.o Sitar.o Mandolin.o Mesh2D.o \
+ 					FM.o Rhodey.o Wurley.o TubeBell.o HevyMetl.o PercFlut.o BeeThree.o FMVoices.o \
+ 					Sampler.o Moog.o Simple.o Drummer.o Shakers.o \
+@@ -88,20 +91,18 @@
+ 	$(AR) $(STATICLIB) $(OBJECT_PATH)/*.o
+ 
+ $(SHAREDLIB) : $(OBJECTS)
+-	$(RM) -f $(@) $(SHAREDLIB).$(MAJOR) $(SHAREDLIB)
+-	$(CC) $(LDFLAGS) -fPIC @libflags@ $(OBJECT_PATH)/*.o $(LIBS)
+-	$(LN) -s @sharedname@ $(SHAREDLIB)
+-#	$(LN) -s @sharedname@ $(SHAREDLIB).$(MAJOR)
++	$(CC) $(LDFLAGS) -fPIC @libflags@ -o $@ $(OBJECT_PATH)/*.o $(LIBS)
++	$(LN) -sf $(SHAREDLIB) $(SHAREDNAME)
+ 
+ install-headers:
+-	install -d $(DESTDIR)$(PREFIX)$(INCLUDEDIR)/stk
+-	cp -r ../include/*.h $(DESTDIR)$(PREFIX)$(INCLUDEDIR)/stk
++	install -d $(DESTDIR)$(includedir)/stk
++	cp -R ../include/*.h $(DESTDIR)$(includedir)/stk
+ 
+ install: $(SHAREDLIB) install-headers
+-	install -d $(DESTDIR)$(PREFIX)$(LIBDIR)
+-	install -m 644 $(SHAREDLIB).$(RELEASE) $(DESTDIR)$(PREFIX)$(LIBDIR)
+-	ln -sf $(SHAREDLIB).$(RELEASE) $(DESTDIR)$(PREFIX)$(LIBDIR)/$(SHAREDLIB)
+-	ln -sf $(SHAREDLIB).$(RELEASE) $(DESTDIR)$(PREFIX)$(LIBDIR)/$(SHAREDLIB).$(MAJOR)
++	install -d $(DESTDIR)$(libdir)
++	install -m 644 $(SHAREDLIB) $(DESTDIR)$(libdir)
++	$(LN) -sf $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDNAME)
++	$(LN) -sf $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDRELEASE)
+ 
+ 
+ $(OBJECTS) : Stk.h
+@@ -109,7 +110,7 @@
+ clean : 
+ 	$(RM) -f $(OBJECT_PATH)/*.o
+ 	$(RM) -f $(STATICLIB)
+-	$(RM) -f $(SHAREDLIB)* @sharedname@
++	$(RM) -f $(SHAREDLIB) $(SHAREDNAME)
+ 	$(RM) -f *~
+ 	$(RM) -fR *.dSYM
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150506/377548ce/attachment-0001.html>


More information about the macports-changes mailing list