24 lines
790 B
Makefile
24 lines
790 B
Makefile
# $NetBSD: build.mk,v 1.10 2019/07/10 10:40:35 markd Exp $
|
|
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-meson-[0-9]*:../../devel/py-meson
|
|
|
|
.PHONY: meson-configure meson-build meson-install
|
|
|
|
do-configure: meson-configure
|
|
meson-configure:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} meson --prefix ${PREFIX} --libdir lib --mandir ${PKGMANDIR} --sysconfdir ${PKG_SYSCONFDIR} --buildtype=plain ${MESON_ARGS} . output
|
|
|
|
do-build: meson-build
|
|
meson-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ninja -C output
|
|
|
|
do-install: meson-install
|
|
meson-install:
|
|
if [ -f ${WRKSRC}/meson_post_install.py ]; then \
|
|
${CHMOD} +x ${WRKSRC}/meson_post_install.py; \
|
|
fi
|
|
cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ninja -C output install
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
.include "../../lang/python/application.mk"
|