View | Details | Raw Unified | Return to bug 158493
Collapse All | Expand All

(-)misc/vifm/Makefile (-19 / +24 lines)
Lines 6-49 Link Here
6
#
6
#
7
7
8
PORTNAME=	vifm
8
PORTNAME=	vifm
9
PORTVERSION=	0.5
9
PORTVERSION=	0.6.2
10
CATEGORIES=	misc
10
CATEGORIES=	misc
11
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/
11
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
12
12
13
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
14
COMMENT=	Ncurses based file manager with vi like keybindings
14
COMMENT=	Ncurses based file manager with vi like keybindings
15
15
16
.if defined(WITH_VIFM_SCREEN)
16
OPTIONS=	VIFM_SCREEN "Use vifm with the screen program" off
17
RUN_DEPENDS=	screen:${PORTSDIR}/sysutils/screen
17
18
.endif
18
WRKSRC=		${WRKDIR}/${PORTNAME}
19
19
20
GNU_CONFIGURE=	yes
21
USE_GMAKE=	yes
22
USE_BZIP2=	yes
20
USE_BZIP2=	yes
21
USE_NCURSES=	yes
22
USE_GMAKE=	yes
23
GNU_CONFIGURE=	yes
24
CONFIGURE_ARGS=	--without-gtk
25
MAKE_ARGS=	ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
26
		AUTOMAKE="${TRUE}"
23
27
28
MAN1=		vifm.1
24
PLIST_FILES=	bin/pauseme \
29
PLIST_FILES=	bin/pauseme \
25
		bin/vifm \
30
		bin/vifm \
26
		share/vifm/vifm-help.txt \
31
		%%DATADIR%%/startup \
27
		share/vifm/vifm.txt \
32
		%%DATADIR%%/vifm-help.txt \
28
		share/vifm/vifm.vim
33
		%%DATADIR%%/vifm.txt \
29
PLIST_DIRS=	share/vifm
34
		%%DATADIR%%/vifm.vim \
35
		%%DATADIR%%/vifmrc
36
PLIST_DIRS=	%%DATADIR%%
30
37
31
MAN1=		vifm.1
38
.include <bsd.port.pre.mk>
32
MANCOMPRESSED=	no
39
40
.if defined(WITH_VIFM_SCREEN)
41
RUN_DEPENDS=	screen:${PORTSDIR}/sysutils/screen
42
.endif
33
43
34
post-patch:
44
post-patch:
35
	@${REINPLACE_CMD} -e 's/resize_term/resizeterm/g' \
45
	@${REINPLACE_CMD} -e 's/resize_term/resizeterm/g' \
36
		${WRKSRC}/src/ui.c
46
		${WRKSRC}/src/ui.c
37
38
.if defined(WITH_VIFM_SCREEN)
47
.if defined(WITH_VIFM_SCREEN)
39
pre-build:
40
	@${REINPLACE_CMD} -e "s/cfg.use_screen = 0/cfg.use_screen = 1/" \
48
	@${REINPLACE_CMD} -e "s/cfg.use_screen = 0/cfg.use_screen = 1/" \
41
		${WRKSRC}/src/config.c
49
		${WRKSRC}/src/config.c
42
	@${REINPLACE_CMD} -e "s/USE_SCREEN=0/USE_SCREEN=1/" \
50
	@${REINPLACE_CMD} -e "s/USE_SCREEN=0/USE_SCREEN=1/" \
43
		${WRKSRC}/src/vifmrc
51
		${WRKSRC}/src/vifmrc
44
.else
45
pre-everything::
46
	@${ECHO_CMD} "You can define WITH_VIFM_SCREEN to add screen as a dependency."
47
.endif
52
.endif
48
53
49
.include <bsd.port.mk>
54
.include <bsd.port.post.mk>
(-)misc/vifm/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (vifm-0.5.tar.bz2) = 11bc1138050d6b2887d7f099e12bc57d27cc60a6f14252744654c35d22d38164
1
SHA256 (vifm-0.6.2.tar.bz2) = 8375f0cce8e1a703cf97322dbbab7ce2fc3be2b2ee072085b10623510b88c137
2
SIZE (vifm-0.5.tar.bz2) = 272835
2
SIZE (vifm-0.6.2.tar.bz2) = 333249
(-)misc/vifm/files/patch-src__commands.c (+11 lines)
Line 0 Link Here
1
--- src/commands.c.orig	2011-06-19 22:52:25.000000000 +0900
2
+++ src/commands.c	2011-06-26 15:19:03.000000000 +0900
3
@@ -27,6 +27,8 @@
4
 #include <stdlib.h> /*  system() */
5
 #include <string.h> /* strncmp() */
6
 #include <time.h>
7
+#include <sys/types.h>
8
+#include <sys/wait.h>
9
 
10
 #include "background.h"
11
 #include "bookmarks.h"
(-)misc/vifm/files/patch-src__file_magic.c (+13 lines)
Line 0 Link Here
1
--- src/file_magic.c.orig	2011-06-19 22:52:25.000000000 +0900
2
+++ src/file_magic.c	2011-06-26 15:30:02.000000000 +0900
3
@@ -9,7 +9,9 @@
4
 #include <magic.h>
5
 #endif
6
 
7
-#include <sys/dir.h>
8
+#include <sys/types.h>
9
+#include <dirent.h>
10
+#include <limits.h>
11
 
12
 #include <stdio.h>
13
 #include <stdlib.h>
(-)misc/vifm/files/patch-src__status.c (+12 lines)
Line 0 Link Here
1
--- src/status.c.orig	2011-06-19 22:52:25.000000000 +0900
2
+++ src/status.c	2011-06-26 15:27:19.000000000 +0900
3
@@ -41,7 +41,9 @@
4
 	curr_stats.dirsize_cache = 0;
5
 	curr_stats.fast_run = 0;
6
 	curr_stats.errmsg_shown = 0;
7
+#ifdef HAVE_LIBGTK
8
 	curr_stats.gtk_available = 0;
9
+#endif
10
 }
11
 
12
 /* vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 : */

Return to bug 158493