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.

63 lines
1.8 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:=20150104
  8. PKG_VERSION:=1.0.3-$(PKG_REV)
  9. PKG_RELEASE:=3
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://git.xiph.org/tremor.git
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_VERSION:=b56ffce0c0773ec5ca04c466bc00b1bbcaf65aef
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  15. PKG_MIRROR_HASH:=a5095464c58c5e0909025bf4cdfdcdc07742f545b696829c97514481b9ba64db
  16. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  17. PKG_LICENSE:=BSD-3-Clause
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_USE_MIPS16:=0
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libvorbisidec
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=A fixed-point Ogg/Vorbis decoder library
  27. DEPENDS:= +libogg
  28. URL:=http://wiki.xiph.org/index.php/Tremor
  29. endef
  30. define Package/libvorbisidec/description
  31. libvorbisidec is "tremor", a fixed-point implementation of libvorbis.
  32. It also has libogg built-in. It is suitable as a replacement for
  33. libvorbis and libogg in tremor-aware applications.
  34. Tremor is a decoder only.
  35. endef
  36. TARGET_CFLAGS += $(FPIC)
  37. CONFIGURE_ARGS += --enable-shared --enable-static
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/tremor $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libvorbisidec.{a,so*} $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  44. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  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))