import of ffmpeg-20030622:

FFmpeg is a complete solution to record, convert and stream audio and
video.  It includes libavcodec, the leading audio/video codec library.
This commit is contained in:
jolan 2003-07-19 18:16:34 +00:00
parent 7332fb8d9a
commit 11fd439b1b
15 changed files with 220 additions and 0 deletions

39
graphics/ffmpeg/Makefile Normal file
View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
COMMENT= "audio/video converter and streamer"
DISTNAME= ffmpeg-20030622
EXTRACT_SUFX= .tar.bz2
CATEGORIES= graphics
MASTER_SITES= http://www.videolan.org/pub/videolan/vlc/0.6.0/contrib/
HOMEPAGE= http://ffmpeg.sourceforge.net/
MAINTAINER= Jolan Luff <jolan@openbsd.org>
# GPL
PERMIT_DISTFILES_CDROM= "patents"
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
NO_REGRESS= Yes # Possible to adapt with some work
USE_GMAKE= Yes
CONFIGURE_STYLE=simple
CONFIGURE_ARGS+=--cc=${CC} --make=gmake ${CONFIGURE_SHARED}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/include/ffmpeg
${INSTALL_DATA_DIR} ${PREFIX}/include/postproc
${INSTALL_DATA} ${WRKBUILD}/libavcodec/{avcodec,common}.h \
${PREFIX}/include/ffmpeg
${INSTALL_DATA} ${WRKBUILD}/libavcodec/libpostproc/postprocess.h \
${PREFIX}/include/postproc
${INSTALL_DATA} ${WRKBUILD}/libavcodec/libavcodec.a \
${WRKBUILD}/libavformat/libavformat.a ${PREFIX}/lib
.if !defined(NO_SHARED_LIBS)
${INSTALL_DATA} ${WRKBUILD}/libavcodec/libavcodec.so \
${PREFIX}/lib/libavcodec.so.0.0
.endif
.include <bsd.port.mk>

3
graphics/ffmpeg/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (ffmpeg-20030622.tar.bz2) = 35fa282723b0f928214788f28620c19f
RMD160 (ffmpeg-20030622.tar.bz2) = 9b5ef8cbeb22dde1c28b4b3866af0f525a00b2e1
SHA1 (ffmpeg-20030622.tar.bz2) = d7c88a26056d23b18d56885abb4cbcc09a544230

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- Makefile.orig Thu Jun 12 01:42:44 2003
+++ Makefile Wed Jul 16 20:38:48 2003
@@ -6,8 +6,7 @@ include config.mak
VPATH=$(SRC_PATH)
-CFLAGS= $(OPTFLAGS) -Wall -g -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-LDFLAGS+= -g
+CFLAGS= $(OPTFLAGS) -Wall -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
ifeq ($(TARGET_GPROF),yes)
CFLAGS+=-p

View File

