#
-# Copyright (C) 2006-2009 OpenWrt.org
+# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=ffmpeg
-PKG_VERSION:=20080419
+PKG_VERSION:=0.5.2
PKG_RELEASE:=2
-PKG_SOURCE:=$(PKG_NAME)-export-snapshot-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
-PKG_MD5SUM:=63aeb859941b96ed3ef7b0c7a643bf4d
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-export-2008-04-19
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=http://ffmpeg.org/releases/
+PKG_MD5SUM:=451eb428ca97a72c00555d50944cdb24
FFMPEG_ENCODERS:= \
ac3 \
mpeg1video \
mpeg2video \
mpeg4 \
+ pcm_s16be \
+ pcm_s16le \
png \
zlib \
mpeg4 \
mpeg4aac \
mpegvideo \
+ pcm_s16be \
+ pcm_s16le \
png \
wmav1 \
wmav2 \
mpeg1video \
mpeg2video \
mpegts \
+ oss \
rtp \
FFMPEG_DEMUXERS:= \
mpegps \
mpegts \
mpegvideo \
+ rm \
rtsp \
sdp \
v4l2 \
SECTION:=multimedia
CATEGORY:=Multimedia
TITLE+= program
- DEPENDS+= +libpthread +libffmpeg
+ DEPENDS+= +libpthread +libffmpeg +libpostproc
endef
define Package/ffmpeg/description
SECTION:=libs
CATEGORY:=Libraries
TITLE+= libraries
- DEPENDS+= +libpthread +libfaad2 +zlib
+ DEPENDS+= +libpthread +zlib
MENU:=1
endef
FFMPEG_CONFIGURE_PARSERS:=$(call FILTER_CONFIG,PARSER,parser,$(FFMPEG_PARSERS))
FFMPEG_CONFIGURE_PROTOCOLS:=$(call FILTER_CONFIG,PROTOCOL,protocol,$(FFMPEG_PROTOCOLS))
+# XXX: add --disable-mmx & --disable-mmx2 to fix build failure on x86
+# libpostproc/postprocess_template.c:2195: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
+# libpostproc/postprocess_template.c:3124: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
+# libpostproc/postprocess_template.c:3207: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
+
define Build/Configure
# this is *NOT* GNU configure
( cd $(PKG_BUILD_DIR); \
--enable-ffmpeg \
--enable-ffserver \
--enable-gpl \
- --enable-libfaad \
+ --disable-libfaad \
+ --disable-mmx \
+ --disable-mmx2 \
--enable-pthreads \
--disable-optimizations \
--enable-small \
--enable-zlib \
--enable-postproc \
\
+ $(if $(CONFIG_FFMPEG_IPV6),,--disable-ipv6) \
+ \
+ --disable-bsfs \
+ --disable-devices \
--disable-encoders \
$(FFMPEG_CONFIGURE_ENCODERS) \
--disable-decoders \
$(FFMPEG_CONFIGURE_DEMUXERS) \
--disable-parsers \
$(FFMPEG_CONFIGURE_PARSERS) \
- --disable-bsfs \
--disable-protocols \
$(FFMPEG_CONFIGURE_PROTOCOLS) \
)