Root/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:
78

Archive Download this file



interactive