summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-09-17 19:58:38 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-09-17 19:58:38 +0200
commit8c811dad8865ed7bb068436557b280fbe499d4f9 (patch)
tree7592034ecc45fc73f9d866b810aa9a26ebe92783
parent19d4952fd29c5f35527acce3e2809e83ebde9902 (diff)
add support for Theora codec
-rw-r--r--package/ffmpeg/Makefile14
-rw-r--r--package/libtheora/Makefile28
2 files changed, 40 insertions, 2 deletions
diff --git a/package/ffmpeg/Makefile b/package/ffmpeg/Makefile
index debea9675..ac7f1fa5f 100644
--- a/package/ffmpeg/Makefile
+++ b/package/ffmpeg/Makefile
@@ -27,7 +27,7 @@ PKGSC_FFSERVER:= multimedia
PKGSD_FFPROBE:= simple multimedia stream analyzer
PKGSC_FFPROBE:= multimedia
-PKG_FLAVOURS_LIBFFMPEG:= WITH_AAC WITH_MP3 WITH_VP8
+PKG_FLAVOURS_LIBFFMPEG:= WITH_AAC WITH_MP3 WITH_VP8 WITH_THEORA
PKGFD_WITH_AAC:= with AAC encoding support
PKGFS_WITH_AAC:= libfaac
@@ -50,6 +50,13 @@ ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_VP8),y)
PKG_FDEPENDS+= libvpx
endif
+PKGFD_WITH_THEORA:= with Theora encoding support
+PKGFS_WITH_THEORA:= libtheora
+PKGFB_WITH_THEORA:= libtheora
+ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_THEORA),y)
+PKG_FDEPENDS+= libtheora
+endif
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include ${TOPDIR}/mk/package.mk
@@ -105,9 +112,12 @@ endif
ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_MP3),y)
CONFIGURE_ARGS+= --enable-libmp3lame
endif
-ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_MP3),y)
+ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_VP8),y)
CONFIGURE_ARGS+= --enable-libvpx
endif
+ifeq ($(ADK_PACKAGE_LIBFFMPEG_WITH_THEORA),y)
+CONFIGURE_ARGS+= --enable-libtheora
+endif
libffmpeg-install:
${INSTALL_DIR} ${IDIR_LIBFFMPEG}/usr/lib
diff --git a/package/libtheora/Makefile b/package/libtheora/Makefile
new file mode 100644
index 000000000..328307941
--- /dev/null
+++ b/package/libtheora/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= libtheora
+PKG_VERSION:= 1.1.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 292ab65cedd5021d6b7ddd117e07cd8e
+PKG_DESCR:= Theora video codec
+PKG_SECTION:= libs
+PKG_DEPENDS:= libsdl libogg libvorbis
+PKG_BUILDDEP:= sdl libogg libvorbis
+PKG_URL:= http://www.theora.org/
+PKG_SITES:= http://downloads.xiph.org/releases/theora/
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBTHEORA,libtheora,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+libtheora-install:
+ $(INSTALL_DIR) $(IDIR_LIBTHEORA)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libtheora*.so* \
+ $(IDIR_LIBTHEORA)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk