Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2013 13:08:29 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329895 - head/multimedia/vdr-plugin-upnp
Message-ID:  <201310091308.r99D8TZA075312@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Wed Oct  9 13:08:29 2013
New Revision: 329895
URL: http://svnweb.freebsd.org/changeset/ports/329895

Log:
  multimedia/vdr-plugin-upnp: link using ffmpeg0
  
  - Link using ffmpeg0
  
  Approved by:	portmgr (bapt, implicit)

Modified:
  head/multimedia/vdr-plugin-upnp/Makefile

Modified: head/multimedia/vdr-plugin-upnp/Makefile
==============================================================================
--- head/multimedia/vdr-plugin-upnp/Makefile	Wed Oct  9 13:00:59 2013	(r329894)
+++ head/multimedia/vdr-plugin-upnp/Makefile	Wed Oct  9 13:08:29 2013	(r329895)
@@ -3,7 +3,7 @@
 
 PORTNAME=	vdr-plugin-upnp
 PORTVERSION=	0.0.2a2
-PORTREVISION=	21
+PORTREVISION=	22
 CATEGORIES=	multimedia
 MASTER_SITES=	http://projects.vdr-developer.org/attachments/download/177/
 DISTNAME=	${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION:S/a/-alpha/}${DISTVERSIONSUFFIX}
@@ -12,7 +12,7 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	nox@FreeBSD.org
 COMMENT=	Video Disk Recorder - UPnP/DLNA plugin (alpha!)
 
-LIB_DEPENDS+=	avcodec:${PORTSDIR}/multimedia/ffmpeg \
+LIB_DEPENDS+=	libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0 \
 		boost_system:${PORTSDIR}/devel/boost-libs \
 		upnp:${PORTSDIR}/devel/upnp \
 		sqlite3:${PORTSDIR}/databases/sqlite3
@@ -23,10 +23,17 @@ 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310091308.r99D8TZA075312>