blob: 436541cfaea59fd61f19339f3967fbb387a7bf74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# New ports collection makefile for: vifm
# Date created: 09 August 2002
# Whom: Stefan Walter <swalter@lettermax.de>
#
# $FreeBSD$
#
PORTNAME= vifm
PORTVERSION= 0.2a
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= vifm
MAINTAINER= sw@gegenunendlich.de
COMMENT= Ncurses based file manager with vi like keybindings
WRKSRC= ${WRKDIR}/${PORTNAME}
.if defined(WITH_VIFM_SCREEN)
RUN_DEPENDS= screen:${PORTSDIR}/misc/screen
.else
pre-everything::
@${ECHO_CMD} "You can define WITH_VIFM_SCREEN to add screen as a dependency."
.endif
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
.if defined(WITH_VIFM_SCREEN)
pre-build:
@${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/vifmrc0.2
.endif
.include <bsd.port.mk>
|