freebsd-ports/multimedia/vdr-plugin-upnp/Makefile
William Grzybowski acd46e50ce multimedia/vdr-plugin-upnp: link using ffmpeg0
- Link using ffmpeg0

Approved by:	portmgr (bapt, implicit)
2013-10-09 13:08:29 +00:00

49 lines
1.6 KiB
Makefile

# Created by: Juergen Lock <nox@FreeBSD.org>
# $FreeBSD$
PORTNAME= vdr-plugin-upnp
PORTVERSION= 0.0.2a2
PORTREVISION= 22
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+= libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0 \
boost_system:${PORTSDIR}/devel/boost-libs \
upnp:${PORTSDIR}/devel/upnp \
sqlite3:${PORTSDIR}/databases/sqlite3
DIST_SUBDIR= vdr
PATCH_STRIP= -p1
HAVE_CONFIGURE= yes
PORTDOCS= COPYING README HISTORY
WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION:S/a2//}
CXXFLAGS+= -L${LOCALBASE}/lib/ffmpeg0 -lavcodec0 -lavformat0 -fPIC
MAKE_ARGS= LIBS="-I${LOCALBASE}/include/ffmpeg0" CXXFLAGS="${CXXFLAGS}"
NO_STAGE= yes
.include "${.CURDIR}/../vdr/Makefile.plugins"
post-patch: post-patch-plugin
@${REINPLACE_CMD} \
-e 's,lavcodec,lavcodec0,g' \
-e 's,lavformat,lavformat0,g' \
${WRKSRC}/Makefile
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>