pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/meson



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Sat Jan 13 04:17:32 UTC 2024

Modified Files:
        pkgsrc/devel/meson: build.mk

Log Message:
meson: Create a [binaries] section in a meson cross file.

Package makefiles can add to it by setting:

MESON_CROSS_BINARIES+=  foo
MESON_CROSS_BINARY.foo= ${TOOLBASE}/bin/foo

No change to native builds because this is all gated on
USE_CROSS_COMPILE = yes.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/devel/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.22 pkgsrc/devel/meson/build.mk:1.23
--- pkgsrc/devel/meson/build.mk:1.22    Tue Nov 14 12:45:23 2023
+++ pkgsrc/devel/meson/build.mk Sat Jan 13 04:17:32 2024
@@ -1,4 +1,4 @@
-# $NetBSD: build.mk,v 1.22 2023/11/14 12:45:23 wiz Exp $
+# $NetBSD: build.mk,v 1.23 2024/01/13 04:17:32 riastradh Exp $
 
 MESON_REQD?=   0
 .for version in ${MESON_REQD}
@@ -110,6 +110,12 @@ ${MESON_CROSS_FILE}:
        ${RUN}${ECHO} "cpu_family = '${MESON_CPU_FAMILY}'" >>$@.tmp
        ${RUN}${ECHO} "cpu = '${MESON_CPU}'" >>$@.tmp
        ${RUN}${ECHO} "endian = '${MESON_CPU_ENDIAN}'" >>$@.tmp
+       ${RUN}${ECHO} '[binaries]' >>$@.tmp
+.  for _v_ in ${MESON_CROSS_BINARIES}
+.    if defined(MESON_CROSS_BINARY.${_v_})
+       ${RUN}${ECHO} ${_v_} = \'${MESON_CROSS_BINARY.${_v_}:Q}\' >>$@.tmp
+.    endif
+.  endfor
        ${RUN}${MV} -f $@.tmp $@
 MESON_CROSS_ARGS+=     --cross-file ${MESON_CROSS_FILE:Q}
 



Home | Main Index | Thread Index | Old Index