# $FreeBSD: tags/RELEASE_12_0_0/sysutils/ttyd/Makefile 479872 2018-09-16 00:08:17Z sunpoet $

PORTNAME=	ttyd
PORTVERSION=	1.4.2
CATEGORIES=	sysutils

MAINTAINER=	neel@neelc.org
COMMENT=	Program to share your terminal over the web

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	xxd:editors/vim-console
LIB_DEPENDS=	libjson-c.so:devel/json-c \
		libwebsockets.so:net/libwebsockets

USES=		cmake pkgconfig ssl
USE_CSTD=	c99
USE_GITHUB=	yes
GH_ACCOUNT=	tsl0922

PLIST_FILES=	bin/${PORTNAME}

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

.include <bsd.port.mk>
