Ticket #43403: encfs-use-osxfuse.diff

File encfs-use-osxfuse.diff, 1.8 KB (added by neverpanic (Clemens Lang), 11 years ago)

Use osxfuse and make sure the right fuse is being used

  • Portfile

     
    2727
    2828homepage            http://www.arg0.net/encfs
    2929
     30patchfiles          patch-use_macports_paths.diff
     31post-patch {
     32    reinplace "s#@PREFIX@#${prefix}#g" ${worksrcpath}/configure.ac
     33}
     34
    3035depends_build       port:pkgconfig
    31 depends_lib         port:rlog port:openssl path:lib/libfuse.dylib:fuse4x port:gettext port:boost
     36depends_lib         port:rlog port:openssl path:lib/libfuse.dylib:osxfuse port:gettext port:boost
    3237
    3338use_autoreconf      yes
    3439autoreconf.args     -fvi
  • files/patch-use_macports_paths.diff

     
     1--- configure.ac.orig   2014-04-19 16:17:19.000000000 +0200
     2+++ configure.ac        2014-04-19 16:18:11.000000000 +0200
     3@@ -72,15 +72,11 @@
     4 LDFLAGS="$LDFLAGS $PTHREAD_LIBS $USER_LDFLAGS $FUSE_LIBS"
     5 
     6 dnl Look for fuse headers.
     7-AX_EXT_HAVE_HEADER(fuse.h, /usr/include/fuse /usr/local/include/fuse \
     8-                   /opt/include/fuse /opt/local/include/fuse \
     9-                   /usr/include/osxfuse /usr/local/include/osxfuse)
     10+AX_EXT_HAVE_HEADER(fuse.h, @PREFIX@/include @PREFIX@/include/osxfuse)
     11 
     12 dnl Ensure the necessary paths are added to LDPATH
     13-AX_EXT_HAVE_LIB(/usr/lib /usr/local/lib /opt/lib /opt/local/lib, fuse,
     14-                fuse_new, [])
     15-AX_EXT_HAVE_LIB(/usr/lib /usr/local/lib /opt/lib /opt/local/lib, osxfuse,
     16-                fuse_new, [])
     17+AX_EXT_HAVE_LIB(@PREFIX@/lib , fuse, fuse_new, [])
     18+AX_EXT_HAVE_LIB(@PREFIX@/lib, osxfuse, fuse_new, [])
     19 
     20 if test "$GXX" = "yes"; then
     21     CXXFLAGS="-W -Wall -Wpointer-arith -Wwrite-strings $CXXFLAGS"