aboutsummaryrefslogtreecommitdiff
path: root/misc/vifm
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-05-06 15:34:17 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-05-06 15:34:17 +0000
commit9f1de9b900c064307cc328ec436f07477dfaa7f0 (patch)
tree5b19e4fae39149280653cc670bc170d039477f8e /misc/vifm
parent296877462b8b100e9f83f9c6aa6ed4bff34c6def (diff)
downloadports-9f1de9b900c064307cc328ec436f07477dfaa7f0.tar.gz
ports-9f1de9b900c064307cc328ec436f07477dfaa7f0.zip
Convert USE_NCURSES by USES=ncurses
Convert USE_READLINE by USES=readline
Notes
Notes: svn path=/head/; revision=317525
Diffstat (limited to 'misc/vifm')
-rw-r--r--misc/vifm/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/misc/vifm/Makefile b/misc/vifm/Makefile
index e61261114d07..336bf437f04c 100644
--- a/misc/vifm/Makefile
+++ b/misc/vifm/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: vifm
-# Date created: 09 August 2002
-# Whom: Stefan Walter <swalter@lettermax.de>
-#
+# Created by: Stefan Walter <swalter@lettermax.de>
# $FreeBSD$
-#
PORTNAME= vifm
PORTVERSION= 0.6.3
@@ -16,10 +12,11 @@ COMMENT= Ncurses based file manager with vi like keybindings
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-OPTIONS= VIFM_SCREEN "Use vifm with the screen program" off
+OPTIONS_DEFINE= VIFM_SCREEN
+VIFM_SCREEN_DESC= Use vifm with the screen program
+USES= ncurses
USE_BZIP2= yes
-USE_NCURSES= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-gtk
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
@@ -35,20 +32,20 @@ PLIST_FILES= bin/vifm \
%%DATADIR%%/vifmrc
PLIST_DIRS= %%DATADIR%%
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_VIFM_SCREEN)
+.if ${PORT_OPTIONS:MVIFM_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)
+.if ${PORT_OPTIONS:MVIFM_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 <bsd.port.post.mk>
+.include <bsd.port.mk>