aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-osdpip
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2016-06-11 17:14:48 +0000
committerBen Woods <woodsb02@FreeBSD.org>2016-06-11 17:14:48 +0000
commit1c3021d406c38d5c7a183b2fe8d38eb3e7cd27a8 (patch)
tree7127712a54b8cbfcd555c6d89746c14808ba68ca /multimedia/vdr-plugin-osdpip
parent5dabcea59071c81edbb6ecf6cedc91e3ed7df87a (diff)
multimedia/vdr-plugin-osdpip:
- Update to 0.1.2 - Add patch to fix build with FFmpeg 3.0.x once it lands in ports tree - Add LICENSE and LICENSE_FILE - Add DOCS option and post-install-DOCS-on target - Remove obsolete patches for i18n.h, receiver.c and part of Makefile - Merge patch-vdr-osdpip-0.1.0 into patch-Makefile - Reformulate remaining patches to not require PATCH_STRIP=-p1 - Fix WWW in pkg-descr Changes this release: https://projects.vdr-developer.org/news/184 Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6806
Notes
Notes: svn path=/head/; revision=416731
Diffstat (limited to 'multimedia/vdr-plugin-osdpip')
-rw-r--r--multimedia/vdr-plugin-osdpip/Makefile19
-rw-r--r--multimedia/vdr-plugin-osdpip/distinfo7
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-Makefile23
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-decoder.c2
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-ffmpeg112
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-ffmpeg352
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-i18n.h12
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-libav94
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-osd.c4
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-receiver.c20
-rw-r--r--multimedia/vdr-plugin-osdpip/files/patch-vdr-osdpip-0.1.015
-rw-r--r--multimedia/vdr-plugin-osdpip/pkg-descr2
12 files changed, 90 insertions, 82 deletions
diff --git a/multimedia/vdr-plugin-osdpip/Makefile b/multimedia/vdr-plugin-osdpip/Makefile
index 5e8248c34ea3..f0f7cde476c7 100644
--- a/multimedia/vdr-plugin-osdpip/Makefile
+++ b/multimedia/vdr-plugin-osdpip/Makefile
@@ -2,28 +2,27 @@
# $FreeBSD$
PORTNAME= vdr-plugin-osdpip
-PORTVERSION= 0.1.1
-PORTREVISION= 6
+PORTVERSION= 0.1.2
CATEGORIES= multimedia
-MASTER_SITES= http://projects.vdr-developer.org/attachments/download/880/
+MASTER_SITES= http://projects.vdr-developer.org/attachments/download/961/
DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
-
-PATCH_SITES= http://projects.vdr-developer.org/attachments/download/893/
-PATCHFILES= osdpip-vdr-1.7.26.diff
+DIST_SUBDIR= vdr
MAINTAINER= ports@FreeBSD.org
COMMENT= Video Disk Recorder - picture-in-picture plugin
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
LIB_DEPENDS+= libavcodec.so:multimedia/ffmpeg
USES= pkgconfig tar:tgz
-DIST_SUBDIR= vdr
-PATCH_STRIP= -p1
-PATCH_DIST_STRIP= -p1
HAVE_CONFIGURE= yes
PORTDOCS= COPYING README HISTORY
WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION}
+OPTIONS_DEFINE= DOCS
+
.include "${.CURDIR}/../vdr/Makefile.plugins"
post-patch: post-patch-plugin
@@ -32,6 +31,8 @@ pre-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
post-install: post-install-pluginlocales
+
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
diff --git a/multimedia/vdr-plugin-osdpip/distinfo b/multimedia/vdr-plugin-osdpip/distinfo
index 718035af04ed..ac493758c461 100644
--- a/multimedia/vdr-plugin-osdpip/distinfo
+++ b/multimedia/vdr-plugin-osdpip/distinfo
@@ -1,4 +1,3 @@
-SHA256 (vdr/vdr-osdpip-0.1.1.tgz) = 777f5fd9abbfbf43227c78eb2b363d3bdade2b368425ed78caa836d4c38bfef4
-SIZE (vdr/vdr-osdpip-0.1.1.tgz) = 53272
-SHA256 (vdr/osdpip-vdr-1.7.26.diff) = fa58b9671439b7a5a13d7b3e93b5a7596aecf5169b4400b5bf5a922c90e6132f
-SIZE (vdr/osdpip-vdr-1.7.26.diff) = 1057
+TIMESTAMP = 1465488132
+SHA256 (vdr/vdr-osdpip-0.1.2.tgz) = 08761f6474dd2e5bd4d3dc83b4d2d3b9169a04931cb8aca2e54fdb5ad979a0c6
+SIZE (vdr/vdr-osdpip-0.1.2.tgz) = 50756
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-Makefile b/multimedia/vdr-plugin-osdpip/files/patch-Makefile
index 69ad8ea22094..22ad1da58b49 100644
--- a/multimedia/vdr-plugin-osdpip/files/patch-Makefile
+++ b/multimedia/vdr-plugin-osdpip/files/patch-Makefile
@@ -1,15 +1,18 @@
---- osdpip-0.1.0/Makefile.orig
-+++ osdpip-0.1.0/Makefile
-@@ -107,7 +107,7 @@ endif
+--- Makefile.orig 2012-05-16 19:06:00 UTC
++++ Makefile
+@@ -156,7 +156,11 @@ i18n: $(I18Nmsgs) $(I18Npot)
- ### The object files (add further files here):
+ libvdr-$(PLUGIN).so: $(OBJS)
+ $(CXX) $(CXXFLAGS) -shared -o $@ $^ $(LIBS)
++ifdef FREEBSD
++ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION)
++else
+ @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
++endif
--OBJS = $(PLUGIN).o osd_info.o remux.o osd.o receiver.o setup.o i18n.o pes.o quantize.o decoder.o
-+OBJS = $(PLUGIN).o osd_info.o remux.o osd.o receiver.o setup.o pes.o quantize.o decoder.o
-
- ### The main target:
-
-@@ -171,3 +173,6 @@ dist: clean
+ dist: clean
+ @-rm -rf $(TMPDIR)/$(ARCHIVE)
+@@ -168,3 +172,6 @@ dist: clean
clean:
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-decoder.c b/multimedia/vdr-plugin-osdpip/files/patch-decoder.c
index 0645b3bae435..8ec85a41931b 100644
--- a/multimedia/vdr-plugin-osdpip/files/patch-decoder.c
+++ b/multimedia/vdr-plugin-osdpip/files/patch-decoder.c
@@ -1,4 +1,4 @@
---- decoder.c.orig
+--- decoder.c.orig 2012-02-12 12:24:00 UTC
+++ decoder.c
@@ -55,13 +55,13 @@ int cDecoder::Close()
{
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-ffmpeg1 b/multimedia/vdr-plugin-osdpip/files/patch-ffmpeg1
index b0304ad5adc0..11877a9524a3 100644
--- a/multimedia/vdr-plugin-osdpip/files/patch-ffmpeg1
+++ b/multimedia/vdr-plugin-osdpip/files/patch-ffmpeg1
@@ -1,7 +1,7 @@
-Index: osdpip-0.1.1/decoder.h
+Index: decoder.h
===================================================================
---- osdpip-0.1.1.orig/decoder.h
-+++ osdpip-0.1.1/decoder.h
+--- decoder.h.orig
++++ decoder.h
@@ -34,7 +34,7 @@ extern "C"
#include <libavcodec/avcodec.h>
#ifdef USE_SWSCALE
@@ -11,10 +11,10 @@ Index: osdpip-0.1.1/decoder.h
#endif
#else
#include <ffmpeg/avcodec.h>
-Index: osdpip-0.1.1/osdpip.c
+Index: osdpip.c
===================================================================
---- osdpip-0.1.1.orig/osdpip.c
-+++ osdpip-0.1.1/osdpip.c
+--- osdpip.c.orig
++++ osdpip.c
@@ -73,8 +73,6 @@ bool cPluginOsdpip::ProcessArgs(int argc
bool cPluginOsdpip::Initialize(void)
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-ffmpeg3 b/multimedia/vdr-plugin-osdpip/files/patch-ffmpeg3
new file mode 100644
index 000000000000..221667268acf
--- /dev/null
+++ b/multimedia/vdr-plugin-osdpip/files/patch-ffmpeg3
@@ -0,0 +1,52 @@
+--- decoder.c.orig 2016-06-11 10:45:23.850303000 +0200
++++ decoder.c 2016-06-11 10:50:57.243181000 +0200
+@@ -28,7 +28,7 @@
+
+ int cDecoder::Open()
+ {
+- m_Codec = avcodec_find_decoder(CODEC_ID_MPEG2VIDEO);
++ m_Codec = avcodec_find_decoder(AV_CODEC_ID_MPEG2VIDEO);
+ if (!m_Codec)
+ {
+ printf("codec not found\n");
+@@ -40,8 +40,8 @@
+ printf("could not open codec\n");
+ return -1;
+ }
+- m_PicDecoded = avcodec_alloc_frame();
+- m_PicResample = avcodec_alloc_frame();
++ m_PicDecoded = av_frame_alloc();
++ m_PicResample = av_frame_alloc();
+ m_BufferResample = new unsigned char[400 * 300 * 4]; // size for RGBA32
+ #ifndef USE_SWSCALE
+ m_PicConvert = avcodec_alloc_frame();
+@@ -99,7 +99,7 @@
+ AVPicture pic_crop;
+ struct SwsContext * context;
+
+- av_picture_crop(&pic_crop, (AVPicture *) m_PicDecoded, PIX_FMT_YUV420P, OsdPipSetup.CropTop, OsdPipSetup.CropLeft);
++ av_picture_crop(&pic_crop, (AVPicture *) m_PicDecoded, AV_PIX_FMT_YUV420P, OsdPipSetup.CropTop, OsdPipSetup.CropLeft);
+ #ifdef FF_API_SWS_GETCONTEXT
+ if (!(context = sws_alloc_context())) {
+ printf("Error initializing scale context.\n");
+@@ -126,9 +126,9 @@
+ #else
+ context = sws_getContext(m_Context->width - (OsdPipSetup.CropLeft + OsdPipSetup.CropRight),
+ m_Context->height - (OsdPipSetup.CropTop + OsdPipSetup.CropBottom),
+- PIX_FMT_YUV420P,
++ AV_PIX_FMT_YUV420P,
+ #ifdef USE_NEW_FFMPEG_HEADERS
+- m_Width, m_Height, ConvertToRGB ? PIX_FMT_RGB32 : PIX_FMT_YUV420P,
++ m_Width, m_Height, ConvertToRGB ? AV_PIX_FMT_RGB32 : AV_PIX_FMT_YUV420P,
+ #else
+ m_Width, m_Height, ConvertToRGB ? PIX_FMT_RGBA32 : PIX_FMT_YUV420P,
+ #endif
+@@ -140,7 +140,7 @@
+ #endif
+ avpicture_fill((AVPicture *) m_PicResample, m_BufferResample,
+ #ifdef USE_NEW_FFMPEG_HEADERS
+- ConvertToRGB ? PIX_FMT_RGB32 : PIX_FMT_YUV420P,
++ ConvertToRGB ? AV_PIX_FMT_RGB32 : AV_PIX_FMT_YUV420P,
+ #else
+ ConvertToRGB ? PIX_FMT_RGBA32 : PIX_FMT_YUV420P,
+ #endif
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-i18n.h b/multimedia/vdr-plugin-osdpip/files/patch-i18n.h
deleted file mode 100644
index 601768c00d49..000000000000
--- a/multimedia/vdr-plugin-osdpip/files/patch-i18n.h
+++ /dev/null
@@ -1,12 +0,0 @@
---- i18n.h.orig
-+++ i18n.h
-@@ -28,8 +28,8 @@
- #if (APIVERSNUM < 10507)
- #define trNOOP(a) a
- #define trVDR tr
--#endif
-
- extern const tI18nPhrase Phrases[];
-+#endif
-
- #endif // VDR_OSDPIP_I18N_H
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-libav9 b/multimedia/vdr-plugin-osdpip/files/patch-libav9
index d1f531b325ce..beeb4422d671 100644
--- a/multimedia/vdr-plugin-osdpip/files/patch-libav9
+++ b/multimedia/vdr-plugin-osdpip/files/patch-libav9
@@ -1,6 +1,6 @@
diff -urN osdpip-0.1.2.old/decoder.c osdpip-0.1.2/decoder.c
---- osdpip-0.1.2.old/decoder.c 2013-06-17 21:01:31.795476861 +0200
-+++ osdpip-0.1.2/decoder.c 2013-06-17 21:01:57.153475959 +0200
+--- decoder.c.orig 2013-06-17 21:01:31.795476861 +0200
++++ decoder.c 2013-06-17 21:01:57.153475959 +0200
@@ -34,8 +34,8 @@
printf("codec not found\n");
return -1;
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-osd.c b/multimedia/vdr-plugin-osdpip/files/patch-osd.c
index e06997503fa5..b523ade4f8c4 100644
--- a/multimedia/vdr-plugin-osdpip/files/patch-osd.c
+++ b/multimedia/vdr-plugin-osdpip/files/patch-osd.c
@@ -1,6 +1,6 @@
---- osd.c.orig
+--- osd.c.orig 2012-05-16 20:25:00 UTC
+++ osd.c
-@@ -788,7 +788,7 @@ eOSState cOsdPipObject::ProcessKey(eKeys
+@@ -780,7 +780,7 @@ eOSState cOsdPipObject::ProcessKey(eKeys
if (cControl::Control())
{
cControl::Control()->GetIndex(pos, end);
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-receiver.c b/multimedia/vdr-plugin-osdpip/files/patch-receiver.c
deleted file mode 100644
index c0aabbd06d53..000000000000
--- a/multimedia/vdr-plugin-osdpip/files/patch-receiver.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- receiver.c.orig
-+++ receiver.c
-@@ -37,11 +37,16 @@ cOsdPipReceiver::cOsdPipReceiver(const c
- cRingBufferFrame *ESBuffer):
- #if (APIVERSNUM < 10500)
- cReceiver(Channel->Ca(), 0, Channel->Vpid()),
--#else
-+#elif (APIVERSNUM < 10725)
- cReceiver(Channel->GetChannelID(), 0, Channel->Vpid()),
-+#else
-+ cReceiver(Channel, 0),
- #endif
- cThread("osdpip_receiver")
- {
-+#if (APIVERSNUM >= 10725)
-+ AddPid(Channel->Vpid());
-+#endif
- m_TSBuffer = new cRingBufferLinear(MEGABYTE(3), TS_SIZE * 2, true);
- m_TSBuffer->SetTimeouts(0, 100);
- m_ESBuffer = ESBuffer;
diff --git a/multimedia/vdr-plugin-osdpip/files/patch-vdr-osdpip-0.1.0 b/multimedia/vdr-plugin-osdpip/files/patch-vdr-osdpip-0.1.0
deleted file mode 100644
index c16b90058974..000000000000
--- a/multimedia/vdr-plugin-osdpip/files/patch-vdr-osdpip-0.1.0
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -ur orig/osdpip-0.1.0/Makefile osdpip-0.1.0/Makefile
---- orig/osdpip-0.1.0/Makefile 2010-03-27 16:38:13.000000000 +0100
-+++ osdpip-0.1.0/Makefile 2010-03-29 09:35:59.000000000 +0200
-@@ -155,7 +155,11 @@
-
- libvdr-$(PLUGIN).so: $(OBJS)
- $(CXX) $(CXXFLAGS) -shared -o $@ $^ $(LIBS)
-+ifdef FREEBSD
-+ @cp -f $@ $(LIBDIR)/$@.$(APIVERSION)
-+else
- @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
-+endif
-
- dist: clean
- @-rm -rf $(TMPDIR)/$(ARCHIVE)
diff --git a/multimedia/vdr-plugin-osdpip/pkg-descr b/multimedia/vdr-plugin-osdpip/pkg-descr
index 77ea4e07e99f..c2b2363fdca1 100644
--- a/multimedia/vdr-plugin-osdpip/pkg-descr
+++ b/multimedia/vdr-plugin-osdpip/pkg-descr
@@ -5,4 +5,4 @@ in a small box on the screen (default upper right corner). You can switch
up and down now, watching the progress of the previous channel in the box.
Quality is not too good yet, and only I-Frames are displayed.
-WWW: http://projects.vdr-developer.org/projects/show/plg-osdpip
+WWW: http://projects.vdr-developer.org/projects/plg-osdpip