aboutsummaryrefslogtreecommitdiff
path: root/multimedia/minisatip/Makefile
blob: 1fbf2795851743202740549e690a6828407176e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Bernhard Froehlich <decke@FreeBSD.org>

PORTNAME=	minisatip
PORTVERSION=	1.1.45
DISTVERSIONPREFIX=	v
CATEGORIES=	multimedia

MAINTAINER=	decke@FreeBSD.org
COMMENT=	Multi-threaded SATIP server that supports DVB cards

LICENSE=	GPLv2+

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

USES=		gmake
USE_GITHUB=	yes
GH_ACCOUNT=	catalinii

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

USE_RC_SUBR=	${PORTNAME}
GNU_CONFIGURE=	yes
ALL_TARGET=	minisatip

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} 's|/usr/share/minisatip|${DATADIR}|' \
		${WRKSRC}/src/minisatip.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/minisatip ${STAGEDIR}${PREFIX}/sbin
	@${MKDIR} ${STAGEDIR}${DATADIR}
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DATADIR})

.include <bsd.port.post.mk>