[81459] trunk/dports/fuse/fuse4x/Portfile

dports at macports.org dports at macports.org
Sat Jul 30 23:36:17 PDT 2011


Revision: 81459
          http://trac.macports.org/changeset/81459
Author:   dports at macports.org
Date:     2011-07-30 23:36:16 -0700 (Sat, 30 Jul 2011)
Log Message:
-----------
fuse4x: install library as libfuse.dylib rather than
libfuse4x.dylib. The port conflicts with macfuse anyway, so there's no
need to keep them separate, and this will make it easier for dependent
ports to find the library.

Modified Paths:
--------------
    trunk/dports/fuse/fuse4x/Portfile

Modified: trunk/dports/fuse/fuse4x/Portfile
===================================================================
--- trunk/dports/fuse/fuse4x/Portfile	2011-07-31 05:12:33 UTC (rev 81458)
+++ trunk/dports/fuse/fuse4x/Portfile	2011-07-31 06:36:16 UTC (rev 81459)
@@ -5,6 +5,7 @@
 
 name                fuse4x
 version             0.8.8
+revision            1
 set tag             [string map {. _ } $version]
 categories          fuse devel
 platforms           macosx
@@ -46,6 +47,14 @@
 set kextdir        "${prefix}/Library/Extensions"
 post-patch {
     reinplace "s|@@KEXTPATH@@|${kextdir}/fuse4x.kext|" ${worksrcpath}/include/fuse_param.h
+
+    # Fuse4X normally installs its library as libfuse4x.dylib to allow
+    # it to co-exist with MacFUSE, but the ports are conflicting so we
+    # don't need to worry about that. Instead, we'll install it as
+    # libfuse.dylib so dependent ports don't need to be modified.
+    reinplace "s|-lfuse4x|-lfuse|" ${worksrcpath}/fuse.pc.in
+    reinplace "s|libfuse4x|libfuse|g" ${worksrcpath}/lib/Makefile.am
+    reinplace "s|libfuse4x.la|libfuse.la|" ${worksrcpath}/example/Makefile.am
 }
 
 configure.ldflags   -framework CoreFoundation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110730/4fd8a5a9/attachment.html>


More information about the macports-changes mailing list