summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-09-16 18:54:26 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-09-16 18:54:26 +0200
commit76d53ce0d9bd2e518254a099a3b34e0d681a71ea (patch)
tree6a07a27168f7ca1f2d355bd4d48442d9d5b6e945 /package
parent479f0d92ae2d0f62367323386710c7441c31a911 (diff)
add flavours for encoding suppport for mp3/aac
Diffstat (limited to 'package')
-rw-r--r--package/ffmpeg/Makefile26
1 files changed, 24 insertions, 2 deletions
diff --git a/package/ffmpeg/Makefile b/package/ffmpeg/Makefile
index 75b5b6bea..781dcd329 100644
--- a/package/ffmpeg/Makefile
+++ b/package/ffmpeg/Makefile
@@ -9,6 +9,7 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= 556870ccfd6c9c0426c7dd86dd5beb62
PKG_DESCR:= record, convert and stream audio & video
PKG_SECTION:= libs
+PKG_FDEPENDS:= libpthread
PKG_URL:= http://www.ffmpeg.org/
PKG_SITES:= http://www.ffmpeg.org/releases/
@@ -17,7 +18,7 @@ PKG_ARCH_DEPENDS:= !cris
PKG_SUBPKGS:= LIBFFMPEG FFPLAY FFSERVER FFPROBE FFMPEG
PKGSD_FFPLAY:= ffmpeg based video player
PKGSC_FFPLAY:= multimedia
-PKGSS_FFPLAY:= libsdl libpthread ffmpeg
+PKGSS_FFPLAY:= libsdl libpthread libffmpeg
PKGSB_FFPLAY:= sdl
PKGSD_FFMPEG:= ffmpeg video converter
PKGSD_FFMPEG:= multimedia
@@ -26,11 +27,25 @@ PKGSD_FFSERVER:= multimedia
PKGSD_FFPROBE:= simple multimedia stream analyzer
PKGSD_FFPROBE:= multimedia
+PKG_FLAVOURS_LIBFFMPEG:= WITH_AAC WITH_MP3
+PKGFD_WITH_AAC:= with AAC encoding support
+PKGFS_WITH_AAC:= libfaac
+PKGFB_WITH_AAC:= faac
+ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_AAC),y)
+PKG_FDEPENDS+= libfaac
+endif
+PKGFD_WITH_MP3:= with MP3 encoding support
+PKGFS_WITH_MP3:= libmp3lame
+PKGFB_WITH_MP3:= lame
+ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_MP3),y)
+PKG_FDEPENDS+= libmp3lame
+endif
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBFFMPEG,libffmpeg,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,LIBFFMPEG,libffmpeg,${PKG_VERSION}-${PKG_RELEASE},${PKG_FDEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,FFMPEG,ffmpeg,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FFMPEG},${PKGSD_FFMPEG}))
$(eval $(call PKG_template,FFSERVER,ffserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FFSERVER},${PKGSD_FFSERVER}))
$(eval $(call PKG_template,FFPROBE,ffprobe,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FFPROBE},${PKGSD_FFPROBE}))
@@ -75,6 +90,13 @@ CONFIGURE_ARGS:= --prefix=/usr \
--enable-postproc \
${CONFIGURE_CPU_OPTS}
+ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_AAC),y)
+CONFIGURE_ARGS+= --enable-nonfree --enable-libfaac
+endif
+ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_MP3),y)
+CONFIGURE_ARGS+= --enable-libmp3lame
+endif
+
libffmpeg-install:
${INSTALL_DIR} ${IDIR_LIBFFMPEG}/usr/lib
${CP} ${WRKINST}/usr/lib/libavdevice.so* ${IDIR_LIBFFMPEG}/usr/lib