02f27a83b4
locale set by the user. Add LANG=C and LC_ALL=C at the beginning of bsd.port.mk and export them so all commands are executed with the C locale. LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3) as default value for LC_* variables, so normally it isn't used when LC_ALL is set, but there's code out there that looks at LANG directly so it's safer to set it as well. The only commands not captured by this are != assignments before any inclusion of bsd.port.*mk. Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a different locale (e.g. USE_LOCALE=en_US.UTF-8). PR: 215882 Exp-run by: antoine Approved by: portmgr (antoine)
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= fd
|
|
PORTVERSION= 3.01b
|
|
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
|
|
|
|
USE_LOCALE= ja
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
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
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/_fdrc.orig \
|
|
${STAGEDIR}${PREFIX}/etc/fd2rc.dist
|
|
${INSTALL_DATA} ${WRKSRC}/_fdrc ${STAGEDIR}${PREFIX}/etc/fd2rc.sample
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}
|
|
${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${DOCS_JA:S,^,${WRKSRC}/,} \
|
|
${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|