f1ab745a871481df57ea6342968706106e6253c8
[openwrt/svn-archive/archive.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 DESCRIPTION:=\
30 libvorbisidec is "tremor", a fixed-point implementation of libvorbis.\\\
31 It also has libogg built-in. It is suitable as a replacement for \\\
32 libvorbis and libogg in tremor-aware applications.\\\
33 Tremor is a decoder only.
34 URL:=http://http://wiki.xiph.org/index.php/Tremor
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-shared \
40 --enable-static \
41 )
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(STAGING_DIR)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(STAGING_DIR)/usr/include/
53 mkdir -p $(STAGING_DIR)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(STAGING_DIR)/usr/lib/
55 endef
56
57 define Build/UninstallDev
58 rm -rf \
59 $(STAGING_DIR)/usr/include/tremor \
60 $(STAGING_DIR)/usr/lib/libvorbisidec.{a,so*}
61 endef
62
63 define Package/libvorbisidec/install
64 install -d -m0755 $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
66 endef
67
68 $(eval $(call BuildPackage,libvorbisidec))