diff options
Diffstat (limited to 'multimedia/ffmpeg-devel')
-rw-r--r-- | multimedia/ffmpeg-devel/Makefile | 387 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/distinfo | 2 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/extra-bktr-patch-libavformat::Makefile | 11 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/ffserver.sh | 26 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/grab_bsdbktr.c | 320 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/patch-Makefile | 14 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/patch-configure | 29 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/patch-libavcodec::Makefile | 22 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/patch-libavcodec::alpha::simple_idct_alpha.c | 19 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/patch-libavcodec::bswap.h | 53 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/patch-libavformat::Makefile | 13 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/files/patch-vhook::Makefile | 19 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/pkg-descr | 24 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/pkg-plist | 26 |
14 files changed, 0 insertions, 965 deletions
diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile deleted file mode 100644 index bddefe9bb499..000000000000 --- a/multimedia/ffmpeg-devel/Makefile +++ /dev/null @@ -1,387 +0,0 @@ -# New ports collection makefile for: ffmpeg -# Date created: Tue Sep 25 15:52:09 BRT 2001 -# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# -# $FreeBSD$ -# - -PORTNAME= ffmpeg -DISTVERSION= 0.4.9-pre1 -PORTREVISION= 1 -CATEGORIES= multimedia audio net -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} -MASTER_SITE_SUBDIR= ffmpeg - -MAINTAINER= lioux@FreeBSD.org -COMMENT= Hyper fast realtime audio/video encoder/converter, streaming server - -USE_GETOPT_LONG= yes -HAS_CONFIGURE= yes -USE_GMAKE= yes -USE_REINPLACE= yes -WANT_SDL= yes -CONFIGURE_ARGS= --cc="${CC}" --prefix="${PREFIX}" \ - --make="${GMAKE}" --enable-shared \ - --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ - --extra-libs"-lm" \ - --disable-debug - -PLIST_SUB= SHLIB_VERSION=${SHLIB_VERSION} -INSTALLS_SHLIB= yes - -SHLIB_VERSION= 1 -# -DOC_FILES= COPYING Changelog README -# under subdir doc -DOC_DOCFILES= TODO faq.html ffmpeg-doc.html \ - ffplay-doc.html ffserver-doc.html \ - hooks.html optimization.txt -PORTDOCS= ${DOC_FILES} ${DOC_DOCFILES} -HEADER_FILES= libavcodec/avcodec.h libavcodec/common.h \ - libavcodec/dsputil.h -LIB_FILES= libavcodec/libavcodec.a libavformat/libavformat.a -MAN1= ffmpeg.1 - -.include <bsd.port.pre.mk> - -.if ${ARCH} == "alpha" -BROKEN= "Does not compile on alpha" -.endif - -.if exists(${LOCALBASE}/lib/libavformat.so.0) -BROKEN= Please remove previous version of ${PORTNAME} to continue build -.endif - -## -## arch detection -## -.if ${ARCH} != "i386" -WITHOUT_MMX= yes -.else -# only for i386 -EXTRA_PATCHES+= ${FILESDIR}/extra-bktr-patch-libavformat::Makefile -#. if ${OSVERSION} >= 502000 && !defined(WITH_OPTIMIZED_CFLAGS) -#CFLAGS+=-fomit-frame-pointer -#WITH_OPTIMIZED_CFLAGS=yes -#. endif -.endif - -## lib detection -## -## -## SDL -.if ${HAVE_SDL:Msdl} -WITH_SDL=yes -.endif -## faac -.if exists(${LOCALBASE}/lib/libfaac.so.0) -WITH_FAAC=yes -.endif -## freetype2 -.if exists(${LOCALBASE}/lib/libfreetype.so) -WITH_FREETYPE2=yes -.endif -## imlib2 -.if exists(${X11BASE}/lib/libImlib2.so) -WITH_IMLIB2=yes -.endif -## lame mp3 -.if exists(${LOCALBASE}/lib/libmp3lame.so.0) -WITH_MP3=yes -.endif -## vorbis -.if exists(${LOCALBASE}/lib/libvorbisenc.so.2) -WITH_VORBIS=yes -.endif -.if exists(${LOCALBASE}/lib/libfaad.so.0) -WITH_FAAD=yes -.endif - -## support activation -## -## PORTDOCS -.ifndef(NOPORTDOCS) -BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html -.endif -## disable a52 -#.ifndef(WITHOUT_LIBA52) -#LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52 -# -#CONFIGURE_ARGS+= --enable-a52 \ -# --enable-a52bin -#.else -#CONFIGURE_ARGS+= --enable-a52 \ -# --disable-a52bin -#.endif -GPLLIBS= yes -# --enable-a52bin breaks build -CONFIGURE_ARGS+= --enable-a52 -## enable freetype2 -.if defined(WITH_FREETYPE2) -LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 - -PLIST_SUB+= DRAWTEXT="" -.else -PLIST_SUB+= DRAWTEXT="@comment " -.endif -## enable imlib2 -.if !defined(WITHOUT_VHOOK) && defined(WITH_IMLIB2) -LIB_DEPENDS+= Imlib2.2:${PORTSDIR}/graphics/imlib2 - -PLIST_SUB+= IMLIB2="" -.else -PLIST_SUB+= IMLIB2="@comment " -.endif -## disable mmx -.ifdef(WITHOUT_MMX) -CONFIGURE_ARGS+= --disable-mmx -.endif -## SDL -.ifdef(WITH_SDL) -USE_SDL= sdl - -MAN1+= ffplay.1 - -PLIST_SUB+= SDL="" -.else -PLIST_SUB+= SDL="@comment " -.endif -## mp3 -.ifdef(WITH_MP3) -LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame - -CONFIGURE_ARGS+= --enable-mp3lame -.endif -## optimization -.if ${OSVERSION} > 502124 -. ifdef(WITH_OPTIMIZED_CFLAGS) -CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \ - -I${X11BASE}/include \ - -ffast-math -fomit-frame-pointer -fno-unit-at-a-time" \ - --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm" -. else -CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \ - -I${X11BASE}/include \ - -fomit-frame-pointer -fno-unit-at-a-time" \ - --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm " -# --disable-opts -. endif -.else -CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \ - -I${X11BASE}/include \ - -ffast-math -fomit-frame-pointer" \ - --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib -lm" -. else -CONFIGURE_ARGS+= --extra-cflags="-fPIC -DPIC -I${LOCALBASE}/include \ - -I${X11BASE}/include" \ - --extra-ldflags="-L${WRKSRC}/libavcodec -L${LOCALBASE}/lib -L${X11BASE}/lib -lm " -.endif - -## vhook -.ifndef(WITHOUT_VHOOK) -PLIST_SUB+= VHOOK="" -.else -CONFIGURE_ARGS+= -disable-vhook - -PLIST_SUB+= VHOOK="@comment " -.endif -## vorbis -.ifdef(WITH_VORBIS) -LIB_DEPENDS+= vorbisenc.2:${PORTSDIR}/audio/libvorbis - -CONFIGURE_ARGS+= --enable-vorbis -.endif -## faac -.ifdef(WITH_FAAC) -LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac - -CONFIGURE_ARGS+= --enable-faac -.endif -## faad -.ifdef(WITH_FAAD) -LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad - -CONFIGURE_ARGS+= --enable-faad --enable-faadbin -GPLLIBS= yes -.endif -## GPLLIBS -.ifdef(GPLLIBS) -CONFIGURE_ARGS+= --enable-gpl -.endif -## post processing -.ifndef(WITHOUT_POSTPROCESS) -CONFIGURE_ARGS+= --enable-shared-pp -PLIST_FILES+= include/ffmpeg/postproc/postprocess.h -PLIST_DIRS+= include/ffmpeg/postproc -.endif -## ffserver -.ifdef(WITHOUT_FFMPEG_FFSERVER) -CONFIGURE_ARGS+= --disable-ffserver - -PLIST_SUB+= FFSERVER="@comment " -.else -USE_RC_SUBR= yes -MAN1+= ffserver.1 - -PLIST_SUB+= FFSERVER="" -.endif -PLIST_DIRS+= include/ffmpeg - -pre-everything:: -.ifndef(WITH_FREETYPE2) - @${ECHO_MSG} 'Define WITH_FREETYPE2 to enable drawtext FREETYPE2 codec' - @${ECHO_MSG} -.endif -.ifndef(WITHOUT_LIBA52) - @${ECHO_MSG} "You can disable liba52 support by defining WITHOUT_LIBA52" - @${ECHO_MSG} -.endif -.ifndef(WITHOUT_MMX) - @${ECHO_MSG} "Define WITHOUT_MMX if your system does not support MMX" - @${ECHO_MSG} -.endif -.ifndef(WITH_SDL) - @${ECHO_MSG} 'Define WITH_SDL to enable ffplay SDL version' - @${ECHO_MSG} -.endif -.ifndef(WITH_MP3) - @${ECHO_MSG} 'Define WITH_MP3 to enable lame MP3 codec' - @${ECHO_MSG} -.endif -.ifndef(WITH_OPTIMIZED_CFLAGS) - @${ECHO_MSG} 'You can enable additional compilation optimizations' - @${ECHO_MSG} 'by defining WITH_OPTIMIZED_CFLAGS' - @${ECHO_MSG} -.endif -.ifndef(WITHOUT_POSTPROCESS) - @${ECHO_MSG} 'You can disable post process support by defining' - @${ECHO_MSG} 'WITHOUT_POSTPROCESS' - @${ECHO_MSG} 'Beware that this might break some ports that require it' - @${ECHO_MSG} -.endif -.ifndef(WITHOUT_VHOOK) - @${ECHO_MSG} 'You can disable vhook support by defining WITHOUT_VHOOK' - @${ECHO_MSG} -.endif -.ifndef(WITH_VORBIS) - @${ECHO_MSG} 'Define WITH_VORBIS to enable libvorbisenc VORBIS codec' - @${ECHO_MSG} -.endif -.ifndef(WITH_FAAC) - @${ECHO_MSG} 'Define WITH_FAAC to enable libfaac' - @${ECHO_MSG} -.endif -.ifndef(WITH_FAAD) - @${ECHO_MSG} 'Define WITH_FAAD to enable libfaad codec' - @${ECHO_MSG} -.endif -.ifndef(WITHOUT_FFMPEG_FFSERVER) - @${ECHO_MSG} 'Define WITHOUT_FFMPEG_FFSERVER to disable ffserver build' - @${ECHO_MSG} -.endif -.if ${ARCH} == "i386" -.if !(defined(WITH_BKTR_FORMAT) && defined(WITH_BKTR_DEV)) - @${ECHO_MSG} - @${ECHO_MSG} 'If you want to capture from a bktr(4) supported card' - @${ECHO_MSG} 'you will probably need to set the input device and format' - @${ECHO_MSG} 'You can set WITH_BKTR_FORMAT to NTSC or PAL and you can set' - @${ECHO_MSG} 'WITH_BKTR_DEV to 0, 1, 2 or 3 (1 is usually the tuner)' - @${ECHO_MSG} 'so for a PAL tuner make WITH_BKTR_FORMAT=PAL WITH_BKTR_DEV=1' - @${ECHO_MSG} - @${ECHO_MSG} 'Warning: invalid settings will probably dump cores' - @${ECHO_MSG} -.endif -.endif # ${ARCH} == i386 - -post-extract: -.if ${ARCH} == "i386" -# install booktree extension - @${CP} ${FILESDIR}/grab_bsdbktr.c ${WRKSRC}/libavformat/ -.endif # ${ARCH} == i386 - -post-patch: -# force detection of texi2html -.ifndef(NOPORTDOCS) - @${REINPLACE_CMD} -E \ - -e 's|^(texi2html=)no|\1yes|' \ - ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} -.endif -.ifndef(WITHOUT_FFMPEG_FFSERVER) - @${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%RC_SUBR%%|${RC_SUBR}|' \ - ${FILESDIR}/ffserver.sh >${WRKDIR}/ffserver.sh - @${REINPLACE_CMD} -e "s!/etc/ffserver.conf!${PREFIX}/etc/ffserver.conf!g" \ - ${WRKSRC}/ffserver.c ${WRKSRC}/doc/ffserver-doc.texi - @${REINPLACE_CMD} -e 's!NoDaemon!# NoDaemon!g' \ - ${WRKSRC}/doc/ffserver.conf -.endif -.if ${ARCH} == "i386" -# we support "v4l" per default through Steve O'Hara-Smith's bktr(4) -# patch - @${REINPLACE_CMD} -E -e \ - 's|^(v4l).*$$|\1="yes"|' \ - ${WRKSRC}/configure -.ifdef(WITH_BKTR_FORMAT) - @${REINPLACE_CMD} -e \ - "s!VIDEO_FORMAT NTSC!VIDEO_FORMAT ${WITH_BKTR_FORMAT}!" \ - ${WRKSRC}/libavformat/grab_bsdbktr.c -.endif -.ifdef(WITH_BKTR_DEV) - @${REINPLACE_CMD} -e \ - "s!idev = 0!idev = ${WITH_BKTR_DEV}!" \ - ${WRKSRC}/libavformat/grab_bsdbktr.c -.endif -.endif # ${ARCH} == i386 -# malloc.h was deprecated in favor of stdlib.h - @${FIND} ${WRKSRC} -type f | \ - ${XARGS} -n 10 ${REINPLACE_CMD} -e \ - 's|malloc\.h|stdlib\.h|' -.ifndef(WITHOUT_LIBA52) - @${REINPLACE_CMD} -e 's|-ldl||' \ - ${WRKSRC}/configure -.endif -.ifdef(WITH_SDL) - @${REINPLACE_CMD} -E \ - -e 's|sdl-config|${SDL_CONFIG}|g' \ - ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} - @${FIND} ${WRKSRC} -type f | \ - ${XARGS} -n 10 ${REINPLACE_CMD} -E \ - -e 's|#include <SDL|#include <SDL11/SDL|' -.endif - -post-install: -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor -.for file in ${DOC_DOCFILES} - @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} -.endfor -.endif -.ifndef(WITHOUT_FFMPEG_FFSERVER) - @${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \ - ${PREFIX}/etc/ffserver.conf.sample - @${INSTALL_SCRIPT} ${WRKDIR}/ffserver.sh ${PREFIX}/etc/rc.d -.endif -.for file in ${HEADER_FILES} -# fix header references prior to installation - @${REINPLACE_CMD} -e 's|"common.h"|<ffmpeg/common.h>|; \ - s|"avcodec.h"|<ffmpeg/avcodec.h>|' \ - ${WRKSRC}/${file} - @${INSTALL_DATA} ${WRKSRC}/${file} \ - ${PREFIX}/include/ffmpeg/${file:T} -# change headers back so reinstall target works - @${REINPLACE_CMD} -e 's|<ffmpeg/common.h>|"common.h"|; \ - s|<ffmpeg/avcodec.h>|"avcodec.h"|' \ - ${WRKSRC}/${file} -.endfor -.for file in ${LIB_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/lib/${file:T} -.endfor -.ifndef(WITHOUT_POSTPROCESS) - @${MKDIR} ${PREFIX}/include/ffmpeg/postproc - @${INSTALL_DATA} ${WRKSRC}/libavcodec/libpostproc/postprocess.h \ - ${PREFIX}/include/ffmpeg/postproc/postprocess.h -.endif - -.include <bsd.port.post.mk> diff --git a/multimedia/ffmpeg-devel/distinfo b/multimedia/ffmpeg-devel/distinfo deleted file mode 100644 index 81f3247203c6..000000000000 --- a/multimedia/ffmpeg-devel/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -MD5 (ffmpeg-0.4.9-pre1.tar.gz) = ea5587e3c66d50b1503b82ac4179c303 -SIZE (ffmpeg-0.4.9-pre1.tar.gz) = 1611332 diff --git a/multimedia/ffmpeg-devel/files/extra-bktr-patch-libavformat::Makefile b/multimedia/ffmpeg-devel/files/extra-bktr-patch-libavformat::Makefile deleted file mode 100644 index 25f7c23de3a0..000000000000 --- a/multimedia/ffmpeg-devel/files/extra-bktr-patch-libavformat::Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- libavformat/Makefile.orig Wed Jan 1 21:00:22 2003 -+++ libavformat/Makefile Wed Jan 1 21:01:27 2003 -@@ -21,7 +21,7 @@ - endif - - ifeq ($(CONFIG_VIDEO4LINUX),yes) --OBJS+= grab.o -+OBJS+= grab_bsdbktr.o - endif - - ifeq ($(CONFIG_AUDIO_OSS),yes) diff --git a/multimedia/ffmpeg-devel/files/ffserver.sh b/multimedia/ffmpeg-devel/files/ffserver.sh deleted file mode 100644 index 0ec0f5b65cf6..000000000000 --- a/multimedia/ffmpeg-devel/files/ffserver.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: /tmp/pcvs/ports/multimedia/ffmpeg-devel/files/Attic/ffserver.sh,v 1.1 2004-12-05 18:12:41 lioux Exp $ -# - -# PROVIDE: ffserver -# REQUIRE: NETWORKING -# KEYWORD: FreeBSD shutdown - -# -# Add the following lines to /etc/rc.conf to enable ffserver: -# -#ffserver_enable="YES" -# -ffserver_enable="NO" - -. %%RC_SUBR%% - -name=ffserver -rcvar=`set_rcvar` - -command=%%PREFIX%%/bin/${name} -required_files=%%PREFIX%%/etc/ffserver.conf - -load_rc_config ${name} -run_rc_command "$1" diff --git a/multimedia/ffmpeg-devel/files/grab_bsdbktr.c b/multimedia/ffmpeg-devel/files/grab_bsdbktr.c deleted file mode 100644 index 853cf55221f4..000000000000 --- a/multimedia/ffmpeg-devel/files/grab_bsdbktr.c +++ /dev/null @@ -1,320 +0,0 @@ -/* - * FreeBSD video grab interface - * Copyright (c) 2002 Steve O'Hara-Smith - * based on - * Linux video grab interface - * Copyright (c) 2000,2001 Gerard Lantau. - * and - * simple_grab.c Copyright (c) 1999 Roger Hardiman - * - * GPL virus inherited: - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ -#include "avformat.h" -#if __FreeBSD__ >= 502100 -#include <dev/bktr/ioctl_meteor.h> -#include <dev/bktr/ioctl_bt848.h> -#else -#include <machine/ioctl_meteor.h> -#include <machine/ioctl_bt848.h> -#endif -#include <unistd.h> -#include <fcntl.h> -#include <sys/ioctl.h> -#include <sys/mman.h> -#include <sys/time.h> -#include <signal.h> - -typedef struct { - int fd; - int tuner_fd; - int frame_format; /* see VIDEO_PALETTE_xxx */ - int width, height; - int frame_rate; - int frame_rate_base; - int64_t per_frame; -} VideoData; - -const char *video_device = "/dev/bktr0"; - -#define PAL 1 -#define PALBDGHI 1 -#define NTSC 2 -#define NTSCM 2 -#define SECAM 3 -#define PALN 4 -#define PALM 5 -#define NTSCJ 6 - -/* PAL is 768 x 576. NTSC is 640 x 480 */ -#define PAL_HEIGHT 576 -#define SECAM_HEIGHT 576 -#define NTSC_HEIGHT 480 - -#ifndef VIDEO_FORMAT -#define VIDEO_FORMAT NTSC -#endif - -static int bktr_dev[] = { METEOR_DEV0, METEOR_DEV1, METEOR_DEV2, - METEOR_DEV3, METEOR_DEV_SVIDEO }; - -static u_int8_t *video_buf; -static int nsignals = 0; -static void catchsignal(int signal) -{ - nsignals++; - return; -} - -static int bktr_init (const char *video_device, int width, int height, - int format, u_int8_t **video_buf, int *video_fd, int *tuner_fd, - int idev, double frequency) -{ - struct meteor_geomet geo; - int h_max; - long ioctl_frequency; - char *arg; - int c; - struct sigaction act,old; - - if (idev < 0 || idev > 4) - { - arg = getenv ("BKTR_DEV"); - if (arg) - idev = atoi (arg); - if (idev < 0 || idev > 4) - idev = 0; - } - - if (format < 1 || format > 6) - { - arg = getenv ("BKTR_FORMAT"); - if (arg) - format = atoi (arg); - if (format < 1 || format > 6) - format = VIDEO_FORMAT; - } - - if (frequency <= 0) - { - arg = getenv ("BKTR_FREQUENCY"); - if (arg) - frequency = atof (arg); - if (frequency <= 0) - frequency = 0.0; - } - - memset(&act,0,sizeof(act)); - sigemptyset(&act.sa_mask); - act.sa_handler = catchsignal; - sigaction(SIGUSR1,&act,&old); - - *tuner_fd = open ("/dev/tuner0", O_RDONLY); - if (*tuner_fd < 0) { - perror("Warning: Tuner not opened continuing"); - } - - *video_fd = open (video_device, O_RDONLY); - if (*video_fd < 0) { - perror (video_device); - return -1; - } - - geo.rows = height; - geo.columns = width; - geo.frames = 1; -// geo.oformat = METEOR_GEO_YUV_422 | METEOR_GEO_YUV_12; - geo.oformat = METEOR_GEO_YUV_PACKED; - - switch (format) { - case PAL: h_max = PAL_HEIGHT; c = BT848_IFORM_F_PALBDGHI; break; - case PALN: h_max = PAL_HEIGHT; c = BT848_IFORM_F_PALN; break; - case PALM: h_max = PAL_HEIGHT; c = BT848_IFORM_F_PALM; break; - case SECAM: h_max = SECAM_HEIGHT; c = BT848_IFORM_F_SECAM; break; - case NTSC: h_max = NTSC_HEIGHT; c = BT848_IFORM_F_NTSCM; break; - case NTSCJ: h_max = NTSC_HEIGHT; c = BT848_IFORM_F_NTSCJ; break; - default: h_max = PAL_HEIGHT; c = BT848_IFORM_F_PALBDGHI; break; - } - if (height <= h_max/2) { - geo.oformat |= METEOR_GEO_EVEN_ONLY; - } - - if (ioctl(*video_fd, METEORSETGEO, &geo) < 0) { - perror ("METEORSETGEO"); - return -1; - } - - if (ioctl(*video_fd, BT848SFMT, &c) < 0) { - perror ("BT848SFMT"); - return -1; - } - - c = bktr_dev[idev]; - if (ioctl(*video_fd, METEORSINPUT, &c) < 0) { - perror ("METEORSINPUT"); - return -1; - } - *video_buf = (u_int8_t *) mmap((caddr_t)0, width*height*2, - PROT_READ, MAP_SHARED, *video_fd, (off_t) 0); - if (*video_buf == MAP_FAILED) { - perror ("mmap"); - return -1; - } - if (frequency != 0.0) { - ioctl_frequency = (unsigned long)(frequency*16); - if (ioctl(*tuner_fd, TVTUNER_SETFREQ, &ioctl_frequency)<0) - perror("TVTUNER_SETFREQ"); - } - c = METEOR_CAP_CONTINOUS; - ioctl(*video_fd, METEORCAPTUR, &c); - c = SIGUSR1; - ioctl (*video_fd, METEORSSIGNAL, &c); - return 0; -} - -static void bktr_getframe(u_int64_t per_frame) -{ - u_int64_t curtime; - static u_int64_t last_frame_time = 0; - - curtime = av_gettime(); - if (!last_frame_time - || ((last_frame_time + per_frame) > curtime)) { - if (!usleep (last_frame_time + per_frame + per_frame/8 - curtime)) { - if (!nsignals) - printf ("\nSLEPT NO signals - %d microseconds late\n", - (int) (av_gettime() - last_frame_time - per_frame)); - } - } - nsignals = 0; - - last_frame_time = curtime; -} - -void bf_memcpy (char *dest, char *src, int size) -{ - while (size -= 2) - { - dest[0] = src[1]; - dest[1] = src[0]; - dest += 2; - src += 2; - } -} - -/* note: we support only one picture read at a time */ -static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt) -{ - VideoData *s = s1->priv_data; - int size, halfsize; - - size = s->width * s->height; - halfsize = size << 1; - -// if (av_new_packet(pkt, size + halfsize) < 0) - if (av_new_packet(pkt, size + size) < 0) - return -EIO; - - bktr_getframe (s->per_frame); - pkt->pts = av_gettime() & ((1LL << 48) - 1); - bf_memcpy (pkt->data, video_buf, size + size); -// bf_memcpy (pkt->data, video_buf, size + halfsize); - -// return size + halfsize; - return size + size; -} - -static int grab_read_header (AVFormatContext *s1, AVFormatParameters *ap) -{ - VideoData *s = s1->priv_data; - AVStream *st; - int width, height; - int frame_rate; - int frame_rate_base; - int format = -1; - - if (!ap || ap->width <= 0 || ap->height <= 0 || ap->frame_rate <= 0) - return -1; - - width = ap->width; - height = ap->height; - frame_rate = ap->frame_rate; - frame_rate_base = ap->frame_rate_base; - - st = av_new_stream(s1, 0); - if (!st) - return -ENOMEM; - - s->width = width; - s->height = height; - s->frame_rate = frame_rate; - s->frame_rate_base = frame_rate_base; - s->per_frame = ((int64_t)1000000 * s->frame_rate_base) / s->frame_rate; - - st->codec.codec_type = CODEC_TYPE_VIDEO; -// st->codec.pix_fmt = PIX_FMT_YUV420P; - st->codec.pix_fmt = PIX_FMT_YUV422; - st->codec.codec_id = CODEC_ID_RAWVIDEO; - st->codec.width = width; - st->codec.height = height; - st->codec.frame_rate = frame_rate; - st->codec.frame_rate_base = frame_rate_base; - - av_set_pts_info(s1, 48, 1, 1000000); /* 48 bits pts in use */ - - if (ap->standard) { - if (!strcasecmp(ap->standard, "pal")) - format = PAL; - if (!strcasecmp(ap->standard, "secam")) - format = SECAM; - if (!strcasecmp(ap->standard, "ntsc")) - format = NTSC; - } - - if (bktr_init (video_device, width, height, format, &video_buf, - &(s->fd), &(s->tuner_fd), -1, 0.0) < 0) - return -EIO; - return 0; -} - -static int grab_read_close (AVFormatContext *s1) -{ - VideoData *s = s1->priv_data; - - int c = METEOR_CAP_STOP_CONT; - ioctl(s->fd, METEORCAPTUR, &c); - close(s->fd); - close(s->tuner_fd); - av_free(s); - return 0; -} - -AVInputFormat video_grab_device_format = { - "video4linux", - "video grab", - sizeof(VideoData), - NULL, - grab_read_header, - grab_read_packet, - grab_read_close, - flags: AVFMT_NOFILE, -}; - -int video_grab_init(void) -{ - av_register_input_format(&video_grab_device_format); - return 0; -} diff --git a/multimedia/ffmpeg-devel/files/patch-Makefile b/multimedia/ffmpeg-devel/files/patch-Makefile deleted file mode 100644 index a04053123a5f..000000000000 --- a/multimedia/ffmpeg-devel/files/patch-Makefile +++ /dev/null @@ -1,14 +0,0 @@ ---- Makefile.orig Sat Jul 17 11:05:15 2004 -+++ Makefile Sat Jul 17 11:04:42 2004 -@@ -81,8 +81,9 @@ - all: lib $(PROG) $(PROGTEST) $(VHOOK) $(QTFASTSTART) $(DOC) - - lib: -- $(MAKE) -C libavcodec all -- $(MAKE) -C libavformat all -+ $(MAKE) LDFLAGS="$(LDFLAGS)" -C libavcodec all -+ $(MAKE) LDFLAGS="$(LDFLAGS)" -C libavformat all -+ - - ffmpeg_g$(EXESUF): ffmpeg.o cmdutils.o .libs - $(CC) $(LDFLAGS) -o $@ ffmpeg.o cmdutils.o $(FFLIBS) $(EXTRALIBS) diff --git a/multimedia/ffmpeg-devel/files/patch-configure b/multimedia/ffmpeg-devel/files/patch-configure deleted file mode 100644 index 8aa0caaa7940..000000000000 --- a/multimedia/ffmpeg-devel/files/patch-configure +++ /dev/null @@ -1,29 +0,0 @@ ---- configure.orig Mon Jul 5 15:05:54 2004 -+++ configure Sun Dec 5 15:49:57 2004 -@@ -88,7 +88,7 @@ - mandir="" - bindir="" - cross_prefix="" --cc="gcc" -+cc="$CC" - ar="ar" - ranlib="ranlib" - make="make" -@@ -187,7 +187,7 @@ - BeOS) - prefix="/boot/home/config" - # helps building libavcodec --CFLAGS="-DPIC -fomit-frame-pointer" -+CFLAGS="$CFLAGS -DPIC -fomit-frame-pointer" - # 3 gcc releases known for BeOS, each with ugly bugs - gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`" - case "$gcc_version" in -@@ -857,7 +857,7 @@ - EOF - - imlib2=no --if $cc -o $TMPE $TMPC -lImlib2 -lm > /dev/null 2>&1 ; then -+if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lImlib2 -lm > /dev/null 2>&1 ; then - imlib2=yes - fi - diff --git a/multimedia/ffmpeg-devel/files/patch-libavcodec::Makefile b/multimedia/ffmpeg-devel/files/patch-libavcodec::Makefile deleted file mode 100644 index 4ed42ea46e9d..000000000000 --- a/multimedia/ffmpeg-devel/files/patch-libavcodec::Makefile +++ /dev/null @@ -1,22 +0,0 @@ ---- libavcodec/Makefile.orig Sat Jul 17 11:07:57 2004 -+++ libavcodec/Makefile Sat Jul 17 11:09:21 2004 -@@ -197,7 +197,7 @@ - $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) - -lib /machine:i386 /def:$(@:.dll=.def) - else -- $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) $(LDFLAGS) -+ $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS) - endif - - dsputil.o: dsputil.c dsputil.h -@@ -269,8 +269,8 @@ - install -s -m 755 $(SLIB) "$(prefix)" - else - install -d $(prefix)/lib -- install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec-$(VERSION).so -- ln -sf libavcodec-$(VERSION).so $(prefix)/lib/libavcodec.so -+ install -s -m 755 $(SLIB) $(prefix)/lib/libavcodec.so.1 -+ cd $(prefix)/lib && ln -s libavcodec.so.1 libavcodec.so - ldconfig || true - endif - else diff --git a/multimedia/ffmpeg-devel/files/patch-libavcodec::alpha::simple_idct_alpha.c b/multimedia/ffmpeg-devel/files/patch-libavcodec::alpha::simple_idct_alpha.c deleted file mode 100644 index 9595454fd081..000000000000 --- a/multimedia/ffmpeg-devel/files/patch-libavcodec::alpha::simple_idct_alpha.c +++ /dev/null @@ -1,19 +0,0 @@ ---- libavcodec/alpha/simple_idct_alpha.c.bak Fri Dec 27 12:35:23 2002 -+++ libavcodec/alpha/simple_idct_alpha.c Tue May 13 21:21:42 2003 -@@ -24,8 +24,16 @@ - * and Falk Hueffner <falk@debian.org> - */ - -+#if (defined(__unix__) || defined(unix)) && !defined(USG) -+#include <sys/param.h> -+#endif -+ - #include "asm.h" - #include "../dsputil.h" -+ -+#if defined(__FreeBSD__) && __FreeBSD_version < 500000 -+typedef __int32_t int_fast32_t; -+#endif - - extern void (*put_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels, - int line_size); diff --git a/multimedia/ffmpeg-devel/files/patch-libavcodec::bswap.h b/multimedia/ffmpeg-devel/files/patch-libavcodec::bswap.h deleted file mode 100644 index 8bef16c36abc..000000000000 --- a/multimedia/ffmpeg-devel/files/patch-libavcodec::bswap.h +++ /dev/null @@ -1,53 +0,0 @@ ---- libavcodec/bswap.h.orig Sun Dec 5 16:03:35 2004 -+++ libavcodec/bswap.h Sun Dec 5 16:06:48 2004 -@@ -10,6 +10,14 @@ - #include <byteswap.h> - #else - -+#if (defined(__unix__) || defined(unix)) && !defined(USG) -+#include <sys/param.h> -+#endif -+ -+#if defined(__FreeBSD__) && __FreeBSD_version >= 470000 -+#include <sys/endian.h> -+#endif -+ - #ifdef ARCH_X86 - static inline unsigned short ByteSwap16(unsigned short x) - { -@@ -18,7 +26,11 @@ - "0" (x)); - return x; - } -+#if defined(__FreeBSD__) && __FreeBSD_version >= 470000 -+#define bswap_16(x) (be16toh(x)) -+#else - #define bswap_16(x) ByteSwap16(x) -+#endif - - static inline unsigned int ByteSwap32(unsigned int x) - { -@@ -34,7 +46,11 @@ - "0" (x)); - return x; - } -+#if defined(__FreeBSD__) && __FreeBSD_version >= 470000 -+#define bswap_32(x) (be32toh(x)) -+#else - #define bswap_32(x) ByteSwap32(x) -+#endif - - static inline unsigned long long int ByteSwap64(unsigned long long int x) - { -@@ -45,7 +61,11 @@ - "0"(bswap_32((unsigned long)x)),"1"(bswap_32((unsigned long)(x>>32)))); - return __x.__ll; - } -+#if defined(__FreeBSD__) && __FreeBSD_version >= 510000 -+#define bswap_64(x) (be64toh(x)) -+#else - #define bswap_64(x) ByteSwap64(x) -+#endif - - #elif defined(ARCH_SH4) - diff --git a/multimedia/ffmpeg-devel/files/patch-libavformat::Makefile b/multimedia/ffmpeg-devel/files/patch-libavformat::Makefile deleted file mode 100644 index 36a7674c28e5..000000000000 --- a/multimedia/ffmpeg-devel/files/patch-libavformat::Makefile +++ /dev/null @@ -1,13 +0,0 @@ ---- libavformat/Makefile.orig Thu Sep 11 22:55:10 2003 -+++ libavformat/Makefile Thu Sep 11 23:12:50 2003 -@@ -88,8 +88,8 @@ - install: all - ifeq ($(BUILD_SHARED),yes) - install -d $(prefix)/lib -- install -s -m 755 $(SLIB) $(prefix)/lib/libavformat-$(VERSION).so -- ln -sf libavformat-$(VERSION).so $(prefix)/lib/libavformat.so -+ install -s -m 755 $(SLIB) $(prefix)/lib/libavformat.so.1 -+ ln -sf libavformat.so.1 $(prefix)/lib/libavformat.so - ldconfig || true - mkdir -p $(prefix)/include/ffmpeg - install -m 644 $(VPATH)/avformat.h $(prefix)/include/ffmpeg/avformat.h diff --git a/multimedia/ffmpeg-devel/files/patch-vhook::Makefile b/multimedia/ffmpeg-devel/files/patch-vhook::Makefile deleted file mode 100644 index cea89f3f74e5..000000000000 --- a/multimedia/ffmpeg-devel/files/patch-vhook::Makefile +++ /dev/null @@ -1,19 +0,0 @@ ---- vhook/Makefile.orig Fri Dec 5 20:07:04 2003 -+++ vhook/Makefile Fri Dec 5 20:07:55 2003 -@@ -29,13 +29,13 @@ - install -s -m 755 $(HOOKS) $(INSTDIR) - - imlib2.so: imlib2.o -- $(CC) -g -o $@ $(SHFLAGS) $< -lImlib2 -+ $(CC) -o $@ $(LDFLAGS) $(SHFLAGS) $< -lImlib2 - - drawtext.so: drawtext.o -- $(CC) -g -o $@ $(SHFLAGS) $< `freetype-config --libs` -+ $(CC) -o $@ $(LDFLAGS) $(SHFLAGS) $< `freetype-config --libs` - - %.so: %.o -- $(CC) -g -o $@ $(SHFLAGS) $< -+ $(CC) -o $@ $(LDFLAGS) $(SHFLAGS) $< - - clean: - rm -f *.o *.d .depend *.so *~ diff --git a/multimedia/ffmpeg-devel/pkg-descr b/multimedia/ffmpeg-devel/pkg-descr deleted file mode 100644 index cdb037459048..000000000000 --- a/multimedia/ffmpeg-devel/pkg-descr +++ /dev/null @@ -1,24 +0,0 @@ -[ excerpt (with adaptations) from developer's README ] -ffmpeg is a hyper fast realtime audio/video encoder, a streaming -server and a generic audio and video file converter. - -It can convert a standard video source into several file formats -based on DCT/motion compensation encoding. Sound is compressed in -MPEG audio layer 2 or using an AC3 compatible stream. - -What makes ffmpeg interesting ? -- Simple and efficient video encoder: outputs MPEG1, H263, Real - Video(tm), MPEG4, DIVX and MJPEG compatible bitstreams using the - same encoder core. -- Hyper fast MPEG audio layer 2 compression (50 times faster than - realtime on a K6 500). -[snip -> rest on website below] - -ffmpeg is made of two programs: -* ffmpeg: soft VCR which encodes in real time to several formats. - It can also encode from any supported input file format to any - input supported format. -* ffserver: high performance live broadcast streaming server based - on the ffmpeg core encoders. - -WWW: http://ffmpeg.sourceforge.net/ diff --git a/multimedia/ffmpeg-devel/pkg-plist b/multimedia/ffmpeg-devel/pkg-plist deleted file mode 100644 index 6bad3c0fbd6c..000000000000 --- a/multimedia/ffmpeg-devel/pkg-plist +++ /dev/null @@ -1,26 +0,0 @@ -bin/ffmpeg -%%SDL%%bin/ffplay -%%FFSERVER%%bin/ffserver -%%FFSERVER%%etc/ffserver.conf.sample -%%FFSERVER%%etc/rc.d/ffserver.sh -include/ffmpeg/avcodec.h -include/ffmpeg/avformat.h -include/ffmpeg/avio.h -include/ffmpeg/common.h -include/ffmpeg/dsputil.h -include/ffmpeg/rational.h -include/ffmpeg/rtp.h -include/ffmpeg/rtsp.h -include/ffmpeg/rtspcodes.h -lib/libavcodec.a -lib/libavcodec.so -lib/libavcodec.so.%%SHLIB_VERSION%% -lib/libavformat.a -lib/libavformat.so -lib/libavformat.so.%%SHLIB_VERSION%% -%%VHOOK%%%%DRAWTEXT%%lib/vhook/drawtext.so -%%VHOOK%%lib/vhook/fish.so -%%VHOOK%%%%IMLIB2%%lib/vhook/imlib2.so -%%VHOOK%%lib/vhook/null.so -%%VHOOK%%lib/vhook/ppm.so -%%VHOOK%%@dirrm lib/vhook |