aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/tovid
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2005-12-29 21:30:28 +0800
committerlioux <lioux@FreeBSD.org>2005-12-29 21:30:28 +0800
commita4ab1474b9168afe1963de770c47a269522b4e94 (patch)
tree311982920a63a00bd41edfca332802ca3480a72a /multimedia/tovid
parent76b016e212ad5dc2458d876e6991201e296a405e (diff)
downloadfreebsd-ports-gnome-a4ab1474b9168afe1963de770c47a269522b4e94.tar.gz
freebsd-ports-gnome-a4ab1474b9168afe1963de770c47a269522b4e94.tar.zst
freebsd-ports-gnome-a4ab1474b9168afe1963de770c47a269522b4e94.zip
o df(1) output should be on 1Megabyte scale rather than on 512-byte
one. Confunsion created by different interpretations of df(1) parameter's -P amongst Linux and FreeBSD. o Do not process audio in any circunstances when dumping video streams. Tipped by mplayer warning o Bump PORTREVISION
Diffstat (limited to 'multimedia/tovid')
-rw-r--r--multimedia/tovid/Makefile4
-rw-r--r--multimedia/tovid/files/patch-src__tovid.sh9
2 files changed, 12 insertions, 1 deletions
diff --git a/multimedia/tovid/Makefile b/multimedia/tovid/Makefile
index ea15566fa1d4..8b44f5adfa80 100644
--- a/multimedia/tovid/Makefile
+++ b/multimedia/tovid/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tovid
PORTVERSION= 0.24
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= multimedia python
MASTER_SITES= http://download.berlios.de/tovid/
@@ -58,6 +58,7 @@ post-patch:
# linux du -b -> emulation with awk
# du should follow symbolic links
# faster mplayer -dumpaudio
+# faster mplayer -dumpvideo
@${REINPLACE_CMD} -E \
-e 's|md5sum|md5|' \
-e 's|sed[[:space:]]+-r|sed -E|' \
@@ -65,6 +66,7 @@ post-patch:
-e 's|(du[[:space:]]+-c)|\1 -H|' \
-e 's|(du[[:space:]]+-h)|\1 -H|' \
-e 's|(-dumpaudio)|-vc dummy -vo null \1|' \
+ -e 's|(-dumpvideo)|-ac dummy -ao null \1|' \
${WRKSRC}/src/*
# bash to sh fixes
@${REINPLACE_CMD} -E \
diff --git a/multimedia/tovid/files/patch-src__tovid.sh b/multimedia/tovid/files/patch-src__tovid.sh
index 80af33b9c9b0..78de483cc443 100644
--- a/multimedia/tovid/files/patch-src__tovid.sh
+++ b/multimedia/tovid/files/patch-src__tovid.sh
@@ -1,5 +1,14 @@
--- src/tovid.sh.orig Tue Dec 27 03:29:42 2005
+++ src/tovid.sh Tue Dec 27 03:43:52 2005
+@@ -265,7 +265,7 @@
+ check_disk_space()
+ {
+ # Determine space available in current directory (in MB)
+- AVAIL_SPACE=`df -mP . | awk 'NR != 1 {print $4;}'`
++ AVAIL_SPACE=`df -m . | awk 'NR != 1 {print $4;}'`
+ # Rough estimates of KB/sec for different formats
+ K_PER_SEC=200
+ test x"$TGT_RES" = x"VCD" && K_PER_SEC=172
@@ -1327,7 +1327,7 @@
AUDIO_CMD="cat /dev/zero | $PRIORITY sox -t raw -c 2 -r $SAMPRATE -w -s - -t wav $AUDIO_WAV trim 0 $V_DURATION"
# Extract audio normally