[package] update radvd to 1.5, select kmod-ipv6 (#5966)
[openwrt/svn-archive/archive.git] / libs / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libtheora
11 PKG_VERSION:=1.0
12 PKG_RELEASE:=3
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=http://downloads.xiph.org/releases/theora/
15 PKG_MD5SUM:=c963937053f45a7878954bed37ceb182
16 PKG_FIXUP:=libtool
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_INSTALL=1
21
22 define Package/libtheora
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=libtheora
26 URL:=http://xiph.org/theora/
27 DEPENDS:=+libogg
28 endef
29
30 define Package/libtheora/description
31 Theora is Xiph.Org's first publicly released video codec, intended
32 for use within the Foundation's Ogg multimedia streaming system.
33 Theora is derived directly from On2's VP3 codec; Currently the
34 encoders are nearly identical, but Theora will make use of new
35 features supported by the decoder to improve over what is
36 is possible with VP3.
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --disable-examples \
42 --disable-oggtest \
43 --disable-vorbistest \
44 --disable-sdltest \
45 )
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/include/theora/
50 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/theora/* $(1)/usr/include/theora/
51 $(INSTALL_DIR) $(1)/usr/lib/
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
53 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
54 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
55 endef
56
57 define Package/libtheora/install
58 $(INSTALL_DIR) $(1)/usr/lib/
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libtheora))