OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
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 | |
8 | include $(TOPDIR)/rules.mk |
9 | |
10 | PKG_NAME:=libtheora |
11 | PKG_VERSION:=1.2.0alpha1 |
12 | PKG_RELEASE:=1 |
13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
14 | PKG_SOURCE_URL:=http://downloads.xiph.org/releases/theora/ |
15 | PKG_MD5SUM:=a2b9b631aede517cf22dcd3f4abf8dd6 |
16 | PKG_FIXUP:=libtool |
17 | |
18 | PKG_BUILD_DEPENDS:=libvorbis |
19 | |
20 | include $(INCLUDE_DIR)/package.mk |
21 | |
22 | PKG_INSTALL=1 |
23 | |
24 | define 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 |
31 | endef |
32 | |
33 | define Package/libtheora/description |
34 | Theora is Xiph.Org\'s first publicly released video codec, intended |
35 | for use within the Foundation\'s Ogg multimedia streaming system. |
36 | Theora is derived directly from On2\'s VP3 codec. Theora adds more |
37 | degrees of freedom to the compression parameters and recent encoders |
38 | contain optimizations that make it much better than VP3\'s original code. |
39 | endef |
40 | |
41 | CONFIGURE_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 |
48 | TARGET_CFLAGS += -O2 |
49 | |
50 | # remove, once we're done with tuning |
51 | MAKE_FLAGS += -j4 |
52 | |
53 | define Build/Configure |
54 | $(call Build/Configure/Default) |
55 | endef |
56 | |
57 | define 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/ |
64 | endef |
65 | |
66 | define Package/libtheora/install |
67 | $(INSTALL_DIR) $(1)/usr/lib/ |
68 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ |
69 | endef |
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 |