Rene Ladan 4485bd8221 all: drop support for expired FreeBSD 14.0
Simplify expressions for FreeBSD 13.X

Reviewed by:	many

Differential Revision:	https://reviews.freebsd.org/D46601
2024-10-01 20:56:20 +02:00

24 lines
517 B
Makefile

PORTNAME= serialport
DISTVERSION= 1.3.2
CATEGORIES= comms rubygems
MASTER_SITES= RG
MAINTAINER= tj+freebsd_ports@a13.fr
COMMENT= Library for using RS-232 serial ports
WWW= https://rubygems.org/gems/serialport
LICENSE= GPLv2
USES= gem shebangfix
SHEBANG_FILES= test/set_readtimeout.rb
.include <bsd.port.options.mk>
post-patch:
.if ${OPSYS} == FreeBSD
@${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>