aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/mjpegtools/Makefile145
-rw-r--r--graphics/mjpegtools/distinfo1
-rw-r--r--graphics/mjpegtools/files/patch-lavtools::divxdec.cpp40
-rw-r--r--graphics/mjpegtools/pkg-comment1
-rw-r--r--graphics/mjpegtools/pkg-descr16
-rw-r--r--graphics/mjpegtools/pkg-plist75
-rw-r--r--multimedia/mjpegtools/Makefile145
-rw-r--r--multimedia/mjpegtools/distinfo1
-rw-r--r--multimedia/mjpegtools/files/patch-lavtools::divxdec.cpp40
-rw-r--r--multimedia/mjpegtools/pkg-comment1
-rw-r--r--multimedia/mjpegtools/pkg-descr16
-rw-r--r--multimedia/mjpegtools/pkg-plist75
13 files changed, 557 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 8db6f112a5e..066903855c8 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -199,6 +199,7 @@
SUBDIR += metapixel
SUBDIR += ming
SUBDIR += miniscrib
+ SUBDIR += mjpegtools
SUBDIR += mmsclient
SUBDIR += morpheus
SUBDIR += mpeg
diff --git a/graphics/mjpegtools/Makefile b/graphics/mjpegtools/Makefile
new file mode 100644
index 00000000000..4068e340d0a
--- /dev/null
+++ b/graphics/mjpegtools/Makefile
@@ -0,0 +1,145 @@
+# New ports collection makefile for: mjpegtools
+# Date created: Wed May 29 21:12:38 UTC 2002
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mjpegtools
+PORTVERSION= 1.6.0
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= mjpeg
+
+MAINTAINER= lioux@FreeBSD.org
+
+BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
+
+USE_GLIB= yes
+USE_GMAKE= yes
+USE_XLIB= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --without-aviplay
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+WANT_GTK= yes
+
+MAN1= divxdec.1 jpeg2yuv.1 lav2divx.1 lav2mpeg.1 lav2wav.1 lav2yuv.1 \
+ lavpipe.1 lavplay.1 lavrec.1 lavtrans.1 mjpegtools.1 mp2enc.1 \
+ mpeg2enc.1 mplex.1 ppmtoy4m.1 y4mcolorbars.1 y4mtoppm.1 \
+ yuv2divx.1 yuv2lav.1 yuvdenoise.1 yuvkineco.1 yuvmedianfilter.1 \
+ yuvplay.1 yuvscaler.1 yuvycsnoise.1
+MAN5= yuv4mpeg.5
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+
+DOC_FILES= AUTHORS BUGS CHANGES COPYING ChangeLog HINTS NEWS \
+ PLANS README README.DV README.avilib README.glav \
+ README.lavpipe README.transist TODO
+
+post-install:
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.pre.mk>
+
+# pre-detection
+# LIBDV
+.if exists(${LOCALBASE}/lib/libdv.so.1)
+WITH_LIBDV= yes
+.endif
+# LIBMOVTAR
+.if exists(${LOCALBASE}/lib/libmovtar.a)
+WITH_LIBMOVTAR= yes
+.endif
+# QUICKTIME
+.if exists(${LOCALBASE}/lib/libopenquicktime.so.0)
+WITH_QUICKTIME= yes
+.endif
+# SDL
+.if exists(${LOCALBASE}/lib/libSDL-1.1.so.4)
+WITH_SDL= yes
+.endif
+
+# option activation
+.ifdef(HAVE_GTK)
+USE_GTK= yes
+.endif
+#
+.ifdef(WITH_LIBDV)
+LIB_DEPENDS+= dv.1:${PORTSDIR}/graphics/libdv
+
+CONFIGURE_ARGS+= --with-dv=${LOCALBASE}
+.endif
+#
+.ifdef(WITH_LIBMOVTAR)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libmovtar.a:${PORTSDIR}/graphics/libmovtar
+
+CONFIGURE_ARGS+= --with-movtar-prefix=${LOCALBASE}
+.endif
+#
+.ifdef(WITH_SDL)
+LIB_DEPENDS+= SDL-1.1.4:${PORTSDIR}/devel/sdl12
+
+CONFIGURE_ARGS+= --with-sdl
+CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
+.endif
+#
+.ifdef(WITH_QUICKTIME)
+LIB_DEPENDS+= openquicktime.0:${PORTSDIR}/graphics/openquicktime
+
+CONFIGURE_ARGS+= --with-quicktime=${LOCALBASE}
+.endif
+
+pre-everything::
+.ifndef(HAVE_GTK)
+ @${ECHO_MSG} "====> You can enable GTK support by defining WITH_GTK"
+.endif
+.ifndef(WITH_LIBDV)
+ @${ECHO_MSG} "====> You can enable DV support by defining WITH_LIBDV"
+.endif
+.ifndef(WITH_LIBMOVTAR)
+ @${ECHO_MSG} "====> You can enable movtar support by defining WITH_LIBMOVTAR"
+.endif
+.ifndef(WITH_QUICKTIME)
+ @${ECHO_MSG} "====> You can enable quicktime support by defining WITH_QUICKTIME"
+.endif
+.ifndef(WITH_SDL)
+ @${ECHO_MSG} "====> You can enable SDL support by defining WITH_SDL"
+.endif
+
+post-patch:
+ @${PERL} -pi -e 's|^(pkgconfigdir = )\$$\(libdir\)/(pkgconfig)|\1${PREFIX}/libdata/\2|' \
+ ${WRKSRC}/Makefile.in
+ @${PERL} -pi -e 's|stdint.h|sys/types.h|' \
+ ${WRKSRC}/lavtools/lav2divx.cpp \
+ ${WRKSRC}/lavtools/yuv2divx.cpp \
+ ${WRKSRC}/lavtools/divxdec.cpp
+ @${PERL} -pi -e 's@(-l(jpeg|openquicktime|png))@-L${LOCALBASE}/lib \1@; \
+ s|(-I) (\$$with_quicktime)|\1\2/include/openquicktime|; \
+ s|(with_quicktime/)(openquicktime)(.h)|\1include/\2/\2\3|; \
+ s|-ldl||; \
+ s|(-ldv)|-L${LOCALBASE}/lib \1 ${PTHREAD_LIBS:S/"//g}|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+ @${PERL} -pi -e 's|SDL/|SDL11/|' \
+ ${WRKSRC}/lavtools/liblavplay.c \
+ ${WRKSRC}/lavtools/yuvplay.c
+.ifdef(WITH_QUICKTIME)
+ @${PERL} -pi -e 's|^(have_openquicktime=).+|\1true|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+ @${PERL} -pi -e 's|HAVE_OPENQUICKTIME|__FreeBSD__|' \
+ ${WRKSRC}/lavtools/lav_io.h
+.endif
+
+pre-build:
+.ifdef(WITH_QUICKTIME)
+ @${ECHO_CMD} "#define HAVE_OPENQUICKTIME 1" >> ${WRKSRC}/config.h
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/mjpegtools/distinfo b/graphics/mjpegtools/distinfo
new file mode 100644
index 00000000000..08d41380175
--- /dev/null
+++ b/graphics/mjpegtools/distinfo
@@ -0,0 +1 @@
+MD5 (mjpegtools-1.6.0.tar.gz) = cb34077cc3460494bc3759e3655e5263
diff --git a/graphics/mjpegtools/files/patch-lavtools::divxdec.cpp b/graphics/mjpegtools/files/patch-lavtools::divxdec.cpp
new file mode 100644
index 00000000000..27772b647f7
--- /dev/null
+++ b/graphics/mjpegtools/files/patch-lavtools::divxdec.cpp
@@ -0,0 +1,40 @@
+--- lavtools/divxdec.cpp.orig Wed May 29 19:02:12 2002
++++ lavtools/divxdec.cpp Wed May 29 20:08:34 2002
+@@ -1284,7 +1284,7 @@
+ exit (1);
+ }
+
+-FILE* real_stdout;
++FILE real_stdout;
+
+ int
+ main (int argc, char **argv)
+@@ -1309,8 +1309,8 @@
+ std::cout.rdbuf ( std::cerr.rdbuf () );
+ //
+ // 4. keep old stdout FILE, and use stderr in its place (for printf ("...") ; )
+- real_stdout = stdout ;
+- stdout = stderr;
++ real_stdout = *stdout ;
++ *stdout = *stderr;
+
+ displayGreeting();
+
+@@ -1733,7 +1733,7 @@
+ if ( 0 == strcmp ( "-", filenameYUV ) )
+ {
+ //output.fdYUV = FD_STDOUT;
+- output.fdYUV = fileno ( real_stdout );
++ output.fdYUV = fileno ( &real_stdout );
+ }
+ else
+ {
+@@ -2042,7 +2042,7 @@
+ freeAll ();
+ // reassign cout, stdout to their original values.
+ std::cout.rdbuf ( real_cout );
+- stdout = real_stdout;
++ *stdout = real_stdout;
+
+ mjpeg_info ( " " );
+ mjpeg_info ( "Done. %i frames", output.processedFrames );
diff --git a/graphics/mjpegtools/pkg-comment b/graphics/mjpegtools/pkg-comment
new file mode 100644
index 00000000000..08a9bd3eb37
--- /dev/null
+++ b/graphics/mjpegtools/pkg-comment
@@ -0,0 +1 @@
+Set of tools to record/playback/edit videos in MPEG format
diff --git a/graphics/mjpegtools/pkg-descr b/graphics/mjpegtools/pkg-descr
new file mode 100644
index 00000000000..efe372e98fe
--- /dev/null
+++ b/graphics/mjpegtools/pkg-descr
@@ -0,0 +1,16 @@
+[ edited excerpt from developer's README ]
+
+lavtools: Linux Audio and Video TOOLS for Motion JPEG and MPEG
+==============================================================
+
+Programs for MJPEG recording and playback and simple cut-and-paste
+editting and MPEG compression of audio and video under Linux (Now
+FreeBSD).
+
+N.b. Only the "lav" programs have been written whooly from scratch.
+The rest are from diverse open source originals, modified to work
+with the lav tools edit lists and AVI and quicktime files. Some
+(especially the MPEG tools) have had also more major perfomance and
+functionality enhancements.
+
+WWW: http://mjpeg.sourceforge.net/
diff --git a/graphics/mjpegtools/pkg-plist b/graphics/mjpegtools/pkg-plist
new file mode 100644
index 00000000000..9c6d641b4fb
--- /dev/null
+++ b/graphics/mjpegtools/pkg-plist
@@ -0,0 +1,75 @@
+bin/glav
+bin/jpeg2yuv
+bin/lav2mpeg
+bin/lav2wav
+bin/lav2yuv
+bin/lavaddwav
+bin/lavinfo
+bin/lavpipe
+bin/lavplay
+bin/lavtrans
+bin/matteblend.flt
+bin/mjpegtools-config
+bin/mp2enc
+bin/mpeg2enc
+bin/mpegtranscode
+bin/mplex
+bin/ppmtoy4m
+bin/transist.flt
+bin/y4mcolorbars
+bin/y4mtoppm
+bin/ypipe
+bin/yuv2lav
+bin/yuvdenoise
+bin/yuvkineco
+bin/yuvmedianfilter
+bin/yuvplay
+bin/yuvscaler
+bin/yuvycsnoise
+include/mjpegtools/audiolib.h
+include/mjpegtools/editlist.h
+include/mjpegtools/frequencies.h
+include/mjpegtools/jpegutils.h
+include/mjpegtools/lav_io.h
+include/mjpegtools/liblavplay.h
+include/mjpegtools/liblavrec.h
+include/mjpegtools/mjpeg_logging.h
+include/mjpegtools/mjpeg_types.h
+include/mjpegtools/mpegconsts.h
+include/mjpegtools/mpegtimecode.h
+include/mjpegtools/yuv4mpeg.h
+lib/liblavfile-1.6.so
+lib/liblavfile-1.6.so.0
+lib/liblavfile.a
+lib/liblavfile.la
+lib/liblavfile.so
+lib/liblavjpeg-1.6.so
+lib/liblavjpeg-1.6.so.0
+lib/liblavjpeg.a
+lib/liblavjpeg.la
+lib/liblavjpeg.so
+lib/liblavplay-1.6.so
+lib/liblavplay-1.6.so.0
+lib/liblavplay.a
+lib/liblavplay.la
+lib/liblavplay.so
+lib/libmjpegutils.a
+libdata/pkgconfig/mjpegtools.pc
+%%PORTDOCS%%share/doc/mjpegtools/AUTHORS
+%%PORTDOCS%%share/doc/mjpegtools/BUGS
+%%PORTDOCS%%share/doc/mjpegtools/CHANGES
+%%PORTDOCS%%share/doc/mjpegtools/COPYING
+%%PORTDOCS%%share/doc/mjpegtools/ChangeLog
+%%PORTDOCS%%share/doc/mjpegtools/HINTS
+%%PORTDOCS%%share/doc/mjpegtools/NEWS
+%%PORTDOCS%%share/doc/mjpegtools/PLANS
+%%PORTDOCS%%share/doc/mjpegtools/README
+%%PORTDOCS%%share/doc/mjpegtools/README.DV
+%%PORTDOCS%%share/doc/mjpegtools/README.avilib
+%%PORTDOCS%%share/doc/mjpegtools/README.glav
+%%PORTDOCS%%share/doc/mjpegtools/README.lavpipe
+%%PORTDOCS%%share/doc/mjpegtools/README.transist
+%%PORTDOCS%%share/doc/mjpegtools/TODO
+%%PORTDOCS%%@dirrm share/doc/mjpegtools
+@unexec rmdir %D/libdata/pkgconfig 2>/dev/null || true
+@dirrm include/mjpegtools
diff --git a/multimedia/mjpegtools/Makefile b/multimedia/mjpegtools/Makefile
new file mode 100644
index 00000000000..4068e340d0a
--- /dev/null
+++ b/multimedia/mjpegtools/Makefile
@@ -0,0 +1,145 @@
+# New ports collection makefile for: mjpegtools
+# Date created: Wed May 29 21:12:38 UTC 2002
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mjpegtools
+PORTVERSION= 1.6.0
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= mjpeg
+
+MAINTAINER= lioux@FreeBSD.org
+
+BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
+
+USE_GLIB= yes
+USE_GMAKE= yes
+USE_XLIB= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --without-aviplay
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+WANT_GTK= yes
+
+MAN1= divxdec.1 jpeg2yuv.1 lav2divx.1 lav2mpeg.1 lav2wav.1 lav2yuv.1 \
+ lavpipe.1 lavplay.1 lavrec.1 lavtrans.1 mjpegtools.1 mp2enc.1 \
+ mpeg2enc.1 mplex.1 ppmtoy4m.1 y4mcolorbars.1 y4mtoppm.1 \
+ yuv2divx.1 yuv2lav.1 yuvdenoise.1 yuvkineco.1 yuvmedianfilter.1 \
+ yuvplay.1 yuvscaler.1 yuvycsnoise.1
+MAN5= yuv4mpeg.5
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+
+DOC_FILES= AUTHORS BUGS CHANGES COPYING ChangeLog HINTS NEWS \
+ PLANS README README.DV README.avilib README.glav \
+ README.lavpipe README.transist TODO
+
+post-install:
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.pre.mk>
+
+# pre-detection
+# LIBDV
+.if exists(${LOCALBASE}/lib/libdv.so.1)
+WITH_LIBDV= yes
+.endif
+# LIBMOVTAR
+.if exists(${LOCALBASE}/lib/libmovtar.a)
+WITH_LIBMOVTAR= yes
+.endif
+# QUICKTIME
+.if exists(${LOCALBASE}/lib/libopenquicktime.so.0)
+WITH_QUICKTIME= yes
+.endif
+# SDL
+.if exists(${LOCALBASE}/lib/libSDL-1.1.so.4)
+WITH_SDL= yes
+.endif
+
+# option activation
+.ifdef(HAVE_GTK)
+USE_GTK= yes
+.endif
+#
+.ifdef(WITH_LIBDV)
+LIB_DEPENDS+= dv.1:${PORTSDIR}/graphics/libdv
+
+CONFIGURE_ARGS+= --with-dv=${LOCALBASE}
+.endif
+#
+.ifdef(WITH_LIBMOVTAR)
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libmovtar.a:${PORTSDIR}/graphics/libmovtar
+
+CONFIGURE_ARGS+= --with-movtar-prefix=${LOCALBASE}
+.endif
+#
+.ifdef(WITH_SDL)
+LIB_DEPENDS+= SDL-1.1.4:${PORTSDIR}/devel/sdl12
+
+CONFIGURE_ARGS+= --with-sdl
+CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
+.endif
+#
+.ifdef(WITH_QUICKTIME)
+LIB_DEPENDS+= openquicktime.0:${PORTSDIR}/graphics/openquicktime
+
+CONFIGURE_ARGS+= --with-quicktime=${LOCALBASE}
+.endif
+
+pre-everything::
+.ifndef(HAVE_GTK)
+ @${ECHO_MSG} "====> You can enable GTK support by defining WITH_GTK"
+.endif
+.ifndef(WITH_LIBDV)
+ @${ECHO_MSG} "====> You can enable DV support by defining WITH_LIBDV"
+.endif
+.ifndef(WITH_LIBMOVTAR)
+ @${ECHO_MSG} "====> You can enable movtar support by defining WITH_LIBMOVTAR"
+.endif
+.ifndef(WITH_QUICKTIME)
+ @${ECHO_MSG} "====> You can enable quicktime support by defining WITH_QUICKTIME"
+.endif
+.ifndef(WITH_SDL)
+ @${ECHO_MSG} "====> You can enable SDL support by defining WITH_SDL"
+.endif
+
+post-patch:
+ @${PERL} -pi -e 's|^(pkgconfigdir = )\$$\(libdir\)/(pkgconfig)|\1${PREFIX}/libdata/\2|' \
+ ${WRKSRC}/Makefile.in
+ @${PERL} -pi -e 's|stdint.h|sys/types.h|' \
+ ${WRKSRC}/lavtools/lav2divx.cpp \
+ ${WRKSRC}/lavtools/yuv2divx.cpp \
+ ${WRKSRC}/lavtools/divxdec.cpp
+ @${PERL} -pi -e 's@(-l(jpeg|openquicktime|png))@-L${LOCALBASE}/lib \1@; \
+ s|(-I) (\$$with_quicktime)|\1\2/include/openquicktime|; \
+ s|(with_quicktime/)(openquicktime)(.h)|\1include/\2/\2\3|; \
+ s|-ldl||; \
+ s|(-ldv)|-L${LOCALBASE}/lib \1 ${PTHREAD_LIBS:S/"//g}|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+ @${PERL} -pi -e 's|SDL/|SDL11/|' \
+ ${WRKSRC}/lavtools/liblavplay.c \
+ ${WRKSRC}/lavtools/yuvplay.c
+.ifdef(WITH_QUICKTIME)
+ @${PERL} -pi -e 's|^(have_openquicktime=).+|\1true|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+ @${PERL} -pi -e 's|HAVE_OPENQUICKTIME|__FreeBSD__|' \
+ ${WRKSRC}/lavtools/lav_io.h
+.endif
+
+pre-build:
+.ifdef(WITH_QUICKTIME)
+ @${ECHO_CMD} "#define HAVE_OPENQUICKTIME 1" >> ${WRKSRC}/config.h
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/mjpegtools/distinfo b/multimedia/mjpegtools/distinfo
new file mode 100644
index 00000000000..08d41380175
--- /dev/null
+++ b/multimedia/mjpegtools/distinfo
@@ -0,0 +1 @@
+MD5 (mjpegtools-1.6.0.tar.gz) = cb34077cc3460494bc3759e3655e5263
diff --git a/multimedia/mjpegtools/files/patch-lavtools::divxdec.cpp b/multimedia/mjpegtools/files/patch-lavtools::divxdec.cpp
new file mode 100644
index 00000000000..27772b647f7
--- /dev/null
+++ b/multimedia/mjpegtools/files/patch-lavtools::divxdec.cpp
@@ -0,0 +1,40 @@
+--- lavtools/divxdec.cpp.orig Wed May 29 19:02:12 2002
++++ lavtools/divxdec.cpp Wed May 29 20:08:34 2002
+@@ -1284,7 +1284,7 @@
+ exit (1);
+ }
+
+-FILE* real_stdout;
++FILE real_stdout;
+
+ int
+ main (int argc, char **argv)
+@@ -1309,8 +1309,8 @@
+ std::cout.rdbuf ( std::cerr.rdbuf () );
+ //
+ // 4. keep old stdout FILE, and use stderr in its place (for printf ("...") ; )
+- real_stdout = stdout ;
+- stdout = stderr;
++ real_stdout = *stdout ;
++ *stdout = *stderr;
+
+ displayGreeting();
+
+@@ -1733,7 +1733,7 @@
+ if ( 0 == strcmp ( "-", filenameYUV ) )
+ {
+ //output.fdYUV = FD_STDOUT;
+- output.fdYUV = fileno ( real_stdout );
++ output.fdYUV = fileno ( &real_stdout );
+ }
+ else
+ {
+@@ -2042,7 +2042,7 @@
+ freeAll ();
+ // reassign cout, stdout to their original values.
+ std::cout.rdbuf ( real_cout );
+- stdout = real_stdout;
++ *stdout = real_stdout;
+
+ mjpeg_info ( " " );
+ mjpeg_info ( "Done. %i frames", output.processedFrames );
diff --git a/multimedia/mjpegtools/pkg-comment b/multimedia/mjpegtools/pkg-comment
new file mode 100644
index 00000000000..08a9bd3eb37
--- /dev/null
+++ b/multimedia/mjpegtools/pkg-comment
@@ -0,0 +1 @@
+Set of tools to record/playback/edit videos in MPEG format
diff --git a/multimedia/mjpegtools/pkg-descr b/multimedia/mjpegtools/pkg-descr
new file mode 100644
index 00000000000..efe372e98fe
--- /dev/null
+++ b/multimedia/mjpegtools/pkg-descr
@@ -0,0 +1,16 @@
+[ edited excerpt from developer's README ]
+
+lavtools: Linux Audio and Video TOOLS for Motion JPEG and MPEG
+==============================================================
+
+Programs for MJPEG recording and playback and simple cut-and-paste
+editting and MPEG compression of audio and video under Linux (Now
+FreeBSD).
+
+N.b. Only the "lav" programs have been written whooly from scratch.
+The rest are from diverse open source originals, modified to work
+with the lav tools edit lists and AVI and quicktime files. Some
+(especially the MPEG tools) have had also more major perfomance and
+functionality enhancements.
+
+WWW: http://mjpeg.sourceforge.net/
diff --git a/multimedia/mjpegtools/pkg-plist b/multimedia/mjpegtools/pkg-plist
new file mode 100644
index 00000000000..9c6d641b4fb
--- /dev/null
+++ b/multimedia/mjpegtools/pkg-plist
@@ -0,0 +1,75 @@
+bin/glav
+bin/jpeg2yuv
+bin/lav2mpeg
+bin/lav2wav
+bin/lav2yuv
+bin/lavaddwav
+bin/lavinfo
+bin/lavpipe
+bin/lavplay
+bin/lavtrans
+bin/matteblend.flt
+bin/mjpegtools-config
+bin/mp2enc
+bin/mpeg2enc
+bin/mpegtranscode
+bin/mplex
+bin/ppmtoy4m
+bin/transist.flt
+bin/y4mcolorbars
+bin/y4mtoppm
+bin/ypipe
+bin/yuv2lav
+bin/yuvdenoise
+bin/yuvkineco
+bin/yuvmedianfilter
+bin/yuvplay
+bin/yuvscaler
+bin/yuvycsnoise
+include/mjpegtools/audiolib.h
+include/mjpegtools/editlist.h
+include/mjpegtools/frequencies.h
+include/mjpegtools/jpegutils.h
+include/mjpegtools/lav_io.h
+include/mjpegtools/liblavplay.h
+include/mjpegtools/liblavrec.h
+include/mjpegtools/mjpeg_logging.h
+include/mjpegtools/mjpeg_types.h
+include/mjpegtools/mpegconsts.h
+include/mjpegtools/mpegtimecode.h
+include/mjpegtools/yuv4mpeg.h
+lib/liblavfile-1.6.so
+lib/liblavfile-1.6.so.0
+lib/liblavfile.a
+lib/liblavfile.la
+lib/liblavfile.so
+lib/liblavjpeg-1.6.so
+lib/liblavjpeg-1.6.so.0
+lib/liblavjpeg.a
+lib/liblavjpeg.la
+lib/liblavjpeg.so
+lib/liblavplay-1.6.so
+lib/liblavplay-1.6.so.0
+lib/liblavplay.a
+lib/liblavplay.la
+lib/liblavplay.so
+lib/libmjpegutils.a
+libdata/pkgconfig/mjpegtools.pc
+%%PORTDOCS%%share/doc/mjpegtools/AUTHORS
+%%PORTDOCS%%share/doc/mjpegtools/BUGS
+%%PORTDOCS%%share/doc/mjpegtools/CHANGES
+%%PORTDOCS%%share/doc/mjpegtools/COPYING
+%%PORTDOCS%%share/doc/mjpegtools/ChangeLog
+%%PORTDOCS%%share/doc/mjpegtools/HINTS
+%%PORTDOCS%%share/doc/mjpegtools/NEWS
+%%PORTDOCS%%share/doc/mjpegtools/PLANS
+%%PORTDOCS%%share/doc/mjpegtools/README
+%%PORTDOCS%%share/doc/mjpegtools/README.DV
+%%PORTDOCS%%share/doc/mjpegtools/README.avilib
+%%PORTDOCS%%share/doc/mjpegtools/README.glav
+%%PORTDOCS%%share/doc/mjpegtools/README.lavpipe
+%%PORTDOCS%%share/doc/mjpegtools/README.transist
+%%PORTDOCS%%share/doc/mjpegtools/TODO
+%%PORTDOCS%%@dirrm share/doc/mjpegtools
+@unexec rmdir %D/libdata/pkgconfig 2>/dev/null || true
+@dirrm include/mjpegtools