@ -0,0 +1,41 @@
$OpenBSD: patch-configure,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- configure.orig Sun Jun 22 06:27:05 2003
+++ configure Wed Jul 16 20:21:00 2003
@@ -145,6 +145,14 @@ dv1394="no"
make="gmake"
LDFLAGS="$LDFLAGS -export-dynamic"
;;
+OpenBSD)
+a52="no"
+audio_oss="no"
+dv1394="no"
+sdl="no" # not respected
+v4l="no"
+vhook="no"
+;;
BSD/OS)
v4l="no"
audio_oss="yes"
@@ -633,14 +641,14 @@ EOF
sdl_too_old=no
sdl=no
-if $cc -o $TMPE `sdl-config --cflags` $TMPC `sdl-config --libs` 2> /dev/null ; then
-_sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
-if test "$_sdlversion" -lt 121 ; then
-sdl_too_old=yes
-else
-sdl=yes
-fi
-fi
+#if $cc -o $TMPE `sdl-config --cflags` $TMPC `sdl-config --libs` 2> /dev/null ; then
+#_sdlversion=`sdl-config --version | sed 's/[^0-9]//g'`
+#if test "$_sdlversion" -lt 121 ; then
+#sdl_too_old=yes
+#else
+#sdl=yes
+#fi
+#fi
if test "$sdl" = "no" ; then
ffplay=no

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ffserver_c,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- ffserver.c.orig Fri Apr 18 15:53:48 2003
+++ ffserver.c Thu Jul 3 21:00:29 2003
@@ -45,6 +45,8 @@
/* maximum number of simultaneous HTTP connections */
#define HTTP_MAX_CONNECTIONS 2000
+#define RTLD_NOW 0
+
enum HTTPState {
HTTPSTATE_WAIT_REQUEST,
HTTPSTATE_SEND_HEADER,

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-libavcodec_Makefile,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- libavcodec/Makefile.orig Sun Jun 22 06:27:12 2003
+++ libavcodec/Makefile Wed Jul 16 20:40:58 2003
@@ -7,8 +7,8 @@ include ../config.mak
VPATH=$(SRC_PATH)/libavcodec
# NOTE: -I.. is needed to include config.h
-CFLAGS= $(OPTFLAGS) -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-LDFLAGS= -g
+CFLAGS= $(OPTFLAGS) -Wall -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+#LDFLAGS= -g
OBJS= common.o utils.o mem.o allcodecs.o \
mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-libavcodec_alpha_dsputil_alpha_c,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- libavcodec/alpha/dsputil_alpha.c.orig Sat Jul 19 02:28:29 2003
+++ libavcodec/alpha/dsputil_alpha.c Sat Jul 19 02:30:39 2003
@@ -20,6 +20,7 @@
#include "asm.h"
#include "../dsputil.h"
+extern void simple_idct_axp(DCTELEM *block);
extern void simple_idct_put_axp(uint8_t *dest, int line_size, DCTELEM *block);
extern void simple_idct_add_axp(uint8_t *dest, int line_size, DCTELEM *block);
@@ -363,5 +364,5 @@ void dsputil_init_alpha(DSPContext* c, A
c->idct_put = simple_idct_put_axp;
c->idct_add = simple_idct_add_axp;
- c->idct_idct = simple_idct_axp;
+ c->idct = simple_idct_axp;
}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libavcodec_alpha_simple_idct_alpha_c,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- libavcodec/alpha/simple_idct_alpha.c.orig Sat Jul 19 02:32:13 2003
+++ libavcodec/alpha/simple_idct_alpha.c Sat Jul 19 02:34:42 2003
@@ -27,6 +27,8 @@
#include "asm.h"
#include "../dsputil.h"
+typedef int32_t int_fast32_t;
+
extern void (*put_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels,
int line_size);
extern void (*add_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels,

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-libavcodec_libpostproc_postprocess_c,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- libavcodec/libpostproc/postprocess.c.orig Thu Jun 12 01:42:46 2003
+++ libavcodec/libpostproc/postprocess.c Wed Jul 16 20:12:25 2003
@@ -72,9 +72,9 @@ try to unroll inner for(x=0 ... loop to
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_MALLOC_H
+/*#ifdef HAVE_MALLOC_H
#include <malloc.h>
-#endif
+#endif*/
//#undef HAVE_MMX2
//#define HAVE_3DNOW
//#undef HAVE_MMX

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-libavcodec_mem_c,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- libavcodec/mem.c.orig Thu Mar 6 05:32:02 2003
+++ libavcodec/mem.c Wed Jul 16 20:11:37 2003
@@ -29,9 +29,10 @@
#undef free
#undef realloc
-#ifdef HAVE_MALLOC_H
+/*#ifdef HAVE_MALLOC_H
#include <malloc.h>
-#endif
+#endif*/
+#include <stdlib.h>
/* you can redefine av_malloc and av_free in your project to use your
memory allocator. You do not need to suppress this file because the

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libavformat_Makefile,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- libavformat/Makefile.orig Sun Jun 22 06:28:09 2003
+++ libavformat/Makefile Wed Jul 16 20:45:11 2003
@@ -6,7 +6,7 @@ include ../config.mak
VPATH=$(SRC_PATH)/libavformat
-CFLAGS= $(OPTFLAGS) -Wall -g -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+CFLAGS= $(OPTFLAGS) -Wall -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
OBJS= utils.o cutils.o allformats.o
PPOBJS=

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-libavformat_framehook_c,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
--- libavformat/framehook.c.orig Tue Feb 11 10:35:28 2003
+++ libavformat/framehook.c Thu Jul 3 20:53:48 2003
@@ -25,6 +25,7 @@
#include <dlfcn.h>
#endif
+#define RTLD_NOW 0
typedef struct _FrameHookEntry {
struct _FrameHookEntry *next;

View File

@ -0,0 +1,2 @@
FFmpeg is a complete solution to record, convert and stream audio and
video. It includes libavcodec, the leading audio/video codec library.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
lib/libavcodec.so.0.0
DYNLIBDIR(%D/lib)

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/07/19 18:16:34 jolan Exp $
include/ffmpeg/avcodec.h
include/ffmpeg/common.h
include/postproc/postprocess.h
lib/libavcodec.a
lib/libavformat.a
%%SHARED%%
@dirrm include/postproc
@dirrm include/ffmpeg