1998-09-03 22:11:22 +02:00
|
|
|
# New ports collection makefile for: FDclone
|
1996-03-20 08:53:43 +01:00
|
|
|
# Date created: 20 Feb 1996
|
|
|
|
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
|
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1996-03-20 08:53:43 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 10:49:30 +02:00
|
|
|
PORTNAME= fd
|
2003-04-19 14:35:58 +02:00
|
|
|
PORTVERSION= 2.03a
|
2003-04-23 12:20:11 +02:00
|
|
|
PORTREVISION= 1
|
2002-01-29 22:40:13 +01:00
|
|
|
CATEGORIES= shells
|
2001-12-27 09:58:20 +01:00
|
|
|
MASTER_SITES= http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
|
|
|
|
ftp://ftp.vector.co.jp/pack/unix/util/file/filer/fd/
|
2000-04-14 10:49:30 +02:00
|
|
|
DISTNAME= FD-${PORTVERSION}
|
1996-03-20 08:53:43 +01:00
|
|
|
|
2002-02-10 18:12:36 +01:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2003-02-18 06:52:56 +01:00
|
|
|
COMMENT= A CUI-based file and directory management tool
|
1996-03-20 08:53:43 +01:00
|
|
|
|
2002-07-13 06:19:38 +02:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2002-02-10 18:12:36 +01:00
|
|
|
MANLANG= "" ja
|
1996-11-17 10:06:37 +01:00
|
|
|
MAN1= fd.1
|
2002-02-10 18:12:36 +01:00
|
|
|
MAKE_ENV= LANG=ja
|
2002-07-13 06:19:38 +02:00
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
|
1998-09-03 22:11:22 +02:00
|
|
|
|
2002-02-10 18:12:36 +01:00
|
|
|
DOCS_EN= FAQ.eng \
|
|
|
|
LICENSES.eng \
|
|
|
|
README.eng \
|
|
|
|
TECHKNOW.eng \
|
|
|
|
ToAdmin.eng
|
|
|
|
DOCS_JA= FAQ \
|
|
|
|
HISTORY \
|
|
|
|
LICENSES \
|
|
|
|
README \
|
|
|
|
TECHKNOW \
|
|
|
|
ToAdmin
|
1996-03-20 08:53:43 +01:00
|
|
|
|
2002-07-13 06:19:38 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -E -e 's|^(#define[[:space:]]+EXTENDCCOPT[[:space:]]+)"-O"$$|\1 "${CFLAGS}"|' ${WRKSRC}/machine.h
|
|
|
|
|
1997-01-06 07:38:35 +01:00
|
|
|
post-install:
|
2002-02-10 18:12:36 +01:00
|
|
|
@${ECHO} "Updating /etc/shells"
|
2003-01-05 20:14:20 +01:00
|
|
|
@-${CP} /etc/shells /etc/shells.bak; \
|
|
|
|
(${GREP} -v ${PREFIX}/bin/fdsh /etc/shells.bak; \
|
|
|
|
${ECHO_CMD} ${PREFIX}/bin/fdsh) > /etc/shells; \
|
|
|
|
${RM} -f /etc/shells.bak
|
1998-09-03 22:11:22 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-02-10 18:12:36 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/ja/${PORTNAME}
|
|
|
|
@for i in ${DOCS_EN}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/${PORTNAME}; \
|
1998-09-03 22:11:22 +02:00
|
|
|
done
|
2002-02-10 18:12:36 +01:00
|
|
|
@for i in ${DOCS_JA}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/ja/${PORTNAME}; \
|
|
|
|
done
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/_fdrc.orig ${PREFIX}/etc/fd2rc.dist
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/_fdrc ${PREFIX}/etc/fd2rc.sample
|
|
|
|
if [ ! -f ${PREFIX}/etc/fd2rc ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/fd2rc.sample ${PREFIX}/etc/fd2rc; \
|
|
|
|
fi
|
2000-10-08 12:23:48 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-02-10 18:12:36 +01:00
|
|
|
.endif
|
1997-01-06 07:38:35 +01:00
|
|
|
|
1996-03-20 08:53:43 +01:00
|
|
|
.include <bsd.port.mk>
|