2002-08-11 02:37:27 +00:00
|
|
|
# New ports collection makefile for: vifm
|
|
|
|
# Date created: 09 August 2002
|
|
|
|
# Whom: Stefan Walter <swalter@lettermax.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vifm
|
2003-07-06 15:37:55 +00:00
|
|
|
PORTVERSION= 0.2a
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 1
|
2002-08-11 02:37:27 +00:00
|
|
|
CATEGORIES= misc
|
2004-03-11 10:46:58 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2002-08-11 02:37:27 +00:00
|
|
|
MASTER_SITE_SUBDIR= vifm
|
|
|
|
|
2003-07-06 15:37:55 +00:00
|
|
|
MAINTAINER= sw@gegenunendlich.de
|
2003-02-21 12:51:06 +00:00
|
|
|
COMMENT= Ncurses based file manager with vi like keybindings
|
2002-08-11 02:37:27 +00:00
|
|
|
|
2003-06-04 22:21:13 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2002-08-11 02:37:27 +00:00
|
|
|
.if defined(WITH_VIFM_SCREEN)
|
|
|
|
RUN_DEPENDS= screen:${PORTSDIR}/misc/screen
|
|
|
|
.else
|
2003-02-28 22:53:02 +00:00
|
|
|
pre-everything::
|
2002-08-11 02:37:27 +00:00
|
|
|
@${ECHO_CMD} "You can define WITH_VIFM_SCREEN to add screen as a dependency."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-01-25 17:24:31 +00:00
|
|
|
PLIST_FILES= bin/pauseme \
|
|
|
|
bin/vifm \
|
|
|
|
share/vifm/vifm-0.2.help.txt \
|
|
|
|
share/vifm/vifm.txt \
|
|
|
|
share/vifm/vifm.vim \
|
|
|
|
share/vifm/vifmrc0.2
|
|
|
|
PLIST_DIRS= share/vifm
|
|
|
|
|
2003-06-04 22:21:13 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2002-08-11 02:37:27 +00:00
|
|
|
.if defined(WITH_VIFM_SCREEN)
|
|
|
|
pre-build:
|
|
|
|
@${REINPLACE_CMD} -e "s/cfg.use_screen = 0/cfg.use_screen = 1/" \
|
2003-06-04 22:21:13 +00:00
|
|
|
${WRKSRC}/src/config.c
|
2002-08-11 02:37:27 +00:00
|
|
|
@${REINPLACE_CMD} -e "s/USE_SCREEN=0/USE_SCREEN=1/" \
|
2003-06-04 22:21:13 +00:00
|
|
|
${WRKSRC}/src/vifmrc0.2
|
2002-08-11 02:37:27 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|