diff --git a/devel/libvterm/Portfile b/devel/libvterm/Portfile index 4381c3b720df..0e205d33dad1 100644 --- a/devel/libvterm/Portfile +++ b/devel/libvterm/Portfile @@ -29,10 +29,13 @@ checksums rmd160 757be59cf6b79f92bd8f45c95eb47276c04b4394 \ compiler.c_standard 1999 depends_build port:libtool \ - port:pkgconfig + path:bin/pkg-config:pkgconfig patchfiles-append patch-disable-silent-rules.diff +# cc1: error: unrecognized command line option "-Wpedantic" +patchfiles-append patch-fix-pedantic.diff + use_configure no build.args PREFIX=${prefix} diff --git a/devel/libvterm/files/patch-fix-pedantic.diff b/devel/libvterm/files/patch-fix-pedantic.diff new file mode 100644 index 000000000000..2f73389888d4 --- /dev/null +++ b/devel/libvterm/files/patch-fix-pedantic.diff @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile 2024-07-17 04:36:00.000000000 +0800 +@@ -8,7 +8,7 @@ + LIBTOOL +=--quiet + endif + +-override CFLAGS +=-Wall -Iinclude -std=c99 -Wpedantic ++override CFLAGS +=-Wall -Iinclude -std=c99 -pedantic + + ifeq ($(shell uname),SunOS) + override CFLAGS +=-D__EXTENSIONS__ -D_XPG6 -D__XOPEN_OR_POSIX