aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/tovid
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2005-12-28 00:49:43 +0800
committerlioux <lioux@FreeBSD.org>2005-12-28 00:49:43 +0800
commitb7feec4f5f24b57d69bc52606c063912b2b3fb40 (patch)
tree2bbebf3fbfde5d4a4a2f5c69df688abce8c960e4 /multimedia/tovid
parent2b8b0d47db85c082886af136e3cb538ced71bfa8 (diff)
downloadfreebsd-ports-gnome-b7feec4f5f24b57d69bc52606c063912b2b3fb40.tar.gz
freebsd-ports-gnome-b7feec4f5f24b57d69bc52606c063912b2b3fb40.tar.zst
freebsd-ports-gnome-b7feec4f5f24b57d69bc52606c063912b2b3fb40.zip
New port tovid version 0.24: A collection of video disc authoring
tools
Diffstat (limited to 'multimedia/tovid')
-rw-r--r--multimedia/tovid/Makefile90
-rw-r--r--multimedia/tovid/distinfo3
-rw-r--r--multimedia/tovid/files/patch-src__tovid.sh22
-rw-r--r--multimedia/tovid/pkg-descr18
-rw-r--r--multimedia/tovid/pkg-plist39
5 files changed, 172 insertions, 0 deletions
diff --git a/multimedia/tovid/Makefile b/multimedia/tovid/Makefile
new file mode 100644
index 000000000000..5e0b01d383af
--- /dev/null
+++ b/multimedia/tovid/Makefile
@@ -0,0 +1,90 @@
+# New ports collection makefile for: tovid
+# Date created: Mon Dec 26 20:00:42 UTC 2005
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tovid
+PORTVERSION= 0.24
+CATEGORIES= multimedia
+MASTER_SITES= http://download.berlios.de/tovid/
+
+MAINTAINER= lioux@FreeBSD.org
+COMMENT= A collection of video disc authoring tools
+
+BUILD_DEPENDS= \
+ sox:${PORTSDIR}/audio/sox \
+ composite:${PORTSDIR}/graphics/ImageMagick \
+ convert:${PORTSDIR}/graphics/ImageMagick \
+ dvdauthor:${PORTSDIR}/multimedia/dvdauthor \
+ spumux:${PORTSDIR}/multimedia/dvdauthor \
+ ffmpeg:${PORTSDIR}/multimedia/ffmpeg \
+ mp2enc:${PORTSDIR}/multimedia/mjpegtools \
+ mpeg2enc:${PORTSDIR}/multimedia/mjpegtools \
+ mplex:${PORTSDIR}/multimedia/mjpegtools \
+ ppmtoy4m:${PORTSDIR}/multimedia/mjpegtools \
+ yuvdenoise:${PORTSDIR}/multimedia/mjpegtools \
+ yuvfps:${PORTSDIR}/multimedia/mjpegtools \
+ mencoder:${PORTSDIR}/multimedia/mplayer \
+ mplayer:${PORTSDIR}/multimedia/mplayer \
+ tcprobe:${PORTSDIR}/multimedia/transcode \
+ tcrequant:${PORTSDIR}/multimedia/transcode \
+ vcdxbuild:${PORTSDIR}/multimedia/vcdimager \
+ cdrdao:${PORTSDIR}/sysutils/cdrdao \
+ mkisofs:${PORTSDIR}/sysutils/cdrtools \
+ growisofs:${PORTSDIR}/sysutils/dvd+rw-tools
+RUN_DEPENDS= \
+ ${BUILD_DEPENDS} \
+ ${PYTHON_SITELIBDIR}/wx-2.6-gtk2-ansi/wx/__init__.py:${PORTSDIR}/x11-toolkits/py-wxPython26
+
+USE_REINPLACE= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+GNU_CONFIGURE= yes
+
+MAN1= idvid.1 makedvd.1 makemenu.1 makeslides.1 makexml.1 postproc.1 \
+ tovid-suite.1 tovid.1
+
+post-patch:
+ @${REINPLACE_CMD} -E \
+ -e 's|gawk|${AWK}|' \
+ -e 's|md5sum|md5|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
+# md5sum -> md5
+# gnu sed -> sed
+# linux du -> du
+# 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|(-dumpaudio)|-vc dummy -vo null \1|' \
+ ${WRKSRC}/src/*
+# bash to sh fixes
+ @${REINPLACE_CMD} -E \
+ -e 's|\[\[|\[|' \
+ -e 's|\]\]|\]|' \
+ -e 's|(\[[^]]+=)=|\1|g' \
+ -e 's|(\[[^]]+=)=|\1|g' \
+ -e 's,(\[[^]]+)\|\|,\1 -o,g' \
+ -e 's|(\[[^]]+)&&|\1 -a|g' \
+ ${WRKSRC}/src/*
+# python interpreter safeness
+.for dir in libtovid src
+ @${REINPLACE_CMD} -E \
+ -e 's|/usr/bin/env[[:space:]]+python|${PYTHON_CMD}|' \
+ ${WRKSRC}/${dir}/*
+.endfor
+# sh interpreter safeness
+ @${REINPLACE_CMD} -E \
+ -e 's|`which env`[[:space:]]+sh|${SH}|' \
+ ${WRKSRC}/src/Makefile.in
+
+post-build:
+ @cd ${WRKSRC} && ${MAKE}
+
+post-install:
+ @cd ${WRKSRC} && ${MAKE} install
+
+.include <bsd.port.mk>
diff --git a/multimedia/tovid/distinfo b/multimedia/tovid/distinfo
new file mode 100644
index 000000000000..13962dbe9aef
--- /dev/null
+++ b/multimedia/tovid/distinfo
@@ -0,0 +1,3 @@
+MD5 (tovid-0.24.tar.gz) = e12bd1d8d034534f6808b3f45f9f54a5
+SHA256 (tovid-0.24.tar.gz) = 0643993a98a22baed3de01d2ee15d0fcbe54d38523d61e4a7beb06e88f656b2f
+SIZE (tovid-0.24.tar.gz) = 167673
diff --git a/multimedia/tovid/files/patch-src__tovid.sh b/multimedia/tovid/files/patch-src__tovid.sh
new file mode 100644
index 000000000000..80af33b9c9b0
--- /dev/null
+++ b/multimedia/tovid/files/patch-src__tovid.sh
@@ -0,0 +1,22 @@
+--- src/tovid.sh.orig Tue Dec 27 03:29:42 2005
++++ src/tovid.sh Tue Dec 27 03:43:52 2005
+@@ -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
+ else
+- AUDIO_CMD="$PRIORITY mplayer $MPLAYER_OPTS -quiet -vc null -vo null -ao pcm:waveheader:file=$AUDIO_WAV \"$IN_FILE\""
++ AUDIO_CMD="$PRIORITY mplayer $MPLAYER_OPTS -quiet -vc dummy -vo null -ao pcm:waveheader:file=$AUDIO_WAV \"$IN_FILE\""
+ # Normalize, if requested
+ if $DO_NORM; then
+ AUDIO_CMD="$AUDIO_CMD -af volnorm"
+@@ -1512,8 +1512,8 @@
+ # ******************************************************************************
+ # ******************************************************************************
+
+-AUDIO_SIZE=`du -c -b "$OUT_PREFIX.$AUD_SUF" | awk 'END{print $1}'`
+-VIDEO_SIZE=`du -c -b "$OUT_PREFIX.$VID_SUF" | awk 'END{print $1}'`
++AUDIO_SIZE=`ls -ALln "$OUT_PREFIX.$AUD_SUF" | awk '{ sum += $5 } END { print sum }'`
++VIDEO_SIZE=`ls -ALln "$OUT_PREFIX.$VID_SUF" | awk '{ sum += $5 } END { print sum }'`
+ # Total size of streams so far (in MBytes)
+ TOTAL_SIZE=`expr \( $AUDIO_SIZE \+ $VIDEO_SIZE \) \/ 1000000`
+ # If it will exceed disc size, add '%d' field to allow mplex to split the output
diff --git a/multimedia/tovid/pkg-descr b/multimedia/tovid/pkg-descr
new file mode 100644
index 000000000000..35427f94cb0e
--- /dev/null
+++ b/multimedia/tovid/pkg-descr
@@ -0,0 +1,18 @@
+[ excerpt from developer's www site with modifications ]
+
+tovid is a collection of video disc authoring tools; it can help
+you create your own DVDs, VCDs, and SVCDs for playback on your home
+DVD player. It has a command-line interface as well as a graphical
+frontend.
+
+You may find tovid useful if:
+- you have a digital camcorder, and want to share home movies with
+ family and friends
+- you are a 3D artist or animator, and want to put your portfolio
+ on DVD for easy distribution
+- your video files are eating up too much hard drive space, and you
+ want to back them up onto a portable medium
+
+WWW: http://tovid.berlios.de/
+
+-- lioux@FreeBSD.org
diff --git a/multimedia/tovid/pkg-plist b/multimedia/tovid/pkg-plist
new file mode 100644
index 000000000000..079e71673830
--- /dev/null
+++ b/multimedia/tovid/pkg-plist
@@ -0,0 +1,39 @@
+bin/dvrequant
+bin/idvid
+bin/makedvd
+bin/makemenu
+bin/makeslides
+bin/makevcd
+bin/makexml
+bin/postproc
+bin/previd
+bin/tovid
+bin/tovid-batch
+bin/tovid-init
+bin/tovid-interactive
+bin/tovid-test
+bin/tovidgui
+%%PYTHON_SITELIBDIR%%/libtovid/Globals.py
+%%PYTHON_SITELIBDIR%%/libtovid/Globals.pyc
+%%PYTHON_SITELIBDIR%%/libtovid/Globals.pyo
+%%PYTHON_SITELIBDIR%%/libtovid/Parser.py
+%%PYTHON_SITELIBDIR%%/libtovid/Parser.pyc
+%%PYTHON_SITELIBDIR%%/libtovid/Parser.pyo
+%%PYTHON_SITELIBDIR%%/libtovid/Project.py
+%%PYTHON_SITELIBDIR%%/libtovid/Project.pyc
+%%PYTHON_SITELIBDIR%%/libtovid/Project.pyo
+%%PYTHON_SITELIBDIR%%/libtovid/TDL.py
+%%PYTHON_SITELIBDIR%%/libtovid/TDL.pyc
+%%PYTHON_SITELIBDIR%%/libtovid/TDL.pyo
+%%PYTHON_SITELIBDIR%%/libtovid/Target.py
+%%PYTHON_SITELIBDIR%%/libtovid/Target.pyc
+%%PYTHON_SITELIBDIR%%/libtovid/Target.pyo
+%%PYTHON_SITELIBDIR%%/libtovid/__init__.py
+%%PYTHON_SITELIBDIR%%/libtovid/__init__.pyc
+%%PYTHON_SITELIBDIR%%/libtovid/__init__.pyo
+%%PYTHON_SITELIBDIR%%/libtovid/tools.py
+%%PYTHON_SITELIBDIR%%/libtovid/tools.pyc
+%%PYTHON_SITELIBDIR%%/libtovid/tools.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/libtovid
+@unexec rmdir %D/%%PYTHON_SITELIBDIR%% 2>/dev/null || true
+@unexec rmdir %D/%%PYTHON_LIBDIR%% 2>/dev/null || true