mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
New port libmpeg2 version 0.2.0: A free library for decoding mpeg-2
and mpeg-1 video streams
This commit is contained in:
parent
a49bc01164
commit
141a5778f1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48850
@ -145,6 +145,7 @@
|
||||
SUBDIR += liblug
|
||||
SUBDIR += libmng
|
||||
SUBDIR += libmorph
|
||||
SUBDIR += libmpeg2
|
||||
SUBDIR += librsvg
|
||||
SUBDIR += libungif
|
||||
SUBDIR += libwmf
|
||||
|
62
graphics/libmpeg2/Makefile
Normal file
62
graphics/libmpeg2/Makefile
Normal file
@ -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>
|
1
graphics/libmpeg2/distinfo
Normal file
1
graphics/libmpeg2/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mpeg2dec-0.2.0.tar.gz) = 0a65956d36569a95e8e406e57a842bb0
|
17
graphics/libmpeg2/files/extra-patch-libvo::configure.incl
Normal file
17
graphics/libmpeg2/files/extra-patch-libvo::configure.incl
Normal file
@ -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
|
||||
|
11
graphics/libmpeg2/files/extra-patch-libvo::video_out_sdl.c
Normal file
11
graphics/libmpeg2/files/extra-patch-libvo::video_out_sdl.c
Normal file
@ -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"
|
49
graphics/libmpeg2/files/patch-configure.in
Normal file
49
graphics/libmpeg2/files/patch-configure.in
Normal file
@ -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
|
1
graphics/libmpeg2/pkg-comment
Normal file
1
graphics/libmpeg2/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A free library for decoding mpeg-2 and mpeg-1 video streams
|
23
graphics/libmpeg2/pkg-descr
Normal file
23
graphics/libmpeg2/pkg-descr
Normal file
@ -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/
|
22
graphics/libmpeg2/pkg-plist
Normal file
22
graphics/libmpeg2/pkg-plist
Normal file
@ -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
|
62
multimedia/libmpeg2/Makefile
Normal file
62
multimedia/libmpeg2/Makefile
Normal file
@ -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>
|
1
multimedia/libmpeg2/distinfo
Normal file
1
multimedia/libmpeg2/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (mpeg2dec-0.2.0.tar.gz) = 0a65956d36569a95e8e406e57a842bb0
|
17
multimedia/libmpeg2/files/extra-patch-libvo::configure.incl
Normal file
17
multimedia/libmpeg2/files/extra-patch-libvo::configure.incl
Normal file
@ -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
|
||||
|
11
multimedia/libmpeg2/files/extra-patch-libvo::video_out_sdl.c
Normal file
11
multimedia/libmpeg2/files/extra-patch-libvo::video_out_sdl.c
Normal file
@ -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"
|
49
multimedia/libmpeg2/files/patch-configure.in
Normal file
49
multimedia/libmpeg2/files/patch-configure.in
Normal file
@ -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
|
1
multimedia/libmpeg2/pkg-comment
Normal file
1
multimedia/libmpeg2/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A free library for decoding mpeg-2 and mpeg-1 video streams
|
23
multimedia/libmpeg2/pkg-descr
Normal file
23
multimedia/libmpeg2/pkg-descr
Normal file
@ -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/
|
22
multimedia/libmpeg2/pkg-plist
Normal file
22
multimedia/libmpeg2/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user