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.

62 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_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  18. PKG_LICENSE:=BSD-3-Clause
  19. PKG_LICENSE_FILES:=COPYING
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. PKG_USE_MIPS16:=0
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/libvorbisidec
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=A fixed-point Ogg/Vorbis decoder library
  28. DEPENDS:= +libogg
  29. URL:=http://wiki.xiph.org/index.php/Tremor
  30. endef
  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. TARGET_CFLAGS += $(FPIC)
  38. CONFIGURE_ARGS += --enable-shared --enable-static
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
  44. endef
  45. define Package/libvorbisidec/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
  48. endef
  49. $(eval $(call BuildPackage,libvorbisidec))