git: fa8734214c04 - main - devel/libpeas: work around incomplete target dependency

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 13 Nov 2021 21:06:50 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fa8734214c04c8a14dd3878e3cec92d54e8b8d65

commit fa8734214c04c8a14dd3878e3cec92d54e8b8d65
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-11-13 20:32:43 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-11-13 21:06:18 +0000

    devel/libpeas: work around incomplete target dependency
    
    ../tests/libpeas/extension-c.c:32:10: fatal error: 'plugins/embedded/embedded-resources.h' file not found
     #include "plugins/embedded/embedded-resources.h"
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    PR:             259080
    Reported by:    antoine (via exp-run)
    Regressed by:   https://github.com/mesonbuild/meson/commit/22c38a000673
---
 devel/libpeas/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/libpeas/Makefile b/devel/libpeas/Makefile
index 46dc72483312..8d196fb66057 100644
--- a/devel/libpeas/Makefile
+++ b/devel/libpeas/Makefile
@@ -37,6 +37,11 @@ OPTIONS_SUB=	yes
 DOCS_BUILD_DEPENDS=	gtkdoc-scan:textproc/gtk-doc
 DOCS_MESON_TRUE=	gtk_doc
 
+pre-build:
+# XXX DISABLE_MAKE_JOBS build fails on 12.2/13.0 i386
+	${DO_MAKE_BUILD} -C ${BUILD_WRKSRC} \
+		tests/libpeas/plugins/embedded/embedded-resources.h
+
 .if ${LIBPEAS_SLAVE} == python
 USES+=		python:3.6+
 USE_PYTHON=	flavors