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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libvorbisidec
27 TITLE:=A fixed-point Ogg/Vorbis decoder library
28 URL:=http://wiki.xiph.org/index.php/Tremor
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.
38 define Build/Configure
39 $(call Build/Configure/Default, \
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
51 define Build/InstallDev
52 mkdir -p $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
58 define Build/UninstallDev
60 $(STAGING_DIR)/usr/include/tremor \
61 $(STAGING_DIR)/usr/lib/libvorbisidec.{a,so*}
64 define Package/libvorbisidec/install
65 $(INSTALL_DIR) $(1)/usr/lib
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
69 $(eval $(call BuildPackage,libvorbisidec))