summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-12-28 13:17:06 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-12-28 13:17:06 +0000
commit68d6c0787daad714763951efef57f5364ea9b42b (patch)
tree7c8433fc7727f92ff5815be9f2a03e17ef2e6889
parentAdd devel/p5-IPC-DirQueue 0.05, a disk-based many-to-many task queue (diff)
o du(1) should follow symbolic links to avoid detecting them as 0
size. Otherwise, there are problems with test(1) algebraic evaluations on tovid.sh when trying to detect video aspect ratio. o Bump PORTREVISION
Notes
Notes: svn path=/head/; revision=152273
-rw-r--r--multimedia/tovid/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/multimedia/tovid/Makefile b/multimedia/tovid/Makefile
index 768e8a2d7e7d..ea15566fa1d4 100644
--- a/multimedia/tovid/Makefile
+++ b/multimedia/tovid/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tovid
PORTVERSION= 0.24
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= multimedia python
MASTER_SITES= http://download.berlios.de/tovid/
@@ -55,12 +55,15 @@ post-patch:
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
# md5sum -> md5
# gnu sed -> sed
-# linux du -> du
+# linux du -b -> emulation with awk
+# du should follow symbolic links
# faster mplayer -dumpaudio
@${REINPLACE_CMD} -E \
-e 's|md5sum|md5|' \
-e 's|sed[[:space:]]+-r|sed -E|' \
-e "s,du[[:space:]]+-b([^\|]+),ls -ALln \1 | ${AWK} '{print \$$5}'," \
+ -e 's|(du[[:space:]]+-c)|\1 -H|' \
+ -e 's|(du[[:space:]]+-h)|\1 -H|' \
-e 's|(-dumpaudio)|-vc dummy -vo null \1|' \
${WRKSRC}/src/*
# bash to sh fixes