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.

60 lines
1.7 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=libvorbisidec
  7. PKG_REV:=20180319
  8. PKG_VERSION:=1.0.3-$(PKG_REV)
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://gitlab.xiph.org/xiph/tremor.git
  12. PKG_SOURCE_VERSION:=7c30a66346199f3f09017a09567c6c8a3a0eedc8
  13. PKG_MIRROR_HASH:=9cdec0bf6663d7c9e615dd556a2f115efccded884fe52c8dd18b42120781bed0
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_USE_MIPS16:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libvorbisidec
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=A fixed-point Ogg/Vorbis decoder library
  25. DEPENDS:= +libogg
  26. URL:=http://wiki.xiph.org/index.php/Tremor
  27. endef
  28. define Package/libvorbisidec/description
  29. libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
  30. It also has libogg built-in. It is suitable as a replacement for
  31. libvorbis and libogg in tremor-aware applications.
  32. Tremor is a decoder only.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. CONFIGURE_ARGS += --enable-shared --enable-static
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  42. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/libvorbisidec/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.so.* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,libvorbisidec))