summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-10-25 08:12:42 +0000
committerijliao <ijliao@FreeBSD.org>2002-10-25 08:12:42 +0000
commitbdad33d58184e38d797eac1c1a710d5bcd6c61ae (patch)
tree2aec54e1ca95e1ea1f073ee8f95c2816498cf8be
parent234ab2ed6e61699d2a60c6498629c48c92701c41 (diff)
downloadFreeBSD-ports-bdad33d58184e38d797eac1c1a710d5bcd6c61ae.zip
FreeBSD-ports-bdad33d58184e38d797eac1c1a710d5bcd6c61ae.tar.gz
add tosvcd 0.7
SVCD transcoder
-rw-r--r--graphics/Makefile1
-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
-rw-r--r--multimedia/tosvcd/Makefile34
-rw-r--r--multimedia/tosvcd/distinfo1
-rw-r--r--multimedia/tosvcd/files/patch-decode.c20
-rw-r--r--multimedia/tosvcd/files/patch-makefile11
-rw-r--r--multimedia/tosvcd/files/patch-tosvcd.c22
-rw-r--r--multimedia/tosvcd/pkg-comment1
-rw-r--r--multimedia/tosvcd/pkg-descr16
-rw-r--r--multimedia/tosvcd/pkg-plist1
17 files changed, 213 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index fc7a071..fcbcbd7 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -381,6 +381,7 @@
SUBDIR += tifmerge
SUBDIR += tkxanim
SUBDIR += togl
+ SUBDIR += tosvcd
SUBDIR += totem
SUBDIR += transcode
SUBDIR += truevision
diff --git a/graphics/tosvcd/Makefile b/graphics/tosvcd/Makefile
new file mode 100644
index 0000000..61279544
--- /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 0000000..87b0a1b
--- /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 0000000..9c13da9
--- /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 0000000..6c4b3a9
--- /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 0000000..0400030
--- /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 0000000..f28c892
--- /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 0000000..8fd0e26
--- /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 0000000..e56c2c4
--- /dev/null
+++ b/graphics/tosvcd/pkg-plist
@@ -0,0 +1 @@
+bin/tosvcd
diff --git a/multimedia/tosvcd/Makefile b/multimedia/tosvcd/Makefile
new file mode 100644
index 0000000..61279544
--- /dev/null
+++ b/multimedia/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/multimedia/tosvcd/distinfo b/multimedia/tosvcd/distinfo
new file mode 100644
index 0000000..87b0a1b
--- /dev/null
+++ b/multimedia/tosvcd/distinfo
@@ -0,0 +1 @@
+MD5 (tosvcd-0.7.tar.bz2) = d821ed70eed67dae5fbbc041217f327f
diff --git a/multimedia/tosvcd/files/patch-decode.c b/multimedia/tosvcd/files/patch-decode.c
new file mode 100644
index 0000000..9c13da9
--- /dev/null
+++ b/multimedia/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/multimedia/tosvcd/files/patch-makefile b/multimedia/tosvcd/files/patch-makefile
new file mode 100644
index 0000000..6c4b3a9
--- /dev/null
+++ b/multimedia/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/multimedia/tosvcd/files/patch-tosvcd.c b/multimedia/tosvcd/files/patch-tosvcd.c
new file mode 100644
index 0000000..0400030
--- /dev/null
+++ b/multimedia/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/multimedia/tosvcd/pkg-comment b/multimedia/tosvcd/pkg-comment
new file mode 100644
index 0000000..f28c892
--- /dev/null
+++ b/multimedia/tosvcd/pkg-comment
@@ -0,0 +1 @@
+SVCD transcoder
diff --git a/multimedia/tosvcd/pkg-descr b/multimedia/tosvcd/pkg-descr
new file mode 100644
index 0000000..8fd0e26
--- /dev/null
+++ b/multimedia/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/multimedia/tosvcd/pkg-plist b/multimedia/tosvcd/pkg-plist
new file mode 100644
index 0000000..e56c2c4
--- /dev/null
+++ b/multimedia/tosvcd/pkg-plist
@@ -0,0 +1 @@
+bin/tosvcd
OpenPOWER on IntegriCloud