[packages] libtorrent: update to 0.12.6_r1130 (#6685)
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libvorbisidec
11 PKG_VERSION:=1.0.2+svn14261
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/libv/libvorbisidec/
16 PKG_MD5SUM:=bc617d4af1cd74b38d7c51451dd6eff0
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libvorbisidec
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=A fixed-point Ogg/Vorbis decoder library
26 URL:=http://wiki.xiph.org/index.php/Tremor
27 endef
28
29 define Package/libvorbisidec/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 endef
35
36 TARGET_CFLAGS += $(FPIC)
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 $(INSTALL_DIR) $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
57 endef
58
59 define Package/libvorbisidec/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libvorbisidec))