blob: 72147298d2da1cf96ba22a20e79cff19ebb19ee2 (
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
47
48
49
50
51
52
53
54
|
# $NetBSD: Makefile,v 1.29 2012/10/08 09:57:21 asau Exp $
#
DISTNAME= FD-3.00j
PKGNAME= ${DISTNAME:tl}
PKGREVISION= 1
CATEGORIES= misc shells
MASTER_SITES= http://hp.vector.co.jp/authors/VA012337/soft/fd/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://hp.vector.co.jp/authors/VA012337/soft/fd/
COMMENT= File and directory management tool
MAKE_FLAGS+= CONFDIR=${PKG_SYSCONFDIR}
MAKE_FLAGS+= PREFIX=${PREFIX}
.include "../../mk/bsd.prefs.mk"
MANLANG?= ja_JP.eucJP
MAKE_ENV+= LANGDIR=${MANLANG:Q} DATADIR=${DATADIR}
PLIST_SUBST+= FD_CONFIG=${FD_CONFIG:Q} MANLANG=${MANLANG:Q}
DATADIR= ${PREFIX}/share/fd
DOCDIR= ${PREFIX}/share/doc/fd
EXAMPLESDIR= ${PREFIX}/share/examples/fd
CFLAGS+= -DUSEMANLANG -DUSEDATADIR
DESTDIR_VARNAME= BUILD
DOCS= FAQ LICENSES HISTORY README TECHKNOW ToAdmin
.include "options.mk"
CONF_FILES+= ${EXAMPLESDIR}/${FD_CONFIG} ${PKG_SYSCONFDIR}/${FD_CONFIG}
.if !empty(PKG_OPTIONS:Mfd-small)
USE_TOOLS+= patch
post-configure:
${RUN}cd ${WRKSRC}; ${PATCH} -R < _fdrc.dif
.endif
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}/ja
${RUN}cd ${WRKSRC}; \
for i in ${DOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$${i}.eng ${DESTDIR}${DOCDIR}/$${i}; \
${INSTALL_DATA} ${WRKSRC}/$${i} ${DESTDIR}${DOCDIR}/ja; \
done
${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/_fdrc ${DESTDIR}${EXAMPLESDIR}/${FD_CONFIG}
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|