aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-10 13:43:59 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-10 17:14:07 +0000
commit25302f4e0b2d04a8c2a58ece681ba7e75935358b (patch)
tree2c8b607d8dc599d5e1ef7cb77ef345deafba6e43
parentf8554250f5932e6f5d03ed4dddad948b91c6eda3 (diff)
downloadports-25302f4e0b2d04a8c2a58ece681ba7e75935358b.tar.gz
ports-25302f4e0b2d04a8c2a58ece681ba7e75935358b.zip
-rw-r--r--comms/rubygem-serialport/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/comms/rubygem-serialport/Makefile b/comms/rubygem-serialport/Makefile
index d0a9e5a8591b..6ccbf07d725d 100644
--- a/comms/rubygem-serialport/Makefile
+++ b/comms/rubygem-serialport/Makefile
@@ -12,4 +12,12 @@ LICENSE= GPLv2
USES= gem shebangfix
SHEBANG_FILES= test/set_readtimeout.rb
+.include <bsd.port.options.mk>
+
+post-patch:
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+ @${REINPLACE_CMD} -e 's|-DOS_\#{os.upcase}|-DOS_\#{os.upcase} -Wno-error=int-conversion|g' \
+ ${WRKSRC}/ext/native/extconf.rb
+.endif
+
.include <bsd.port.mk>