DESCRIPTION:= is obselete
[packages.git] / libs / libvorbisidec / Makefile
1
2 # Copyright (C) 2006 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:=libvorbisidec
12 PKG_VERSION:=1.2.0-dave
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://users.tpg.com.au/davico/openwrt/
17 PKG_MD5SUM:=cb8e51aab92ef164f8e0e8853f7164fa
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libvorbisidec
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=A fixed-point Ogg/Vorbis decoder library
29   URL:=http://wiki.xiph.org/index.php/Tremor
30 endef
31
32 define Package/libvorbisidec/description
33         libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
34         It also has libogg built-in. It is suitable as a replacement for 
35         libvorbis and libogg in tremor-aware applications.
36         Tremor is a decoder only.
37 endef
38
39 define Build/Configure
40         $(call Build/Configure/Default, \
41                 --enable-shared \
42                 --enable-static \
43         )
44 endef
45
46 define Build/Compile
47         $(MAKE) -C $(PKG_BUILD_DIR) \
48                 DESTDIR="$(PKG_INSTALL_DIR)" \
49                 all install
50 endef
51
52 define Build/InstallDev
53         mkdir -p $(1)/usr/include
54         $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
55         mkdir -p $(1)/usr/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
57 endef
58
59 define Build/UninstallDev
60         rm -rf \
61                 $(STAGING_DIR)/usr/include/tremor \
62                 $(STAGING_DIR)/usr/lib/libvorbisidec.{a,so*}
63 endef
64
65 define Package/libvorbisidec/install
66         $(INSTALL_DIR) $(1)/usr/lib
67         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libvorbisidec))