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:
parent
7332fb8d9a
commit
11fd439b1b
39
graphics/ffmpeg/Makefile
Normal file
39
graphics/ffmpeg/Makefile
Normal 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
3
graphics/ffmpeg/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (ffmpeg-20030622.tar.bz2) = 35fa282723b0f928214788f28620c19f
|
||||
RMD160 (ffmpeg-20030622.tar.bz2) = 9b5ef8cbeb22dde1c28b4b3866af0f525a00b2e1
|
||||
SHA1 (ffmpeg-20030622.tar.bz2) = d7c88a26056d23b18d56885abb4cbcc09a544230
|
13
graphics/ffmpeg/patches/patch-Makefile
Normal file
13
graphics/ffmpeg/patches/patch-Makefile
Normal 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
|
41
graphics/ffmpeg/patches/patch-configure
Normal file
41
graphics/ffmpeg/patches/patch-configure
Normal 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
|
12
graphics/ffmpeg/patches/patch-ffserver_c
Normal file
12
graphics/ffmpeg/patches/patch-ffserver_c
Normal 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,
|
14
graphics/ffmpeg/patches/patch-libavcodec_Makefile
Normal file
14
graphics/ffmpeg/patches/patch-libavcodec_Makefile
Normal 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\
|
@ -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;
|
||||
}
|
@ -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,
|
@ -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
|
16
graphics/ffmpeg/patches/patch-libavcodec_mem_c
Normal file
16
graphics/ffmpeg/patches/patch-libavcodec_mem_c
Normal 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
|
12
graphics/ffmpeg/patches/patch-libavformat_Makefile
Normal file
12
graphics/ffmpeg/patches/patch-libavformat_Makefile
Normal 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=
|
11
graphics/ffmpeg/patches/patch-libavformat_framehook_c
Normal file
11
graphics/ffmpeg/patches/patch-libavformat_framehook_c
Normal 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;
|
2
graphics/ffmpeg/pkg/DESCR
Normal file
2
graphics/ffmpeg/pkg/DESCR
Normal 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.
|
3
graphics/ffmpeg/pkg/PFRAG.shared
Normal file
3
graphics/ffmpeg/pkg/PFRAG.shared
Normal 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)
|
9
graphics/ffmpeg/pkg/PLIST
Normal file
9
graphics/ffmpeg/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user