1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/shells/fd/Makefile
Baptiste Daroussin b9b706f117 Support stage
2014-03-06 17:38:47 +00:00

49 lines
1.3 KiB
Makefile

# Created by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
# $FreeBSD$
PORTNAME= fd
PORTVERSION= 3.01a
CATEGORIES= shells net
MASTER_SITES= http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
ftp://ftp.unixusers.net/src/fdclone/
DISTNAME= FD-${PORTVERSION}
MAINTAINER= knu@FreeBSD.org
COMMENT= CUI-based file and directory management tool
OPTIONS_DEFINE= DOCS
MAKE_ENV= LANG=ja
MAKE_ARGS= CC="${CC}" PREFIX="\$$(DESTDIR)${PREFIX}" CONFDIR="\$$(DESTDIR)${PREFIX}/etc"
DOCS_EN= FAQ.eng \
LICENSES.eng \
README.eng \
TECHKNOW.eng \
ToAdmin.eng
DOCS_JA= FAQ \
HISTORY \
LICENSES \
README \
TECHKNOW \
ToAdmin
BROKEN_powerpc= Does not compile on powerpc: tzfile.h: No such file or directory
post-configure:
${REINPLACE_CMD} -E -e 's|^(#[[:space:]]*define[[:space:]]+EXTENDCCOPT[[:space:]]+"([^"]+ )?)-O(["[:space:]])|\1${CFLAGS}\3|' ${WRKSRC}/machine.h
post-install:
@${INSTALL_DATA} ${WRKSRC}/_fdrc.orig ${STAGEDIR}${PREFIX}/etc/fd2rc.dist
@${INSTALL_DATA} ${WRKSRC}/_fdrc ${STAGEDIR}${PREFIX}/etc/fd2rc.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}
@for i in ${DOCS_EN}; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${DOCSDIR}; \
done
@for i in ${DOCS_JA}; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}; \
done
.include <bsd.port.mk>