blob: 729a5d313be1c2bb6b06380489dfee02ff67fdfd (
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
|
# $NetBSD: Makefile,v 1.24 2007/01/22 11:30:01 hira Exp $
#
DISTNAME= FD-2.09a
PKGNAME= fd-2.09a
PKGREVISION= 1
CATEGORIES= misc shells
MASTER_SITES= http://hp.vector.co.jp/authors/VA012337/soft/fd/
MAINTAINER= nobu@psrc.isac.co.jp
HOMEPAGE= http://hp.vector.co.jp/authors/VA012337/soft/fd/
COMMENT= File and directory management tool
MAKE_ENV+= CONFDIR=${PKG_SYSCONFDIR:Q}
MANLANG?= ja_JP.eucJP
MAKE_ENV+= LANGDIR=${MANLANG:Q} DATADIR=${DATADIR:Q}
PLIST_SUBST+= FD_CONFIG=${FD_CONFIG:Q} MANLANG=${MANLANG:Q}
DATADIR= ${PREFIX}/share/fd
DOCDIR= ${PREFIX}/share/doc/fd
EXAMPLESDIR= ${PREFIX}/share/examples/fd
DOCS= FAQ LICENSES HISTORY README TECHKNOW ToAdmin
.include "options.mk"
CONF_FILES+= ${EXAMPLESDIR:Q}/${FD_CONFIG} ${PKG_SYSCONFDIR:Q}/${FD_CONFIG}
.if empty(PKG_OPTIONS:Mfd-small)
PLIST_SRC= ${PKGDIR}/PLIST ${WRKSRC}/PLIST ${PKGDIR}/PLIST.common_end
.else
USE_TOOLS+= patch
post-configure:
cd ${WRKSRC}; ${PATCH} -R < _fdrc.dif
.endif
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}/ja
cd ${WRKSRC}; \
for i in ${DOCS}; do \
${INSTALL_DATA} ${WRKSRC}/$$i.eng ${DOCDIR}/$$i; \
${INSTALL_DATA} ${WRKSRC}/$$i ${DOCDIR}/ja; \
done
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
cd ${WRKSRC}; ${INSTALL_DATA} _fdrc ${EXAMPLESDIR}/${FD_CONFIG}
.if empty(PKG_OPTIONS:Mfd-small)
${ECHO} "share/fd/fd-dict.tbl" > ${WRKSRC}/PLIST
.endif
.include "../../mk/bsd.pkg.mk"
|