Browse Source

add support for Theora codec

Waldemar Brodkorb 14 years ago
parent
commit
8c811dad88
2 changed files with 40 additions and 2 deletions
  1. 12 2
      package/ffmpeg/Makefile
  2. 28 0
      package/libtheora/Makefile

+ 12 - 2
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

+ 28 - 0
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