2013-09-20 22:57:48 +02:00
|
|
|
# Created by: Juergen Lock <nox@FreeBSD.org>
|
2011-03-26 20:21:08 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= vdr-plugin-upnp
|
|
|
|
PORTVERSION= 0.0.2a2
|
2014-07-11 12:26:02 +02:00
|
|
|
PORTREVISION= 25
|
2011-03-26 20:21:08 +01:00
|
|
|
CATEGORIES= multimedia
|
|
|
|
MASTER_SITES= http://projects.vdr-developer.org/attachments/download/177/
|
|
|
|
DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION:S/a/-alpha/}${DISTVERSIONSUFFIX}
|
|
|
|
|
|
|
|
MAINTAINER= nox@FreeBSD.org
|
|
|
|
COMMENT= Video Disk Recorder - UPnP/DLNA plugin (alpha!)
|
|
|
|
|
2013-10-09 15:08:29 +02:00
|
|
|
LIB_DEPENDS+= libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0 \
|
2013-12-12 14:01:40 +01:00
|
|
|
libboost_system.so:${PORTSDIR}/devel/boost-libs \
|
|
|
|
libupnp.so:${PORTSDIR}/devel/upnp \
|
|
|
|
libsqlite3.so:${PORTSDIR}/databases/sqlite3
|
2011-03-26 20:21:08 +01:00
|
|
|
|
2014-03-15 16:35:59 +01:00
|
|
|
USES= tar:tgz
|
2011-03-26 20:21:08 +01:00
|
|
|
DIST_SUBDIR= vdr
|
|
|
|
PATCH_STRIP= -p1
|
|
|
|
HAVE_CONFIGURE= yes
|
2012-06-19 20:42:12 +02:00
|
|
|
PORTDOCS= COPYING README HISTORY
|
2011-03-26 20:21:08 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION:S/a2//}
|
|
|
|
|
2013-10-09 15:08:29 +02:00
|
|
|
CXXFLAGS+= -L${LOCALBASE}/lib/ffmpeg0 -lavcodec0 -lavformat0 -fPIC
|
|
|
|
MAKE_ARGS= LIBS="-I${LOCALBASE}/include/ffmpeg0" CXXFLAGS="${CXXFLAGS}"
|
|
|
|
|
2011-03-26 20:21:08 +01:00
|
|
|
.include "${.CURDIR}/../vdr/Makefile.plugins"
|
|
|
|
|
|
|
|
post-patch: post-patch-plugin
|
2013-10-09 15:08:29 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's,lavcodec,lavcodec0,g' \
|
|
|
|
-e 's,lavformat,lavformat0,g' \
|
|
|
|
${WRKSRC}/Makefile
|
2011-03-26 20:21:08 +01:00
|
|
|
|
2014-03-01 13:21:13 +01:00
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
|
|
|
|
|
2011-03-26 20:21:08 +01:00
|
|
|
post-install: post-install-pluginlocales
|
2014-03-01 13:21:13 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/icons
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/http/icons/* \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/icons
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/xml
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/http/xml/* \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/xml
|
|
|
|
@${MKDIR} ${STAGEDIR}/var/cache/vdr/${PLUGIN}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
2011-03-26 20:21:08 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|