This applies a patch NetBSD has been carrying downstream for some time.
Gitlab: fixes #2262, #1576
Reported-by: Michael Bäuerle <micha@NetBSD.org>
- -Tx11: Assertion `xev.xbutton.button >= 1 && xev.xbutton.button <= 5 && "Xlib
returned invalid button event"` failed #2256
+- missing Perl includes patch #2262
## [5.0.0] – 2022-07-07
libgv_perl_la_SOURCES = $(BASESOURCES) gv_dummy_init.c
libgv_perl_la_LIBADD = $(BASELIBS) $(PERL_LIBS)
libgv_perl_la_LDFLAGS = -module -avoid-version $(PERL_LD)
-libgv_perl_la_CPPFLAGS = $(BASECPPFLAGS) $(PERL_CC)
+libgv_perl_la_CPPFLAGS = $(BASECPPFLAGS) $(PERL_INCLUDES) $(PERL_CC)
$(PERL_data): gv_perl.cpp
gv_perl.cpp: gv.i
$(SWIG) -c++ $(SWIG_PERL_OPT) -o $@ $(srcdir)/gv.i