diff options
author | lioux <lioux@FreeBSD.org> | 2001-10-17 03:25:34 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-10-17 03:25:34 +0800 |
commit | b8c447e03f6d3f62f37ae9a70d7dcaa7e675021e (patch) | |
tree | 1286e2a6e46aca037754f1aba7b6fca49de70490 /graphics | |
parent | 95cdc0af3fda0d39733ce45e92d48b296cc51869 (diff) | |
download | freebsd-ports-graphics-b8c447e03f6d3f62f37ae9a70d7dcaa7e675021e.tar.gz freebsd-ports-graphics-b8c447e03f6d3f62f37ae9a70d7dcaa7e675021e.tar.zst freebsd-ports-graphics-b8c447e03f6d3f62f37ae9a70d7dcaa7e675021e.zip |
New port libmpeg2 version 0.2.0: A free library for decoding mpeg-2
and mpeg-1 video streams
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/libmpeg2/Makefile | 62 | ||||
-rw-r--r-- | graphics/libmpeg2/distinfo | 1 | ||||
-rw-r--r-- | graphics/libmpeg2/files/extra-patch-libvo::configure.incl | 17 | ||||
-rw-r--r-- | graphics/libmpeg2/files/extra-patch-libvo::video_out_sdl.c | 11 | ||||
-rw-r--r-- | graphics/libmpeg2/files/patch-configure.in | 49 | ||||
-rw-r--r-- | graphics/libmpeg2/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/libmpeg2/pkg-descr | 23 | ||||
-rw-r--r-- | graphics/libmpeg2/pkg-plist | 22 |
9 files changed, 187 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 74da0c85fe0..15b5317c40c 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -145,6 +145,7 @@ SUBDIR += liblug SUBDIR += libmng SUBDIR += libmorph + SUBDIR += libmpeg2 SUBDIR += librsvg SUBDIR += libungif SUBDIR += libwmf diff --git a/graphics/libmpeg2/Makefile b/graphics/libmpeg2/Makefile new file mode 100644 index 00000000000..69a5349aaad --- /dev/null +++ b/graphics/libmpeg2/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: libmpeg2 +# Date created: Tue Oct 16 17:14:20 BRST 2001 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= libmpeg2 +PORTVERSION= 0.2.0 +CATEGORIES= graphics +MASTER_SITES= http://libmpeg2.sourceforge.net/files/ +DISTNAME= mpeg2dec-${PORTVERSION} + +MAINTAINER= lioux@FreeBSD.org + +USE_XLIB= yes +USE_AUTOCONF= yes +USE_LIBTOOL= yes + +CONFIGURE_ARGS= --enable-shared + +.ifdef(WITH_MGA) +CONFIGURE_ARGS+= --enable-mga +.endif + +.ifdef(WITH_SDL) +LIB_DEPENDS+= SDL-1.1.3:${PORTSDIR}/devel/sdl12 + +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libvo::configure.incl \ + ${FILESDIR}/extra-patch-libvo::video_out_sdl.c +SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config + +CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}" +CONFIGURE_ARGS+= --enable-sdl +.else +CONFIGURE_ARGS+= --disable-sdl +.endif + +pre-everything:: + @${ECHO_MSG} "====>" +.ifndef(WITH_SDL) + @${ECHO_MSG} "====> You can enable SDL support by defining WITH_SDL" +.endif +.ifndef(WITH_MGA) + @${ECHO_MSG} "====> You can enable MGA support by defining WITH_MGA" +.endif + @${ECHO_MSG} "====>" + +post-configure: + @${LN} -sf ${LOCALBASE}/bin/libtool ${WRKSRC} +# Libtool fix code kindly provided by Mr. Maxim Sobolev <sobomax@FreeBSD.org> + @${PERL} -pi.orig \ + -e 's|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \ + ${WRKSRC}/libtool + +post-install: +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/libvo.txt ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/graphics/libmpeg2/distinfo b/graphics/libmpeg2/distinfo new file mode 100644 index 00000000000..6050ce752da --- /dev/null +++ b/graphics/libmpeg2/distinfo @@ -0,0 +1 @@ +MD5 (mpeg2dec-0.2.0.tar.gz) = 0a65956d36569a95e8e406e57a842bb0 diff --git a/graphics/libmpeg2/files/extra-patch-libvo::configure.incl b/graphics/libmpeg2/files/extra-patch-libvo::configure.incl new file mode 100644 index 00000000000..c1c62d1ba38 --- /dev/null +++ b/graphics/libmpeg2/files/extra-patch-libvo::configure.incl @@ -0,0 +1,17 @@ +--- libvo/configure.incl.orig Fri Feb 16 00:48:05 2001 ++++ libvo/configure.incl Tue Oct 16 12:55:25 2001 +@@ -35,11 +35,11 @@ + dnl check for SDL + AC_ARG_ENABLE([sdl],[ --disable-sdl make a version not using SDL]) + if test x"$enable_sdl" != x"no"; then +- AC_CHECK_PROG([SDLCONFIG],[sdl-config],[yes]) ++ AC_CHECK_PROG([SDLCONFIG],[sdl11-config],[yes]) + if test x"$SDLCONFIG" = x"yes"; then + AC_DEFINE([LIBVO_SDL],,[libvo SDL support]) +- LIBVO_CFLAGS="$LIBVO_CFLAGS `sdl-config --cflags`" +- LIBVO_LIBS="$LIBVO_LIBS `sdl-config --libs`" ++ LIBVO_CFLAGS="$LIBVO_CFLAGS `${SDL_CONFIG} --cflags`" ++ LIBVO_LIBS="$LIBVO_LIBS `${SDL_CONFIG} --libs`" + fi + fi + diff --git a/graphics/libmpeg2/files/extra-patch-libvo::video_out_sdl.c b/graphics/libmpeg2/files/extra-patch-libvo::video_out_sdl.c new file mode 100644 index 00000000000..a69f898eb25 --- /dev/null +++ b/graphics/libmpeg2/files/extra-patch-libvo::video_out_sdl.c @@ -0,0 +1,11 @@ +--- libvo/video_out_sdl.c.orig Tue Oct 16 13:00:54 2001 ++++ libvo/video_out_sdl.c Tue Oct 16 13:01:07 2001 +@@ -31,7 +31,7 @@ + #include <stdlib.h> + #include <string.h> + #include <inttypes.h> +-#include <SDL/SDL.h> ++#include <SDL11/SDL.h> + + #include "video_out.h" + #include "video_out_internal.h" diff --git a/graphics/libmpeg2/files/patch-configure.in b/graphics/libmpeg2/files/patch-configure.in new file mode 100644 index 00000000000..5e52cbbe7b1 --- /dev/null +++ b/graphics/libmpeg2/files/patch-configure.in @@ -0,0 +1,49 @@ +--- configure.in.orig Fri Feb 16 02:08:30 2001 ++++ configure.in Tue Oct 16 14:13:20 2001 +@@ -16,46 +16,15 @@ + + dnl -Wall -Werror moved to the end to not disturb the configure script + +- dnl -O3 + changequote(<<,>>) + OPT_CFLAGS=`echo "$CFLAGS"|sed "s/-O[0-9]*//g;"` + changequote([,]) +- OPT_CFLAGS="$OPT_CFLAGS -O3" + AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]) + + dnl -fomit-frame-pointer + OPT_CFLAGS="$CFLAGS -fomit-frame-pointer" + AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]) + +- dnl arch-specific flags +- case "$host_alias" in +- i?86-* | k?-*) +- AC_DEFINE([ARCH_X86],,[x86 architecture]) +- case "$host_alias" in +- i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";; +- i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";; +- i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";; +- i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";; +- k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";; +- esac +- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);; +- sparc-*) +- OPT_CFLAGS="$CFLAGS -mcpu=ultrasparc -mvis" +- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);; +- mips-sgi-irix6.*) dnl do we need to be that specific ? +- OPT_CFLAGS="$CFLAGS -mabi=64" +- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);; +- esac +-else +- dnl non-gcc flags - we probably need exact configuration triplets here. +- case "$host_alias" in +- mips-sgi-irix6.*) +- OPT_CFLAGS="$CFLAGS -64" +- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);; +- sparc-sun-solaris*) +- OPT_CFLAGS="$CFLAGS -xCC -fast -xO5" +- AC_TRY_CFLAGS([$OPT_CFLAGS],[CFLAGS=$OPT_CFLAGS]);; +- esac + fi + + dnl Checks for libtool - this must be done after we set cflags diff --git a/graphics/libmpeg2/pkg-comment b/graphics/libmpeg2/pkg-comment new file mode 100644 index 00000000000..88bc512250e --- /dev/null +++ b/graphics/libmpeg2/pkg-comment @@ -0,0 +1 @@ +A free library for decoding mpeg-2 and mpeg-1 video streams diff --git a/graphics/libmpeg2/pkg-descr b/graphics/libmpeg2/pkg-descr new file mode 100644 index 00000000000..50de37d6b94 --- /dev/null +++ b/graphics/libmpeg2/pkg-descr @@ -0,0 +1,23 @@ +[ excerpt from developer's site ] +It is a free library for decoding mpeg-2 and mpeg-1 video +streams. The main goals in libmpeg2 development are: + +Conformance - libmpeg2 is able to decode all mpeg streams that +conform to certain restrictions: "constrained parameters" for +mpeg-1, and "main profile" for mpeg-2. In practice, this is what +most people are using. For streams that follow these restrictions, +we believe libmpeg2 is 100% conformant to the mpeg standards - and +we have a pretty extensive test suite to check this. + +Speed - for most current systems, the display will actually take +more time than the mpeg-2 decoding. For systems that have hardware +color conversion and scaling (as we can use with the xv extension +in Xfree 4), you should be able to watch DVD streams on a Celeron +400. On a PIII/666 with null display you should get about 110 frames +per second. + +Portability - most of the code is written in C, and when we use +platform-specific optimizations we always have a generic C routine +to fall back on. + +WWW: http://libmpeg2.sourceforge.net/ diff --git a/graphics/libmpeg2/pkg-plist b/graphics/libmpeg2/pkg-plist new file mode 100644 index 00000000000..2f30a954a64 --- /dev/null +++ b/graphics/libmpeg2/pkg-plist @@ -0,0 +1,22 @@ +bin/extract_mpeg2 +bin/mpeg2dec +include/mpeg2dec/attributes.h +include/mpeg2dec/mm_accel.h +include/mpeg2dec/mmx.h +include/mpeg2dec/mpeg2.h +include/mpeg2dec/video_out.h +lib/libmpeg2.a +lib/libmpeg2.la +lib/libmpeg2.so +lib/libmpeg2.so.0 +lib/libmpeg2dec.a +lib/libmpeg2dec.la +lib/libmpeg2dec.so +lib/libmpeg2dec.so.0 +lib/libvo.a +lib/libvo.la +lib/libvo.so +lib/libvo.so.0 +%%PORTDOCS%%share/doc/libmpeg2/libvo.txt +%%PORTDOCS%%@dirrm share/doc/libmpeg2 +@dirrm include/mpeg2dec |