summaryrefslogtreecommitdiff
path: root/misc/vfu/Makefile
blob: 122b4b4f099dbbdcad4ff867b7acb2376eb7b3e6 (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
43
44
45
46
# $NetBSD: Makefile,v 1.19 2001/02/28 11:25:26 wiz Exp $
#

DISTNAME=	vfu-3.01
CATEGORIES=	misc
MASTER_SITES=	http://www.biscom.net/~cade/away/vfu/ \
		${MASTER_SITE_SUNSITE:=utils/file/managers/}
EXTRACT_SUFX=	.src.tar.gz

MAINTAINER=	hubertf@netbsd.org
HOMEPAGE=	http://www.biscom.net/~cade/away/vfu/
COMMENT=	Small, handy, easy-to-use file manager

USE_CURSES=	# defined
REPLACE_NCURSES=	${WRKSRC}/vfu/makefile ${WRKSRC}/vslib/unicon.h \
			${WRKSRC}/vslib/makefile
USE_PERL5=	# defined

do-build:
	cd ${WRKSRC} ; \
	 ${SETENV} ${MAKE_ENV} ${SH} build.netbsd

do-install:
	cd ${WRKSRC} ; \
	${INSTALL_PROGRAM} vfu/vfu ftparc/ftparc ${PREFIX}/bin
	for i in rx_auto rx_deb rx_ftp rx_tar rx_zip ; do \
		${ECHO} $$i ; \
		${SED} 's,/usr/bin/perl,${PERL5},' \
			<${WRKSRC}/rx/$$i >${WRKSRC}/rx/$$i.new ; \
		${INSTALL_SCRIPT} ${WRKSRC}/rx/$$i.new ${PREFIX}/bin/$$i ; \
	done
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vfu
	${INSTALL_DATA} \
		${WRKSRC}/COPYING \
		${WRKSRC}/INSTALL \
		${WRKSRC}/vfu/README \
		${WRKSRC}/VFU.txt \
		${PREFIX}/share/doc/vfu
	${INSTALL_DATA} \
		${WRKSRC}/vfu.conf \
		${PREFIX}/share/doc/vfu/vfurc.example
	[ -f ${PREFIX}/etc/vfurc ] || \
		${INSTALL_DATA} \
		 ${PREFIX}/share/doc/vfu/vfurc.example ${PREFIX}/etc/vfurc

.include "../../mk/bsd.pkg.mk"