Skip to content

Commit

Permalink
Framework: Use WRK_ENV when handling USE_LOCALE
Browse files Browse the repository at this point in the history
PR:		276478
  • Loading branch information
arrowd committed Mar 28, 2024
1 parent aa4ef7e commit bf8e12d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Mk/bsd.port.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2012,8 +2012,7 @@ ERROR+= "Unknown USES=${f:C/\:.*//}"
. endif

. if defined(USE_LOCALE)
CONFIGURE_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE}
MAKE_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE}
WRK_ENV+= LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE}
. endif

# Macro for doing in-place file editing using regexps. REINPLACE_ARGS may only
Expand Down
2 changes: 1 addition & 1 deletion lang/ghc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ CONFIGURE_ARGS+= --with-system-libffi --with-ffi-includes=${LOCALBASE}/include -
CONFIGURE_ENV+= CC=${CC} CXX=${CXX}
SHEBANG_FILES+= hadrian/bootstrap/bootstrap.py
HADRIAN_CMD= ${WRKSRC}/hadrian/bootstrap/_build/bin/hadrian ${HADRIAN_DOCS_ARG} ${HADRIAN_GMP_ARG}
DO_MAKE_BUILD= ${SETENV} ${MAKE_ENV} ${HADRIAN_CMD} ${_MAKE_JOBS} --flavour=ports
DO_MAKE_BUILD= ${SETENVI} ${WRK_ENV} ${HADRIAN_CMD} ${_MAKE_JOBS} --flavour=ports
ALL_TARGET= binary-dist-dir
INSTALL_WRKSRC= ${WRKSRC}/_build/bindist/ghc-${GHC_VERSION}-${CONFIGURE_TARGET}
INSTALL_TARGET= install
Expand Down
4 changes: 2 additions & 2 deletions math/scilab-toolbox-swt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ USE_LOCALE= en_US.UTF-8

SCILAB_CMD= ${LOCALBASE}/bin/scilab-adv-cli
SCILAB_ARGS= -noatomsautoload -nb -nouserstartup
MAKE_ENV= SCI_JAVA_ENABLE_HEADLESS=1 SCI_DISABLE_TK=1
WRK_ENV= SCI_JAVA_ENABLE_HEADLESS=1 SCI_DISABLE_TK=1
DOS2UNIX_FILES= etc/swt.start

CONTRIBDIR?= share/scilab/contrib
Expand Down Expand Up @@ -57,7 +57,7 @@ pre-build:

do-build:
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${SCILAB_CMD} ${SCILAB_ARGS} -f builder.sce
${SETENVI} ${WRK_ENV} ${SCILAB_CMD} ${SCILAB_ARGS} -f builder.sce

do-install:
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${TOOLBOXDIR} "-name *\.so -or -name loader*\.sce"
Expand Down

0 comments on commit bf8e12d

Please sign in to comment.