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.

65 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2008-2014 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:=libvorbis
  9. PKG_VERSION:=1.3.4
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://downloads.xiph.org/releases/vorbis/
  13. PKG_MD5SUM:=55f2288055e44754275a17c9a2497391
  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. include $(INCLUDE_DIR)/package.mk
  20. define Package/libvorbis
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=libvorbis
  24. URL:=http://xiph.org/vorbis/
  25. DEPENDS:=+libogg
  26. endef
  27. define Package/libvorbis/description
  28. Vorbis is a general purpose audio and music encoding format
  29. contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
  30. MPEG audio layer 3. Unlike the MPEG sponsored formats (and other
  31. proprietary formats such as RealAudio G2 and Windows' flavor of the
  32. month), the Vorbis CODEC specification belongs to the public domain.
  33. All the technical details are published and documented, and any
  34. software entity may make full use of the format without license
  35. fee, royalty or patent concerns.
  36. endef
  37. CONFIGURE_ARGS+= \
  38. --disable-oggtest \
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include/vorbis/
  41. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vorbis/* $(1)/usr/include/vorbis/
  42. $(INSTALL_DIR) $(1)/usr/lib/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  45. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  46. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  47. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
  48. endef
  49. define Package/libvorbis/install
  50. $(INSTALL_DIR) $(1)/usr/lib/
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,libvorbis))