You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libvorbisidec
  9. PKG_REV:=20150104
  10. PKG_VERSION:=1.0.3-$(PKG_REV)
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=git://git.xiph.org/tremor.git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=b56ffce0c0773ec5ca04c466bc00b1bbcaf65aef
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  19. PKG_LICENSE:=BSD-3-Clause
  20. PKG_LICENSE_FILES:=COPYING
  21. PKG_FIXUP:=autoreconf
  22. PKG_INSTALL:=1
  23. PKG_USE_MIPS16:=0
  24. include $(INCLUDE_DIR)/package.mk
  25. define Package/libvorbisidec
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. TITLE:=A fixed-point Ogg/Vorbis decoder library
  29. DEPENDS:= +libogg
  30. URL:=http://wiki.xiph.org/index.php/Tremor
  31. endef
  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.
  37. endef
  38. TARGET_CFLAGS += $(FPIC)
  39. CONFIGURE_ARGS += --enable-shared --enable-static
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include
  42. $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
  45. endef
  46. define Package/libvorbisidec/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
  49. endef
  50. $(eval $(call BuildPackage,libvorbisidec))