Skip to content

Commit

Permalink
comms/rubygem-serialport: Fix build with llvm15
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Jun 10, 2023
1 parent f855425 commit 25302f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions comms/rubygem-serialport/Makefile
Expand Up @@ -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>

0 comments on commit 25302f4

Please sign in to comment.