diff options
author | olgeni <olgeni@FreeBSD.org> | 2015-07-13 19:23:37 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2015-07-13 19:23:37 +0800 |
commit | ca24d745a6d4f0f41eadd20801b9509703ee0d34 (patch) | |
tree | dc3b71e0c7daae8f2f12aecfaa6c80b3e4d9b810 /Mk/Uses | |
parent | 7195bbc56c62f70f4ac1fc177247a5b3e1f2e5d9 (diff) | |
download | freebsd-ports-gnome-ca24d745a6d4f0f41eadd20801b9509703ee0d34.tar.gz freebsd-ports-gnome-ca24d745a6d4f0f41eadd20801b9509703ee0d34.tar.zst freebsd-ports-gnome-ca24d745a6d4f0f41eadd20801b9509703ee0d34.zip |
Add support for more variables in elixir.mk.
- MIX_ENV, which works like MAKE_ENV for Mix builds
- MIX_TARGET ("compile", etc.)
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/elixir.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mk/Uses/elixir.mk b/Mk/Uses/elixir.mk index 91491c0b259c..24618a58bb11 100644 --- a/Mk/Uses/elixir.mk +++ b/Mk/Uses/elixir.mk @@ -19,8 +19,10 @@ # MIX_RUN_DEPS - List of RUN_DEPENDS in category/portname format # MIX_DOC_DIRS - Extra doc directories to be installed in DOCSDIR # MIX_DOC_FILES - Extra doc files to be installed in DOCSDIR (usually README.md) +# MIX_ENV - Environment for the Mix build (same format as MAKE_ENV) # MIX_ENV_NAME - Name of the Mix build environment, usually "prod" # MIX_BUILD_NAME - Name of the build output in _build/, usually ${MIX_ENV_NAME} +# MIX_TARGET - Name of the Mix target, usually "compile" # MIX_EXTRA_APPS - List of sub-applications to be built, if any # MIX_EXTRA_DIRS - List of extra directories to be installed in ELIXIR_APP_ROOT # MIX_EXTRA_FILES - List of extra files to be installed in ELIXIR_APP_ROOT @@ -39,13 +41,15 @@ ELIXIR_APP_ROOT?= ${PREFIX}/lib/elixir/lib/${ELIXIR_APP_NAME} ELIXIR_HIDDEN?= "^${PORTNAME}$$" ELIXIR_LOCALE?= en_US.UTF-8 MIX_CMD?= ${LOCALBASE}/bin/mix -MIX_COMPILE?= LANG=${ELIXIR_LOCALE} MIX_ENV=${MIX_ENV_NAME} ELIXIR_HIDDEN=${ELIXIR_HIDDEN} ${MIX_CMD} compile +MIX_COMPILE?= ${SETENV} ${MIX_ENV} LANG=${ELIXIR_LOCALE} MIX_ENV=${MIX_ENV_NAME} ELIXIR_HIDDEN=${ELIXIR_HIDDEN} ${MIX_CMD} ${MIX_TARGET} MIX_BUILD_DEPS?= MIX_RUN_DEPS?= MIX_DOC_DIRS?= MIX_DOC_FILES?= README.md +MIX_ENV?= MIX_ENV_NAME?= prod MIX_BUILD_NAME?= prod +MIX_TARGET?= compile MIX_EXTRA_APPS?= MIX_EXTRA_DIRS?= MIX_EXTRA_FILES?= |