Index: Makefile =================================================================== --- Makefile (revision 315686) +++ Makefile (working copy) @@ -6,7 +6,7 @@ # PORTNAME= vifm -PORTVERSION= 0.6.3 +PORTVERSION= 0.7.4b CATEGORIES= misc MASTER_SITES= SF/${PORTNAME}/${PORTNAME} @@ -16,39 +16,21 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -OPTIONS= VIFM_SCREEN "Use vifm with the screen program" off - USE_BZIP2= yes USE_NCURSES= yes -GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_AUTOTOOLS= autoconf CONFIGURE_ARGS= --without-gtk MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \ AUTOMAKE="${TRUE}" -MAN1= vifm.1 +MAN1= vifm.1 \ + vifmrc-converter.1 PLIST_FILES= bin/vifm \ + bin/vifmrc-converter \ bin/vifm-pause \ - %%DATADIR%%/startup \ %%DATADIR%%/vifm-help.txt \ - %%DATADIR%%/vifm.txt \ - %%DATADIR%%/vifm.vim \ %%DATADIR%%/vifmrc PLIST_DIRS= %%DATADIR%% -.include - -.if defined(WITH_VIFM_SCREEN) -RUN_DEPENDS= screen:${PORTSDIR}/sysutils/screen -.endif - -post-patch: - @${REINPLACE_CMD} -e 's/resize_term/resizeterm/g' \ - ${WRKSRC}/src/ui.c -.if defined(WITH_VIFM_SCREEN) - @${REINPLACE_CMD} -e "s/cfg.use_screen = 0/cfg.use_screen = 1/" \ - ${WRKSRC}/src/config.c - @${REINPLACE_CMD} -e "s/USE_SCREEN=0/USE_SCREEN=1/" \ - ${WRKSRC}/src/vifmrc -.endif - -.include +.include Index: distinfo =================================================================== --- distinfo (revision 315686) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (vifm-0.6.3.tar.bz2) = 7b6ac1056e7fbca46fb8eb1a40f31c92fc5694b19ca4267fc63e9e295d8cb3ec -SIZE (vifm-0.6.3.tar.bz2) = 386861 +SHA256 (vifm-0.7.4b.tar.bz2) = 90b4fb64501e436d7ac8699f0cc75d013a72aa471f978ada0ce9b90506213c57 +SIZE (vifm-0.7.4b.tar.bz2) = 562778 Index: files/patch-configure.in =================================================================== --- files/patch-configure.in (revision 0) +++ files/patch-configure.in (working copy) @@ -0,0 +1,42 @@ +--- configure.in.orig 2013-04-02 18:52:13.000000000 +0300 ++++ configure.in 2013-04-02 18:53:57.000000000 +0300 +@@ -24,7 +24,6 @@ + AC_CHECK_HEADER([limits.h], [], [AC_MSG_ERROR([limits.h header not found.])]) + AC_CHECK_HEADER([locale.h], [], [AC_MSG_ERROR([locale.h header not found.])]) + AC_CHECK_HEADER([math.h], [], [AC_MSG_ERROR([math.h header not found.])]) +-AC_CHECK_HEADER([mntent.h], [], [AC_MSG_ERROR([mntent.h header not found.])]) + AC_CHECK_HEADER([pwd.h], [], [AC_MSG_ERROR([pwd.h header not found.])]) + AC_CHECK_HEADER([signal.h], [], [AC_MSG_ERROR([signal.h header not found.])]) + AC_CHECK_HEADER([stdarg.h], [], [AC_MSG_ERROR([stdarg.h header not found.])]) +@@ -69,7 +68,6 @@ + AC_CHECK_FUNC([closedir], [], [AC_MSG_ERROR([closedir() function not found.])]) + AC_CHECK_FUNC([dup], [], [AC_MSG_ERROR([dup() function not found.])]) + AC_CHECK_FUNC([dup2], [], [AC_MSG_ERROR([dup2() function not found.])]) +-AC_CHECK_FUNC([endmntent], [], [AC_MSG_ERROR([endmntent() function not found.])]) + AC_CHECK_FUNC([execve], [], [AC_MSG_ERROR([execve() function not found.])]) + AC_CHECK_FUNC([execvp], [], [AC_MSG_ERROR([execvp() function not found.])]) + AC_CHECK_FUNC([exit], [], [AC_MSG_ERROR([exit() function not found.])]) +@@ -91,7 +89,6 @@ + AC_CHECK_FUNC([getgrgid], [], [AC_MSG_ERROR([getgrgid() function not found.])]) + AC_CHECK_FUNC([getgrgid_r], [], [AC_MSG_ERROR([getgrgid_r() function not found.])]) + AC_CHECK_FUNC([getgrnam], [], [AC_MSG_ERROR([getgrnam() function not found.])]) +-AC_CHECK_FUNC([getmntent], [], [AC_MSG_ERROR([getmntent() function not found.])]) + AC_CHECK_FUNC([getpid], [], [AC_MSG_ERROR([getpid() function not found.])]) + AC_CHECK_FUNC([getppid], [], [AC_MSG_ERROR([getppid() function not found.])]) + AC_CHECK_FUNC([getpwent], [], [AC_MSG_ERROR([getpwent() function not found.])]) +@@ -132,7 +129,6 @@ + AC_CHECK_FUNC([setenv], [], [AC_MSG_ERROR([setenv() function not found.])]) + AC_CHECK_FUNC([setgrent], [], [AC_MSG_ERROR([setgrent() function not found.])]) + AC_CHECK_FUNC([setlocale], [], [AC_MSG_ERROR([setlocale() function not found.])]) +-AC_CHECK_FUNC([setmntent], [], [AC_MSG_ERROR([setmntent() function not found.])]) + AC_CHECK_FUNC([setpgid], [], [AC_MSG_ERROR([setpgid() function not found.])]) + AC_CHECK_FUNC([setpwent], [], [AC_MSG_ERROR([setpwent() function not found.])]) + AC_CHECK_FUNC([setsid], [], [AC_MSG_ERROR([setsid() function not found.])]) +@@ -164,7 +160,6 @@ + AC_CHECK_FUNC([strtok_r], [], [AC_MSG_ERROR([strtok_r() function not found.])]) + AC_CHECK_FUNC([strtol], [], [AC_MSG_ERROR([strtol() function not found.])]) + AC_CHECK_FUNC([strtoll], [], [AC_MSG_ERROR([strtoll() function not found.])]) +-AC_CHECK_FUNC([strverscmp], [], [AC_MSG_ERROR([strverscmp() function not found.])]) + AC_CHECK_FUNC([sysconf], [], [AC_MSG_ERROR([sysconf() function not found.])]) + AC_CHECK_FUNC([time], [], [AC_MSG_ERROR([time() function not found.])]) + AC_CHECK_FUNC([tolower], [], [AC_MSG_ERROR([tolower() function not found.])]) Index: files/patch-src-sort.c =================================================================== --- files/patch-src-sort.c (revision 0) +++ files/patch-src-sort.c (working copy) @@ -0,0 +1,29 @@ +--- src/sort.c.orig 2013-04-02 18:55:08.000000000 +0300 ++++ src/sort.c 2013-04-02 18:37:26.000000000 +0300 +@@ -46,7 +46,7 @@ + + static int sort_dir_list(const void *one, const void *two); + TSTATIC int strnumcmp(const char s[], const char t[]); +-#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) ++#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) + static int vercmp(const char s[], const char t[]); + #else + static char * skip_leading_zeros(const char str[]); +@@ -106,7 +106,7 @@ + TSTATIC int + strnumcmp(const char s[], const char t[]) + { +-#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) ++#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) + return vercmp(s, t); + #else + const char *new_s = skip_leading_zeros(s); +@@ -115,7 +115,7 @@ + #endif + } + +-#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) ++#if defined(_WIN32) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) + static int + vercmp(const char s[], const char t[]) + { Index: files/patch-src-utils-utils.c =================================================================== --- files/patch-src-utils-utils.c (revision 0) +++ files/patch-src-utils-utils.c (working copy) @@ -0,0 +1,20 @@ +--- src/utils/utils.c.orig 2013-04-02 18:56:49.000000000 +0300 ++++ src/utils/utils.c 2013-04-02 18:21:24.000000000 +0300 +@@ -34,7 +34,7 @@ + #include /* waitpid() */ + #endif + +-#if !defined(_WIN32) && !defined(__APPLE__) ++#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) + #include /* getmntent() */ + #endif + +@@ -267,7 +267,7 @@ + int + is_on_slow_fs(const char *full_path) + { +-#if defined(_WIN32) || defined(__APPLE__) ++#if defined(_WIN32) || defined(__APPLE__) || defined(__FreeBSD__) + return 0; + #else + FILE *f; Index: files/patch-src__commands.c =================================================================== --- files/patch-src__commands.c (revision 315686) +++ files/patch-src__commands.c (working copy) @@ -1,11 +0,0 @@ ---- src/commands.c.orig 2011-06-19 22:52:25.000000000 +0900 -+++ src/commands.c 2011-06-26 15:19:03.000000000 +0900 -@@ -27,6 +27,8 @@ - #include /* system() */ - #include /* strncmp() */ - #include -+#include -+#include - - #include "background.h" - #include "bookmarks.h" Index: files/patch-src__file_magic.c =================================================================== --- files/patch-src__file_magic.c (revision 315686) +++ files/patch-src__file_magic.c (working copy) @@ -1,13 +0,0 @@ ---- src/file_magic.c.orig 2011-06-19 22:52:25.000000000 +0900 -+++ src/file_magic.c 2011-06-26 15:30:02.000000000 +0900 -@@ -9,7 +9,9 @@ - #include - #endif - --#include -+#include -+#include -+#include - - #include - #include Index: files/patch-src__fileops.c =================================================================== --- files/patch-src__fileops.c (revision 315686) +++ files/patch-src__fileops.c (working copy) @@ -1,11 +0,0 @@ ---- src/fileops.c.orig 2011-07-21 15:59:01.000000000 +0300 -+++ src/fileops.c 2011-08-29 22:03:45.000000000 +0300 -@@ -1255,7 +1255,7 @@ - - stat(temp_file, &st_after); - -- if(memcmp(&st_after.st_mtim, &st_before.st_mtim, -+ if(memcmp(&st_after.st_mtime, &st_before.st_mtime, - sizeof(st_after.st_mtime)) == 0) - { - unlink(temp_file);