git: 0315687e43b6 - main - devel/rubygem-posix-spawn: Clean up Makefile

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 08 Sep 2024 18:55:36 UTC
The branch main has been updated by sunpoet:

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

commit 0315687e43b66a843a72363b027f2f343365b8e6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-08 18:33:14 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-08 18:40:20 +0000

    devel/rubygem-posix-spawn: Clean up Makefile
---
 devel/rubygem-posix-spawn/Makefile | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/devel/rubygem-posix-spawn/Makefile b/devel/rubygem-posix-spawn/Makefile
index 03eafbe82aca..bd9ab8965436 100644
--- a/devel/rubygem-posix-spawn/Makefile
+++ b/devel/rubygem-posix-spawn/Makefile
@@ -12,12 +12,8 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		gem
 
-PLIST_FILES=	bin/posix-spawn-benchmark
-
-.include <bsd.port.options.mk>
+CONFIGURE_ARGS=	--with-cflags=-Wno-incompatible-function-pointer-types
 
-.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
-CONFIGURE_ARGS+=	--with-cflags="-Wno-error=incompatible-function-pointer-types"
-.endif
+PLIST_FILES=	bin/posix-spawn-benchmark
 
 .include <bsd.port.mk>