Ticket #30383: change_libfuse4x_to_libfuse.diff

File change_libfuse4x_to_libfuse.diff, 1.1 KB (added by anatol (Anatol Pomozov), 13 years ago)

Change library name from libfuse4x to libfuse

  • Portfile

     
    55
    66name                fuse4x
    77version             0.8.8
     8revision            1
    89set tag             [string map {. _ } $version]
    910categories          fuse devel
    1011platforms           macosx
     
    4647set kextdir        "${prefix}/Library/Extensions"
    4748post-patch {
    4849    reinplace "s|@@KEXTPATH@@|${kextdir}/fuse4x.kext|" ${worksrcpath}/include/fuse_param.h
     50
     51    # Default fuse4x uses libfuse4x name for dylibs to allow coexist it with macfuse installation.
     52    # But in macports these 2 packages are conflicting anyway so there is no reason to use libfuse4x,
     53    # let's change it to libfuse.dylib so you don't need to change dependent ports to use fuse4x.
     54    reinplace "s|-lfuse4x|-lfuse|" ${worksrcpath}/fuse.pc.in
     55    reinplace "s|libfuse4x|libfuse|g" ${worksrcpath}/lib/Makefile.am
     56    reinplace "s|libfuse4x.la|libfuse.la|" ${worksrcpath}/example/Makefile.am
    4957}
    5058
    5159configure.ldflags   -framework CoreFoundation