2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=libvorbisidec
12 PKG_VERSION:=1.2.0-dave
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://users.tpg.com.au/davico/openwrt/
17 PKG_MD5SUM:=cb8e51aab92ef164f8e0e8853f7164fa
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/libvorbisidec
28 TITLE:=A fixed-point Ogg/Vorbis decoder library
29 URL:=http://wiki.xiph.org/index.php/Tremor
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.
39 define Build/Configure
40 $(call Build/Configure/Default, \
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
52 define Build/InstallDev
53 mkdir -p $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
59 define Build/UninstallDev
61 $(STAGING_DIR)/usr/include/tremor \
62 $(STAGING_DIR)/usr/lib/libvorbisidec.{a,so*}
65 define Package/libvorbisidec/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
70 $(eval $(call BuildPackage,libvorbisidec))