1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Support stage

This commit is contained in:
Baptiste Daroussin 2014-03-06 17:38:47 +00:00
parent 261d0e7b24
commit b9b706f117
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347285
2 changed files with 17 additions and 29 deletions

View File

@ -9,12 +9,12 @@ MASTER_SITES= http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
DISTNAME= FD-${PORTVERSION}
MAINTAINER= knu@FreeBSD.org
COMMENT= A CUI-based file and directory management tool
COMMENT= CUI-based file and directory management tool
OPTIONS_DEFINE= DOCS
MANLANG= "" ja
MAN1= fd.1 fdsh.1
MAKE_ENV= LANG=ja
MAKE_ARGS= CC="${CC}" CONFDIR="${PREFIX}/etc"
MAKE_ARGS= CC="${CC}" PREFIX="\$$(DESTDIR)${PREFIX}" CONFDIR="\$$(DESTDIR)${PREFIX}/etc"
DOCS_EN= FAQ.eng \
LICENSES.eng \
@ -28,37 +28,21 @@ DOCS_JA= FAQ \
TECHKNOW \
ToAdmin
NO_STAGE= yes
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:
@${ECHO} "Updating /etc/shells"
@-${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
@${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
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${PREFIX}/share/doc/ja/${PORTNAME}
@${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 ${DOCSDIR}; \
${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${DOCSDIR}; \
done
@for i in ${DOCS_JA}; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/ja/${PORTNAME}; \
${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}; \
done
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "powerpc"
BROKEN= Does not compile on powerpc: tzfile.h: No such file or directory
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -10,6 +10,10 @@ etc/fd2rc.dist
@unexec if cmp -s %D/etc/fd2rc %D/etc/fd2rc.sample; then rm -f %D/etc/fd2rc; fi
etc/fd2rc.sample
@exec [ ! -f %B/fd2rc ] && cp %B/%f %B/fd2rc
man/ja/man1/fd.1.gz
man/ja/man1/fdsh.1.gz
man/man1/fd.1.gz
man/man1/fdsh.1.gz
%%PORTDOCS%%share/doc/ja/fd/FAQ
%%PORTDOCS%%share/doc/ja/fd/HISTORY
%%PORTDOCS%%share/doc/ja/fd/LICENSES