Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/meson.mk
Show All 14 Lines | |||||
# Default: _build | # Default: _build | ||||
# | # | ||||
# MAINTAINER: gnome@FreeBSD.org | # MAINTAINER: gnome@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_MESON_MK) | .if !defined(_INCLUDE_USES_MESON_MK) | ||||
_INCLUDE_USES_MESON_MK= yes | _INCLUDE_USES_MESON_MK= yes | ||||
# Sanity check | # Sanity check | ||||
.if !empty(meson_ARGS) | . if !empty(meson_ARGS) | ||||
IGNORE= Incorrect 'USES+= meson:${meson_ARGS}'. meson takes no arguments | IGNORE= Incorrect 'USES+= meson:${meson_ARGS}'. meson takes no arguments | ||||
.endif | . endif | ||||
BUILD_DEPENDS+= meson>=0.57.1_1:devel/meson | BUILD_DEPENDS+= meson>=0.57.1_1:devel/meson | ||||
# meson uses ninja | # meson uses ninja | ||||
.include "${USESDIR}/ninja.mk" | .include "${USESDIR}/ninja.mk" | ||||
# meson might have issues with non-unicode locales | # meson might have issues with non-unicode locales | ||||
USE_LOCALE?= en_US.UTF-8 | USE_LOCALE?= en_US.UTF-8 | ||||
CONFIGURE_ARGS+= --prefix ${PREFIX} \ | CONFIGURE_ARGS+= --prefix ${PREFIX} \ | ||||
--mandir man \ | --mandir man \ | ||||
--infodir ${INFO_PATH} | --infodir ${INFO_PATH} | ||||
# Disable color output. Meson forces it on by default, Ninja | # Disable color output. Meson forces it on by default, Ninja | ||||
# strips it before it goes to the log, but Samurai does not, so we | # strips it before it goes to the log, but Samurai does not, so we | ||||
# might end up with ANSI escape sequences in the logs. | # might end up with ANSI escape sequences in the logs. | ||||
CONFIGURE_ARGS+= -Db_colorout=never | CONFIGURE_ARGS+= -Db_colorout=never | ||||
# meson has it own strip mechanic | # meson has it own strip mechanic | ||||
INSTALL_TARGET= install | INSTALL_TARGET= install | ||||
# should we have strip separate from WITH_DEBUG? | # should we have strip separate from WITH_DEBUG? | ||||
.if defined(WITH_DEBUG) | . if defined(WITH_DEBUG) | ||||
CONFIGURE_ARGS+= --buildtype debug | CONFIGURE_ARGS+= --buildtype debug | ||||
.else | . else | ||||
CONFIGURE_ARGS+= --buildtype release \ | CONFIGURE_ARGS+= --buildtype release \ | ||||
--strip | --strip | ||||
.endif | . endif | ||||
HAS_CONFIGURE= yes | HAS_CONFIGURE= yes | ||||
CONFIGURE_CMD= meson | CONFIGURE_CMD= meson | ||||
# Pull in manual set settings and from options | # Pull in manual set settings and from options | ||||
CONFIGURE_ARGS+= ${MESON_ARGS} | CONFIGURE_ARGS+= ${MESON_ARGS} | ||||
BUILD_WRKSRC= ${WRKSRC}/${MESON_BUILD_DIR} | BUILD_WRKSRC= ${WRKSRC}/${MESON_BUILD_DIR} | ||||
Show All 13 Lines |