ports/133278: [PATCH]multimedia/clive: add support for youtube high-definition videos
bf
bf2006a at yahoo.com
Wed Apr 1 17:00:06 UTC 2009
>Number: 133278
>Category: ports
>Synopsis: [PATCH]multimedia/clive: add support for youtube high-definition videos
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 01 17:00:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: bf
>Release: 8-CURRENT i386
>Organization:
-
>Environment:
>Description:
Allow requests for high-definition mp4s from youtube (which can be substantially
larger than the normal mp4s, so not everyone may want them...). Also, several
minor Makefile tweaks:
-There isn't really a build, and perl isn't needed for it;
-Even if we're going to use a non-standard manpage knob, we should respect
the well-established NO_INSTALL_MANPAGES;
-Fix version check for p5-IO-Pager.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN clive.orig/Makefile clive/Makefile
--- clive.orig/Makefile 2009-03-27 18:41:33.000000000 -0400
+++ clive/Makefile 2009-04-01 12:24:45.341338429 -0400
@@ -29,9 +29,10 @@
PLIST_FILES= bin/clive
+NO_BUILD= yes
USE_BZIP2= yes
USE_GMAKE= yes
-USE_PERL5= 5.8.2+
+USE_PERL5_RUN= 5.8.2+
MAKE_JOBS_SAFE= yes
.include <bsd.port.pre.mk>
@@ -41,14 +42,14 @@
.endif
.if defined(WITH_PAGER)
-RUN_DEPENDS+= p5-IO-Pager-0.06:${PORTSDIR}/devel/p5-IO-Pager
+RUN_DEPENDS+= p5-IO-Pager>=0.06:${PORTSDIR}/devel/p5-IO-Pager
.endif
.if defined(WITH_EXPECT)
RUN_DEPENDS+= p5-Expect>=1.21:${PORTSDIR}/lang/p5-Expect
.endif
-.if defined(WITH_MANPAGE)
+.if defined(WITH_MANPAGE) && !defined(NO_INSTALL_MANPAGES)
MAKE_ENV= WITH_MAN=yes
MAN1= clive.1
.endif
diff -ruN clive.orig/files/patch-clive clive/files/patch-clive
--- clive.orig/files/patch-clive 1969-12-31 19:00:00.000000000 -0500
+++ clive/files/patch-clive 2009-04-01 12:24:45.340344169 -0400
@@ -0,0 +1,10 @@
+--- clive.orig 2009-04-01 14:49:10.000000000 +0000
++++ clive 2009-04-01 14:52:36.000000000 +0000
+@@ -768,6 +768,7 @@
+
+ my $fmt;
+ if ($opts{format} eq "mp4") { $fmt = 18; }
++ elsif ($opts{format} eq "mp4_hd") { $fmt = 22; }
+ elsif ($opts{format} eq "3gpp") { $fmt = 17; }
+ elsif ($opts{format} eq "xflv") { $fmt = 6; }
+
diff -ruN clive.orig/files/patch-clive.1 clive/files/patch-clive.1
--- clive.orig/files/patch-clive.1 1969-12-31 19:00:00.000000000 -0500
+++ clive/files/patch-clive.1 2009-04-01 12:24:45.341338429 -0400
@@ -0,0 +1,19 @@
+--- clive.1.orig 2009-04-01 12:08:20.890212658 -0400
++++ clive.1 2009-04-01 12:18:30.263443613 -0400
+@@ -466,11 +466,13 @@
+ .IP "\fBwww.last.fm\fR" 4
+ .IX Item "www.last.fm"
+ .PD
+-Formats: (flv|mp4|3gpp|xflv) Continue: Yes (except flv)
++Formats: (flv|mp4|mp4_hd|3gpp|xflv) Continue: Yes (except flv)
+ .Sp
+-mp4 and 3gpp formats are typically, or will become later, available.
++mp4 and 3gpp formats are typically, or will soon become, available.
+ xflv appears to be very rare. Videos dating back to 2006 may only be
+-available as flv.
++available as flv. The high-definition mp4_hd format is currently available
++for a limited number of videos, which are usually explicitly marked as "HD"
++or "720p".
+ .Sp
+ Some of the videos displayed on last.fm site are actually Youtube videos.
+ You can pass the lastfm'ed video URLs to \fBclive\fR.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list