pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel
Module Name: pkgsrc
Committed By: nia
Date: Sat Oct 5 20:09:52 UTC 2019
Modified Files:
pkgsrc/devel/meson: build.mk
pkgsrc/devel/py-meson: build.mk
Log Message:
meson: Support CONFIGURE_DIRS et al.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/meson/build.mk
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/py-meson/build.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/meson/build.mk
diff -u pkgsrc/devel/meson/build.mk:1.1 pkgsrc/devel/meson/build.mk:1.2
--- pkgsrc/devel/meson/build.mk:1.1 Fri Oct 4 14:06:18 2019
+++ pkgsrc/devel/meson/build.mk Sat Oct 5 20:09:52 2019
@@ -1,7 +1,11 @@
-# $NetBSD: build.mk,v 1.1 2019/10/04 14:06:18 prlw1 Exp $
+# $NetBSD: build.mk,v 1.2 2019/10/05 20:09:52 nia Exp $
BUILD_DEPENDS+= meson-[0-9]*:../../devel/meson
+CONFIGURE_DIRS?= .
+BUILD_DIRS?= ${CONFIGURE_DIRS}
+INSTALL_DIRS?= ${CONFIGURE_DIRS}
+
.PHONY: meson-configure meson-build meson-install
# pkgsrc contains multiple llvm-config executables at multiple locations.
@@ -11,17 +15,25 @@ MAKE_ENV+= LLVM_CONFIG_PATH=${LLVM_CONFI
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
+.for d in ${CONFIGURE_DIRS}
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} meson \
+ --prefix ${PREFIX} --libdir lib --mandir ${PKGMANDIR} \
+ --sysconfdir ${PKG_SYSCONFDIR} --buildtype=plain ${MESON_ARGS} . output
+.endfor
do-build: meson-build
meson-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ninja -j ${MAKE_JOBS:U1} -C output
+.for d in ${BUILD_DIRS}
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} ninja -j ${MAKE_JOBS:U1} -C output
+.endfor
do-install: meson-install
meson-install:
+.for d in ${INSTALL_DIRS}
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
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ninja -C output install
+.endfor
.include "../../lang/python/application.mk"
Index: pkgsrc/devel/py-meson/build.mk
diff -u pkgsrc/devel/py-meson/build.mk:1.13 pkgsrc/devel/py-meson/build.mk:1.14
--- pkgsrc/devel/py-meson/build.mk:1.13 Mon Sep 30 11:37:04 2019
+++ pkgsrc/devel/py-meson/build.mk Sat Oct 5 20:09:52 2019
@@ -1,7 +1,11 @@
-# $NetBSD: build.mk,v 1.13 2019/09/30 11:37:04 prlw1 Exp $
+# $NetBSD: build.mk,v 1.14 2019/10/05 20:09:52 nia Exp $
BUILD_DEPENDS+= py37-meson-[0-9]*:../../devel/py-meson
+CONFIGURE_DIRS?= .
+BUILD_DIRS?= ${CONFIGURE_DIRS}
+INSTALL_DIRS?= ${CONFIGURE_DIRS}
+
.PHONY: meson-configure meson-build meson-install
# pkgsrc contains multiple llvm-config executables at multiple locations.
@@ -11,17 +15,25 @@ MAKE_ENV+= LLVM_CONFIG_PATH=${LLVM_CONFI
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
+.for d in ${CONFIGURE_DIRS}
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} meson \
+ --prefix ${PREFIX} --libdir lib --mandir ${PKGMANDIR} \
+ --sysconfdir ${PKG_SYSCONFDIR} --buildtype=plain ${MESON_ARGS} . output
+.endfor
do-build: meson-build
meson-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ninja -j ${MAKE_JOBS:U1} -C output
+.for d in ${BUILD_DIRS}
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} ninja -j ${MAKE_JOBS:U1} -C output
+.endfor
do-install: meson-install
meson-install:
+.for d in ${INSTALL_DIRS}
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
+ cd ${WRKSRC} && cd ${d} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ninja -C output install
+.endfor
.include "../../lang/python/application.mk"
Home |
Main Index |
Thread Index |
Old Index