Ticket #30383: encfs.patch

File encfs.patch, 2.4 KB (added by drkp (Dan Ports), 13 years ago)
  • files/patch-configure.ac.diff

     
     1--- configure.ac.orig   2011-07-25 21:25:36.000000000 -0400
     2+++ configure.ac        2011-07-25 21:27:48.000000000 -0400
     3@@ -67,41 +67,10 @@
     4     dnl CXXFLAGS="$CXXFLAGS -Wformat=2 -Wconversion"
     5 fi
     6 
     7-AC_CHECK_HEADER(fuse.h,,
     8-    [AC_MSG_ERROR([
     9-       Can't find fuse.h - add the search path to CPPFLAGS and
     10-       rerun configure, eg:
     11-       export CPPFLAGS=-I/usr/local/include ])])
     12-AC_CHECK_LIB(fuse_ino64,fuse_new, [FUSE_LIBS="-lfuse_ino64"],
     13-    [ AC_CHECK_LIB(fuse,fuse_new, [FUSE_LIBS="-lfuse"],
     14-        [AC_MSG_ERROR([
     15-           Can't find libfuse.a - add the search path to LDFLAGS
     16-           and rerun configure, eg:
     17-           export LDFLAGS=-L/usr/local/lib ])],)
     18-    ],)
     19+PKG_CHECK_MODULES([FUSE], [fuse >= 2.5])
     20 
     21 AC_SUBST(FUSE_LIBS)
     22 
     23-# check for a supported FUSE_MAJOR_VERSION.
     24-AC_MSG_CHECKING([For supported FUSE API version])
     25-AC_RUN_IFELSE([
     26-    AC_LANG_PROGRAM([[#include "fuse.h"]],
     27-[[
     28-    if(FUSE_MAJOR_VERSION == 2 && FUSE_MINOR_VERSION >= 5)
     29-    {
     30-       return 0;
     31-    } else
     32-       return -1;
     33-]])],
     34-    [AC_MSG_RESULT([yes])],
     35-    [AC_MSG_RESULT([no])
     36-    AC_MSG_FAILURE([
     37-Encfs 1.3 requires FUSE 2.5 or newer.  Please check config.log for errors.  If
     38-you cannot determine the problem, mail encfs-users@lists.sourceforge.net
     39-and include the config.log file])
     40-    ]
     41-)
     42-
     43 dnl fuse_operations.setxattr was added 2004-03-31
     44 dnl only enable it if setxattr function is found..
     45 AC_CHECK_HEADERS([attr/xattr.h sys/xattr.h])
  • Portfile

     
    3030checksums           sha1    3d824ba188dbaabdc9e36621afb72c651e6e2945 \
    3131                    rmd160  a54bbf1237f7071392cc2a6be11afeee0fcdf5e9
    3232
     33patchfiles          patch-configure.ac.diff
     34
    3335depends_build       path:bin/pkg-config:pkgconfig
    34 depends_lib         port:rlog port:openssl port:macfuse port:gettext port:boost
     36depends_lib         port:rlog port:openssl \
     37                    path:lib/pkgconfig/fuse.pc:macfuse \
     38                    port:gettext port:boost
    3539
    36 configure.cppflags-append   -D__FreeBSD__=10
     40use_autoreconf      yes
     41autoreconf.args     -fi