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)
40 lines
1,021 B
Makefile
40 lines
1,021 B
Makefile
# Created by: Felix Palmen <felix@palmen-it.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= linuxdoc-tools
|
|
PORTVERSION= 0.9.71
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= DEBIAN
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION}.orig
|
|
|
|
MAINTAINER= felix@palmen-it.de
|
|
COMMENT= Fork of SGML-tools specially tailored for linuxdoc SGMLs
|
|
|
|
LICENSE= GPLv3 LinuxdocTools
|
|
LICENSE_COMB= multi
|
|
LICENSE_NAME_LinuxdocTools= The linuxdoc-tools license
|
|
LICENSE_FILE_LinuxdocTools= ${WRKSRC}/COPYING
|
|
LICENSE_PERMS_LinuxdocTools= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
BUILD_DEPENDS= gawk:lang/gawk \
|
|
nsgmls:textproc/jade \
|
|
sgmlsasp:textproc/sgmls
|
|
RUN_DEPENDS= gawk:lang/gawk \
|
|
nsgmls:textproc/jade \
|
|
sgmlsasp:textproc/sgmls
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake perl5
|
|
CONFIGURE_ARGS= --with-installed-sgmlsasp
|
|
|
|
PORTDOCS= *
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_BUILD_DEPENDS= bash:shells/bash
|
|
DOCS_USE= tex=latex:build tex=pdftex:build tex=dvipsk:build
|
|
DOCS_USES= makeinfo
|
|
DOCS_CONFIGURE_ENABLE= docs
|
|
|
|
.include <bsd.port.mk>
|