summaryrefslogtreecommitdiff
path: root/graphics/tosvcd
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-25 08:12:42 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-10-25 08:12:42 +0000
commit3a0cd27f78beadddff62fd14c4273d202fe932fe (patch)
treecf50a6b82f22b66102c0797cbc13a1eebd844d2f /graphics/tosvcd
parentAdded two missing files to pkg-plist (diff)
add tosvcd 0.7
SVCD transcoder
Diffstat (limited to 'graphics/tosvcd')
-rw-r--r--graphics/tosvcd/Makefile34
-rw-r--r--graphics/tosvcd/distinfo1
-rw-r--r--graphics/tosvcd/files/patch-decode.c20
-rw-r--r--graphics/tosvcd/files/patch-makefile11
-rw-r--r--graphics/tosvcd/files/patch-tosvcd.c22
-rw-r--r--graphics/tosvcd/pkg-comment1
-rw-r--r--graphics/tosvcd/pkg-descr16
-rw-r--r--graphics/tosvcd/pkg-plist1
8 files changed, 106 insertions, 0 deletions
diff --git a/graphics/tosvcd/Makefile b/graphics/tosvcd/Makefile
new file mode 100644
index 000000000000..61279544b655
--- /dev/null
+++ b/graphics/tosvcd/Makefile
@@ -0,0 +1,34 @@
+# ex:ts=8
+# Ports collection makefile for: tosvcd
+# Date created: Oct 25, 2002
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= tosvcd
+PORTVERSION= 0.7
+CATEGORIES= graphics
+MASTER_SITES= http://muse.seh.de/tosvcd/
+
+MAINTAINER= ports@FreeBSD.org
+
+RUN_DEPNDS= mpeg2enc:${PORTSDIR}/graphics/mjpegtools \
+ vcdimager:${PORTSDIR}/graphics/vcdimager
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+MAKEFILE= makefile
+USE_GMAKE= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|^CFLAGS =|CFLAGS+=|" \
+ -e "s|^CFLAGS +=|#CFLAGS +=|g" \
+ -e "s|-lpthread|${PTHREAD_LIBS}|g" \
+ ${WRKSRC}/${MAKEFILE}
+ @${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|" ${WRKSRC}/decode.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tosvcd ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/graphics/tosvcd/distinfo b/graphics/tosvcd/distinfo
new file mode 100644
index 000000000000..87b0a1b59920
--- /dev/null
+++ b/graphics/tosvcd/distinfo
@@ -0,0 +1 @@
+MD5 (tosvcd-0.7.tar.bz2) = d821ed70eed67dae5fbbc041217f327f
diff --git a/graphics/tosvcd/files/patch-decode.c b/graphics/tosvcd/files/patch-decode.c
new file mode 100644
index 000000000000..9c13da9dfde4
--- /dev/null
+++ b/graphics/tosvcd/files/patch-decode.c
@@ -0,0 +1,20 @@
+--- decode.c.orig Fri Oct 25 16:01:13 2002
++++ decode.c Fri Oct 25 16:01:31 2002
+@@ -21,7 +21,7 @@
+ Mpeg2dec::Mpeg2dec(uint32_t mm_accel)
+ {
+ config.flags = mm_accel;
+- picture = (picture_t*)memalign (16, sizeof (picture_t));
++ picture = (picture_t*)malloc(sizeof (picture_t));
+ memset(picture, 0, sizeof (picture_t));
+ frames = 0;
+ frame_ptr[0] = 0;
+@@ -66,7 +66,7 @@
+ int size = width() * height() / 4;
+ if (frames)
+ free(frames);
+- frames = (unsigned char*)memalign(64, size*18);
++ frames = (unsigned char*)malloc(size*18);
+ unsigned char* alloc = frames;
+
+ for (int i = 0; i < 3; i++) {
diff --git a/graphics/tosvcd/files/patch-makefile b/graphics/tosvcd/files/patch-makefile
new file mode 100644
index 000000000000..6c4b3a971be8
--- /dev/null
+++ b/graphics/tosvcd/files/patch-makefile
@@ -0,0 +1,11 @@
+--- makefile.orig Fri Oct 25 16:04:05 2002
++++ makefile Fri Oct 25 16:04:25 2002
+@@ -21,7 +21,7 @@
+
+ tosvcd: $(OBJ)
+ $(CC) -o tosvcd $(OBJ) -lpthread
+- su -c "cp tosvcd /usr/bin"
++# su -c "cp tosvcd /usr/bin"
+
+ t:
+ ./tosvcd -o reeperbahn /video0/Auf_der_Reeperbahn_nachts_um_halb_eins/2002-03-09.15:21.50.50.rec
diff --git a/graphics/tosvcd/files/patch-tosvcd.c b/graphics/tosvcd/files/patch-tosvcd.c
new file mode 100644
index 000000000000..0400030a1fc7
--- /dev/null
+++ b/graphics/tosvcd/files/patch-tosvcd.c
@@ -0,0 +1,22 @@
+--- tosvcd.c.orig Fri Oct 25 12:15:12 2002
++++ tosvcd.c Fri Oct 25 12:16:27 2002
+@@ -29,9 +29,8 @@
+ #include <time.h>
+ #include <pthread.h>
+ #include <list>
+-#include <values.h>
+ #include <signal.h>
+-#include <wait.h>
++#include <sys/wait.h>
+ #include <glob.h>
+
+
+@@ -1322,7 +1321,7 @@
+ // catch all signals
+ //---------------------------------------------------
+ #if 1
+- for (int i = 0; i < _NSIG; ++i) {
++ for (int i = 0; i < NSIG; ++i) {
+ if (i != SIGABRT)
+ signal(i, catchSignal);
+ }
diff --git a/graphics/tosvcd/pkg-comment b/graphics/tosvcd/pkg-comment
new file mode 100644
index 000000000000..f28c892561e0
--- /dev/null
+++ b/graphics/tosvcd/pkg-comment
@@ -0,0 +1 @@
+SVCD transcoder
diff --git a/graphics/tosvcd/pkg-descr b/graphics/tosvcd/pkg-descr
new file mode 100644
index 000000000000..8fd0e26462b1
--- /dev/null
+++ b/graphics/tosvcd/pkg-descr
@@ -0,0 +1,16 @@
+tosvcd takes one or more recorded vdr files and transcodes them to a SVCD
+image file ready for cdrdao to burn.
+
+Some functions:
+ * synchronises Video/Audio
+ * tries to repair demaged streams
+ * split output(with help of mpeg2enc)
+ * invoke yuvscaler, if input is not 480x576
+ * invoke noise filter on request
+ * predicts finish time
+ * predicts final output size
+ * restarts if output size exceeds CD's capacity to enable full automatic
+ operation
+ * invoke mplex and vcdimager
+
+WWW: http://muse.seh.de/tosvcd/
diff --git a/graphics/tosvcd/pkg-plist b/graphics/tosvcd/pkg-plist
new file mode 100644
index 000000000000..e56c2c408888
--- /dev/null
+++ b/graphics/tosvcd/pkg-plist
@@ -0,0 +1 @@
+bin/tosvcd