PORTNAME=	minisatip
PORTVERSION=	2.0.97
DISTVERSIONPREFIX=	v
PORTEPOCH=	1
CATEGORIES=	multimedia

MAINTAINER=	decke@FreeBSD.org
COMMENT=	Multi-threaded SATIP server that supports DVB cards
WWW=		https://github.com/catalinii/minisatip

LICENSE=	GPLv2+

BUILD_DEPENDS=	${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
LIB_DEPENDS=	libdvbcsa.so:multimedia/libdvbcsa

USES=		cmake ssl
USE_GITHUB=	yes
GH_ACCOUNT=	catalinii

USE_RC_SUBR=	${PORTNAME}
ALL_TARGET=	minisatip

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

post-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DATADIR})

.include <bsd.port.post.mk>
