From a4ff41342150810d09e99e5012d3860236c4bfa1 Mon Sep 17 00:00:00 2001 From: darcy Date: Fri, 28 Dec 2007 20:30:46 +0000 Subject: Initial checkin of dvd-slideshow. Version 0.7.5 Script that creates a slideshow-style DVD with some simple menus --- multimedia/Makefile | 3 +- multimedia/dvd-slideshow/DESCR | 4 ++ multimedia/dvd-slideshow/Makefile | 67 +++++++++++++++++++++++++++++++ multimedia/dvd-slideshow/PLIST | 11 +++++ multimedia/dvd-slideshow/distinfo | 6 +++ multimedia/dvd-slideshow/patches/patch-aa | 40 ++++++++++++++++++ 6 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 multimedia/dvd-slideshow/DESCR create mode 100644 multimedia/dvd-slideshow/Makefile create mode 100644 multimedia/dvd-slideshow/PLIST create mode 100644 multimedia/dvd-slideshow/distinfo create mode 100644 multimedia/dvd-slideshow/patches/patch-aa (limited to 'multimedia') diff --git a/multimedia/Makefile b/multimedia/Makefile index da1a927e114..d334ca10888 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.111 2007/09/19 23:46:06 wiz Exp $ +# $NetBSD: Makefile,v 1.112 2007/12/28 20:30:46 darcy Exp $ # COMMENT= Multimedia utilities @@ -10,6 +10,7 @@ SUBDIR+= avidemux SUBDIR+= dirac SUBDIR+= divxplayer SUBDIR+= dumpmpeg +SUBDIR+= dvd-slideshow SUBDIR+= dvdauthor SUBDIR+= dvdbackup SUBDIR+= dvdrip diff --git a/multimedia/dvd-slideshow/DESCR b/multimedia/dvd-slideshow/DESCR new file mode 100644 index 00000000000..c7f2406f9a9 --- /dev/null +++ b/multimedia/dvd-slideshow/DESCR @@ -0,0 +1,4 @@ +Script that creates a slideshow-style dvd with some simple menus + +Author: Scott Dylewski +WWW: http://dvd-slideshow.sourceforge.net/ diff --git a/multimedia/dvd-slideshow/Makefile b/multimedia/dvd-slideshow/Makefile new file mode 100644 index 00000000000..925fc913bcd --- /dev/null +++ b/multimedia/dvd-slideshow/Makefile @@ -0,0 +1,67 @@ +# $NetBSD: Makefile,v 1.1 2007/12/28 20:30:47 darcy Exp $ +# FreeBSD Id: ports/multimedia/dvd-slideshow/Makefile,v 1.12 2007/09/23 04:42:06 edwin Exp + +DISTNAME= dvd-slideshow-0.7.5 +CATEGORIES= multimedia +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=${PORTNAME}/} + +MAINTAINER= darcy@NetBSD.org +HOMEPAGE= http://dvd-slideshow.sourceforge.net/ +COMMENT= Script that creates a slideshow-style DVD with some simple menus + +DEPENDS += cdrtools:../../sysutils/cdrtools +DEPENDS += sox:../../audio/sox +DEPENDS += dvdauthor:../../multimedia/dvdauthor +DEPENDS += dvd+rw-tools:../../sysutils/dvd+rw-tools + +USE_X11BASE=yes +USE_TOOLS += bash +NO_BUILD= yes +SCRIPTS= dvd-slideshow dvd-menu dir2slideshow gallery1-to-slideshow \ + jigl2slideshow +DOC_FILES= changelog.html gallery1-to-slideshow.html \ + dir2slideshow.html jigl2slideshow.html \ + dvd-menu.html dvd-slideshow.html +MAN1= dvd-slideshow.1 dvd-menu.1 dir2slideshow.1 gallery1-to-slideshow.1 \ + jigl2slideshow.1 + +REPLACE_BASH = dir2slideshow dvd-burn dvd-encode dvd-iso dvd-menu \ + dvd-slideshow dvd-slideshow.orig gallery1-to-slideshow \ + install.sh jigl2slideshow + +.include "../../mk/bsd.prefs.mk" + +.if exists(${LOCALBASE}/bin/lame) +DEPENDS+= lame:../../audio/lame +.endif +.if exists(${LOCALBASE}/bin/oggdec) +DEPENDS += vorbis-tools:../../audio/vorbis-tools +.endif + +SUBST_CLASSES+= fonts +SUBST_STAGE.fonts= post-install +SUBST_FILES.fonts= dvd-menu dvd-slideshow +SUBST_SED.fonts= -e 's,/usr/share/fonts/,${X11BASE}/lib/X11/fonts/,g' +SUBST_MESSAGE.fonts= Fixing hardcoded fonts paths. + +do-install: +.for file in ${SCRIPTS} + ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor + + @${ECHO_MSG} "Installing man files." +.for file in ${MAN1} + ${INSTALL_MAN} ${WRKSRC}/man/${file} ${PREFIX}/${PKGMANDIR}/man1 +.endfor + + @${ECHO_MSG} "Installing doc files." + ${MKDIR} ${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/dvd-slideshowrc ${DOCDIR} +.for file in ${DOC_FILES} + ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCDIR} +.endfor + +.include "../../graphics/ImageMagick/buildlink3.mk" +.include "../../multimedia/mjpegtools/buildlink3.mk" +.include "../../multimedia/ffmpeg/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/multimedia/dvd-slideshow/PLIST b/multimedia/dvd-slideshow/PLIST new file mode 100644 index 00000000000..eff8c6aaed3 --- /dev/null +++ b/multimedia/dvd-slideshow/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1 2007/12/28 20:30:47 darcy Exp $ +bin/dir2slideshow +bin/dvd-menu +bin/dvd-slideshow +bin/gallery1-to-slideshow +bin/jigl2slideshow +man/man1/dir2slideshow.1 +man/man1/dvd-menu.1 +man/man1/dvd-slideshow.1 +man/man1/gallery1-to-slideshow.1 +man/man1/jigl2slideshow.1 diff --git a/multimedia/dvd-slideshow/distinfo b/multimedia/dvd-slideshow/distinfo new file mode 100644 index 00000000000..29287b69967 --- /dev/null +++ b/multimedia/dvd-slideshow/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2007/12/28 20:30:47 darcy Exp $ + +SHA1 (dvd-slideshow-0.7.5.tar.gz) = 82a33d1e9713cd4204dbd592989bb10946fe07ec +RMD160 (dvd-slideshow-0.7.5.tar.gz) = 09bea91d35766bc4dc5a8711b49e6c50207dc6ca +Size (dvd-slideshow-0.7.5.tar.gz) = 98747 bytes +SHA1 (patch-aa) = 3112a1e0cfe0e6bc3a6e980f4df6661b6c6fec99 diff --git a/multimedia/dvd-slideshow/patches/patch-aa b/multimedia/dvd-slideshow/patches/patch-aa new file mode 100644 index 00000000000..ff372b216e5 --- /dev/null +++ b/multimedia/dvd-slideshow/patches/patch-aa @@ -0,0 +1,40 @@ +$NetBSD: patch-aa,v 1.1 2007/12/28 20:30:47 darcy Exp $ + +--- dvd-slideshow.orig 2006-03-10 00:56:54.000000000 -0500 ++++ dvd-slideshow +@@ -877,7 +877,7 @@ hms () + it=$(( $1 - $minutes * 60000 )) + seconds=$(( $it / 1000 )) ; [ $seconds -eq 0 ] && seconds="0" + thousandths=$(( $it - $seconds * 1000 )) ; +- characters=`echo "$thousandths" | wc --chars` ++ characters=`echo "$thousandths" | wc -m` + if [ $characters -eq 1 ] ; then + thousandths_out="000" # empty string! + elif [ $characters -eq 2 ] ; then +@@ -923,7 +923,7 @@ hms2seconds () + minutes=`echo $1 | cut -d: -f2` + seconds=`echo $1 | cut -d: -f3 | cut -d. -f1` + fraction=`echo $1 | cut -d: -f3 | cut -d. -f2` +- characters=`echo "$fraction" | wc --chars` ++ characters=`echo "$fraction" | wc -m` + if [ "$characters" -eq 1 ] ; then ## no decimal was specified + duration_ms="0" + elif [ "$characters" -eq 2 ] ; then ## 1 decimal was specified +@@ -1121,7 +1121,7 @@ duration2ms () + local l_duration_sec=`echo $1 | awk -F. '{ print $1 }'` + [ -z "$l_duration_sec" ] && l_duration_sec=0 + local l_duration_ms=`echo $1 | awk -F. '{ print $2 }'` +- local l_characters=`echo "$l_duration_ms" | wc --chars` ++ local l_characters=`echo "$l_duration_ms" | wc -m` + if [ -z "$l_duration_ms" ] ; then + l_duration_ms=0 + elif [ "$l_characters" -eq 1 ] ; then +@@ -4422,7 +4422,7 @@ if [ -z "${audio_1[0]}" ] && [ "$command + audio_1[0]='silence' # no duration needed + myecho "[dvd-slideshow] No audio files passed. Using $end_hms silence." + audio1_start=0 +- audio1_end="$end_time" ++ audio1_end="5" + fi + + ## let's split this audio processing into two loops: one just prepares the -- cgit v1.2.3