aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-upnp/Makefile
blob: 04ac0ba1ee7ef82f3f16b87eace895ed38d5d3dd (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
39
40
41
42
43
44
45
46
# New ports collection makefile for:	vdr-plugin-upnp
# Date created:		Tue Nov 16 18:34:10 CET 2010
# Whom:			Juergen Lock <nox@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	vdr-plugin-upnp
PORTVERSION=	0.0.2a2
PORTREVISION=	11
CATEGORIES=	multimedia
MASTER_SITES=	http://projects.vdr-developer.org/attachments/download/177/
DISTNAME=	${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION:S/a/-alpha/}${DISTVERSIONSUFFIX}
EXTRACT_SUFX=	.tgz

MAINTAINER=	nox@FreeBSD.org
COMMENT=	Video Disk Recorder - UPnP/DLNA plugin (alpha!)

LIB_DEPENDS+=	avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
		boost_system:${PORTSDIR}/devel/boost-libs \
		upnp.7:${PORTSDIR}/devel/upnp \
		sqlite3.8:${PORTSDIR}/databases/sqlite3

DIST_SUBDIR=	vdr
PATCH_STRIP=	-p1
HAVE_CONFIGURE=	yes
PORTDOCS=	COPYING README
MAKE_JOBS_SAFE=	yes
WRKSRC=		${WRKDIR}/${PLUGIN}-${DISTVERSION:S/a2//}

.include	"${.CURDIR}/../vdr/Makefile.plugins"

post-patch: post-patch-plugin

post-install: post-install-pluginlocales
	@${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/icons
	@${INSTALL_DATA} ${WRKSRC}/http/icons/* ${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/icons
	@${MKDIR} ${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/xml
	@${INSTALL_DATA} ${WRKSRC}/http/xml/* ${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/xml
	@${INSTALL} -o ${VDR_USER} -g ${VDR_GROUP} -d /var/cache/vdr/${PLUGIN}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif

.include <bsd.port.mk>