PORTNAME=	tcpser
DISTVERSION=	g20210425
PORTEPOCH=	1
CATEGORIES=	comms

MAINTAINER=	nc@FreeBSD.org
COMMENT=	TCPSER turns serial port into an emulated Hayes compatible modem
WWW=		https://github.com/FozzTexx/tcpser

LICENSE=	GPLv2+

USES=		gmake
USE_GITHUB=	yes
GH_ACCOUNT=	FozzTexx
GH_TAGNAME=	95f4b51

LDFLAGS+=	-pthread

PLIST_FILES=	bin/tcpser
PORTDOCS=	CHANGES README.md

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/tcpser ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
