[71429] trunk/dports/audio/slv2/Portfile

devans at macports.org devans at macports.org
Sun Sep 12 19:50:07 PDT 2010


Revision: 71429
          http://trac.macports.org/changeset/71429
Author:   devans at macports.org
Date:     2010-09-12 19:50:06 -0700 (Sun, 12 Sep 2010)
Log Message:
-----------
slv2: work around waf build problems for now
    * ensure library search paths from dependent library redlands pkgconfig file
      are carried forward into the slv2 pkgconfig file
    * fixup library install names in library and binaries to refer to the installed
      library path rather than the build path.

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

Modified: trunk/dports/audio/slv2/Portfile
===================================================================
--- trunk/dports/audio/slv2/Portfile	2010-09-13 02:46:54 UTC (rev 71428)
+++ trunk/dports/audio/slv2/Portfile	2010-09-13 02:50:06 UTC (rev 71429)
@@ -5,6 +5,7 @@
 
 name            slv2
 version         0.6.6
+revision        1
 maintainers     devans
 categories      audio
 platforms       darwin
@@ -29,6 +30,11 @@
                 port:jack \
                 port:lv2core
 
+post-patch {
+        set redland_libs [exec ${prefix}/bin/pkg-config --libs redland]
+        reinplace "s|@REDLAND_LIBS@|${redland_libs}|" ${worksrcpath}/slv2.pc.in
+}
+
 configure.cmd   ./waf configure
 
 build.cmd       ./waf
@@ -37,6 +43,15 @@
 destroot.cmd    ./waf
 destroot.destdir --destdir=${destroot}
 
+post-destroot {
+        set bindir ${destroot}${prefix}/bin
+        set libdir ${destroot}${prefix}/lib
+        system "install_name_tool -change default/libslv2.dylib ${prefix}/lib/libslv2.dylib ${libdir}/libslv2.dylib"
+        foreach util [glob ${bindir}/*] {
+            system "install_name_tool -change default/libslv2.dylib ${prefix}/lib/libslv2.dylib ${util}"
+        }
+}
+
 #
 # lv2core is not universal
 #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100912/93208b9b/attachment.html>


More information about the macports-changes mailing list