diff --git a/comms/rubygem-serialport/Makefile b/comms/rubygem-serialport/Makefile index d0a9e5a8591bf..6ccbf07d725d9 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 + +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