git: 25302f4e0b2d - main - comms/rubygem-serialport: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 10 Jun 2023 17:14:19 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=25302f4e0b2d04a8c2a58ece681ba7e75935358b commit 25302f4e0b2d04a8c2a58ece681ba7e75935358b Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-06-10 13:43:59 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-06-10 17:14:07 +0000 comms/rubygem-serialport: Fix build with llvm15 Approved by: portmgr (blanket) --- comms/rubygem-serialport/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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>