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