Date:2011-05-03 10:41:51 (12 years 10 months ago)
Author:David Kühling
Commit:b27e018ff577abbee3b946b5feac5de5b8011a79
Message:libtheora: add our own version of libtheora, better tuned for NanoNote this is a copy of libtheora from openwrt, updated to 1.2.0alpha1 and compiled with -O2 instead of -Os to not cripple various DSP code#

Files: libtheora/Makefile (1 diff)
libtheora/patches/001-no_docs_tests.patch (1 diff)

Change Details

libtheora/Makefile
1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libtheora
11PKG_VERSION:=1.2.0alpha1
12PKG_RELEASE:=1
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=http://downloads.xiph.org/releases/theora/
15PKG_MD5SUM:=a2b9b631aede517cf22dcd3f4abf8dd6
16PKG_FIXUP:=libtool
17
18PKG_BUILD_DEPENDS:=libvorbis
19
20include $(INCLUDE_DIR)/package.mk
21
22PKG_INSTALL=1
23
24define Package/libtheora
25  MAINTAINER:="David Kuehling" <dvdkhlng TA gmx TOD de>
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=libtheora
29  URL:=http://xiph.org/theora/
30  DEPENDS:=+libogg
31endef
32
33define Package/libtheora/description
34Theora is Xiph.Org\'s first publicly released video codec, intended
35for use within the Foundation\'s Ogg multimedia streaming system.
36Theora is derived directly from On2\'s VP3 codec. Theora adds more
37degrees of freedom to the compression parameters and recent encoders
38contain optimizations that make it much better than VP3\'s original code.
39endef
40
41CONFIGURE_ARGS += --disable-float \
42        --disable-examples \
43        --disable-oggtest \
44        --disable-vorbistest \
45        --disable-sdltest \
46
47# override -Os, to not cripple theora's performance
48TARGET_CFLAGS += -O2
49
50# remove, once we're done with tuning
51MAKE_FLAGS += -j4
52
53define Build/Configure
54    $(call Build/Configure/Default)
55endef
56
57define Build/InstallDev
58    $(INSTALL_DIR) $(1)/usr/include/theora/
59    $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/theora/* $(1)/usr/include/theora/
60    $(INSTALL_DIR) $(1)/usr/lib/
61    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
62    $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
63    $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
64endef
65
66define Package/libtheora/install
67    $(INSTALL_DIR) $(1)/usr/lib/
68    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
69endef
70
71$(eval $(call BuildPackage,libtheora))
72
73
74# The following comments configure the Emacs editor. Just ignore them.
75# Local Variables:
76# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/libtheora/compile -j2 V=99"
77# End:
libtheora/patches/001-no_docs_tests.patch
1Index: libtheora-1.2.0alpha1/Makefile.am
2===================================================================
3--- libtheora-1.2.0alpha1.orig/Makefile.am 2010-09-23 22:26:52.000000000 +0200
4@@ -8,7 +8,7 @@
5 EXAMPLES_DIR =
6 endif
7
8-SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)
9+SUBDIRS = lib include m4 $(EXAMPLES_DIR)
10
11
12 # we include the whole debian/ dir in EXTRA_DIST because there's a problem
13Index: libtheora-1.2.0alpha1/Makefile.in
14===================================================================
15--- libtheora-1.2.0alpha1.orig/Makefile.in 2010-09-23 23:59:14.000000000 +0200
16@@ -106,7 +106,7 @@
17     distdir dist dist-all distcheck
18 ETAGS = etags
19 CTAGS = ctags
20-DIST_SUBDIRS = lib include doc tests m4 examples
21+DIST_SUBDIRS = lib include m4
22 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
23 distdir = $(PACKAGE)-$(VERSION)
24 top_distdir = $(distdir)
25@@ -312,7 +312,7 @@
26 AUTOMAKE_OPTIONS = foreign 1.11 dist-zip dist-xz
27 @THEORA_ENABLE_EXAMPLES_FALSE@EXAMPLES_DIR =
28 @THEORA_ENABLE_EXAMPLES_TRUE@EXAMPLES_DIR = examples
29-SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)
30+SUBDIRS = lib include m4 $(EXAMPLES_DIR)
31
32 # we include the whole debian/ dir in EXTRA_DIST because there's a problem
33 # with autotools and HFS+ MacOSX file systems that caused debian/Makefile.am

Archive Download the corresponding diff file



interactive