summaryrefslogtreecommitdiff
path: root/shells/fd/Makefile
blob: 34981c2b3d56a0e1d91456d402bbcc327311e757 (plain) (blame)
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
# Created by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>

PORTNAME=	fd
PORTVERSION=	3.01j
CATEGORIES=	shells net
MASTER_SITES=	http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
		ftp://ftp.unixusers.net/src/fdclone/
DISTNAME=	FD-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	CUI-based file and directory management tool

USE_LOCALE=	ja
MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" \
		PREFIX="\$$(DESTDIR)${PREFIX}" \
		CONFDIR="\$$(DESTDIR)${PREFIX}/etc" \

CONFLICTS_INSTALL=	fd-find # bin/fd

DOCS_EN=	FAQ.eng \
		LICENSES.eng \
		README.eng \
		TECHKNOW.eng \
		ToAdmin.eng
DOCS_JA=	FAQ \
		HISTORY \
		LICENSES \
		README \
		TECHKNOW \
		ToAdmin

OPTIONS_DEFINE=	DOCS

post-install:
	${INSTALL_DATA} ${WRKSRC}/_fdrc.orig \
		${STAGEDIR}${PREFIX}/etc/fd2rc.dist
	${INSTALL_DATA} ${WRKSRC}/_fdrc ${STAGEDIR}${PREFIX}/etc/fd2rc.sample

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}
	${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${DOCS_JA:S,^,${WRKSRC}/,} \
		${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}

.include <bsd.port.mk>