pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/deforaos-configure deforaos-configure.mk: explic...
details: https://anonhg.NetBSD.org/pkgsrc/rev/700b2f18160b
branches: trunk
changeset: 379468:700b2f18160b
user: khorben <khorben%pkgsrc.org@localhost>
date: Tue May 17 17:31:18 2022 +0000
description:
deforaos-configure.mk: explicitly support configuration modes
diffstat:
devel/deforaos-configure/deforaos-configure.mk | 24 ++++++++++++++++++------
1 files changed, 18 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 209c38532130 -r 700b2f18160b devel/deforaos-configure/deforaos-configure.mk
--- a/devel/deforaos-configure/deforaos-configure.mk Tue May 17 17:17:57 2022 +0000
+++ b/devel/deforaos-configure/deforaos-configure.mk Tue May 17 17:31:18 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: deforaos-configure.mk,v 1.5 2022/04/30 21:53:23 khorben Exp $
+# $NetBSD: deforaos-configure.mk,v 1.6 2022/05/17 17:31:18 khorben Exp $
#
# used by audio/deforaos-mixer/Makefile
# used by devel/deforaos-asm/Makefile
@@ -11,11 +11,23 @@
DEFORAOS_CONFIGURE?= ${PREFIX}/bin/configure
DEFORAOS_CONFIGURE_ARGS?= -v
DEFORAOS_CONFIGURE_DIRS?= .
-_BUILD_DEFS+= DEFORAOS_CONFIGURE DEFORAOS_CONFIGURE_ARGS DEFORAOS_CONFIGURE_DIRS
+DEFORAOS_CONFIGURE_MODE?=
+_BUILD_DEFS+= DEFORAOS_CONFIGURE \
+ DEFORAOS_CONFIGURE_ARGS \
+ DEFORAOS_CONFIGURE_DIRS \
+ DEFORAOS_CONFIGURE_MODE
_DO_CONFIGURE_TARGETS+= do-configure-deforaos
do-configure-deforaos:
-.for dir in ${DEFORAOS_CONFIGURE_DIRS}
- @${ECHO_MSG} "Running DeforaOS configure in ${dir}"
- @${RUN} cd ${WRKSRC} && ${DEFORAOS_CONFIGURE} ${DEFORAOS_CONFIGURE_ARGS} ${dir}
-.endfor
+.if !empty(DEFORAOS_CONFIGURE_MODE)
+ @${ECHO_MSG} "Running DeforaOS configure (${DEFORAOS_CONFIGURE_MODE})"
+ @${RUN} cd ${WRKSRC} && ${DEFORAOS_CONFIGURE} \
+ -M ${DEFORAOS_CONFIGURE_MODE} \
+ ${DEFORAOS_CONFIGURE_ARGS} \
+ ${DEFORAOS_CONFIGURE_DIRS}
+.else
+ @${ECHO_MSG} "Running DeforaOS configure"
+ @${RUN} cd ${WRKSRC} && ${DEFORAOS_CONFIGURE} \
+ ${DEFORAOS_CONFIGURE_ARGS} \
+ ${DEFORAOS_CONFIGURE_DIRS}
+.endif
Home |
Main Index |
Thread Index |
Old Index