[135965] trunk/dports/audio/stk

ryandesign at macports.org ryandesign at macports.org
Fri May 8 03:06:53 PDT 2015


Revision: 135965
          https://trac.macports.org/changeset/135965
Author:   ryandesign at macports.org
Date:     2015-05-08 03:06:53 -0700 (Fri, 08 May 2015)
Log Message:
-----------
stk: also install rawwaves

Modified Paths:
--------------
    trunk/dports/audio/stk/Portfile

Added Paths:
-----------
    trunk/dports/audio/stk/files/patch-include-Stk.h.diff

Modified: trunk/dports/audio/stk/Portfile
===================================================================
--- trunk/dports/audio/stk/Portfile	2015-05-08 10:06:17 UTC (rev 135964)
+++ trunk/dports/audio/stk/Portfile	2015-05-08 10:06:53 UTC (rev 135965)
@@ -8,6 +8,7 @@
 
 name                stk
 version             4.5.0
+revision            1
 categories          audio
 platforms           darwin
 maintainers         ryandesign openmaintainer
@@ -43,9 +44,16 @@
 checksums           rmd160  a37dcae6792f395f6c74491dfeb9fa02224927e3 \
                     sha256  619f1a0dee852bb2b2f37730e2632d83b7e0e3ea13b4e8a3166bf11191956ee3
 
+set rawwave_path    ${prefix}/share/stk/rawwaves/
+
 patchfiles          patch-configure.ac.diff \
+                    patch-include-Stk.h.diff \
                     patch-src-Makefile.in.diff
 
+post-patch {
+    reinplace "s|@RAWWAVE_PATH@|${rawwave_path}|g" ${worksrcpath}/include/Stk.h
+}
+
 use_autoreconf      yes
 
 # configure script does not use provided CFLAGS, CXXFLAGS, LDFLAGS.
@@ -53,10 +61,16 @@
 merger_arch_flag    no
 
 configure.args      --disable-static \
-                    --enable-shared
+                    --enable-shared \
+                    RAWWAVE_PATH="${rawwave_path}"
 
 build.env           DYLD_LIBRARY_PATH=${worksrcpath}/src
 
+post-destroot {
+    xinstall -d ${destroot}${rawwave_path}
+    copy {*}[glob ${worksrcpath}/rawwaves/*] ${destroot}${rawwave_path}
+}
+
 livecheck.type      regex
 livecheck.url       ${homepage}download.html
 livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}

Added: trunk/dports/audio/stk/files/patch-include-Stk.h.diff
===================================================================
--- trunk/dports/audio/stk/files/patch-include-Stk.h.diff	                        (rev 0)
+++ trunk/dports/audio/stk/files/patch-include-Stk.h.diff	2015-05-08 10:06:53 UTC (rev 135965)
@@ -0,0 +1,11 @@
+--- include/Stk.h.orig	2014-04-26 15:33:24.000000000 -0500
++++ include/Stk.h	2015-05-08 04:44:02.000000000 -0500
+@@ -521,7 +521,7 @@
+ // move the rawwaves directory to a different location in your file
+ // system, you will need to set this path definition appropriately.
+ #if !defined(RAWWAVE_PATH)
+-  #define RAWWAVE_PATH "../../rawwaves/"
++  #define RAWWAVE_PATH "@RAWWAVE_PATH@"
+ #endif
+ 
+ const StkFloat PI           = 3.14159265358979;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150508/8f170485/attachment.html>


More information about the macports-changes mailing list