497edc1a6d38e7e1f5b565c3353a48d17d1499e0
[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.0.2+svn12153
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libv/libvorbisidec/
17 PKG_MD5SUM:=cb8e51aab92ef164f8e0e8853f7164fa
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libvorbisidec
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=A fixed-point Ogg/Vorbis decoder library
28 URL:=http://wiki.xiph.org/index.php/Tremor
29 endef
30
31 define Package/libvorbisidec/description
32 libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
33 It also has libogg built-in. It is suitable as a replacement for
34 libvorbis and libogg in tremor-aware applications.
35 Tremor is a decoder only.
36 endef
37
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); ./autogen.sh );
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))