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.

70 lines
2.0 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:=libvorbis
  7. PKG_VERSION:=1.3.6
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=http://downloads.xiph.org/releases/vorbis/
  11. PKG_HASH:=af00bb5a784e7c9e69f56823de4637c350643deedaf333d0fa86ecdba6fcb415
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_CPE_ID:=cpe:/a:xiph.org:libvorbis
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libvorbis
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=libvorbis
  23. URL:=http://xiph.org/vorbis/
  24. DEPENDS:=+libogg
  25. endef
  26. define Package/libvorbis/description
  27. Vorbis is a general purpose audio and music encoding format
  28. contemporary to MPEG-4's AAC and TwinVQ, the next generation beyond
  29. MPEG audio layer 3. Unlike the MPEG sponsored formats (and other
  30. proprietary formats such as RealAudio G2 and Windows' flavor of the
  31. month), the Vorbis CODEC specification belongs to the public domain.
  32. All the technical details are published and documented, and any
  33. software entity may make full use of the format without license
  34. fee, royalty or patent concerns.
  35. endef
  36. ifneq ($(findstring arm,$(CONFIG_ARCH)),)
  37. TARGET_CFLAGS += -flto
  38. TARGET_CXX_FLAGS += -flto
  39. TARGET_LDFLAGS += -flto
  40. endif
  41. CONFIGURE_ARGS+= \
  42. --disable-oggtest \
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/include/vorbis/
  45. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vorbis/* $(1)/usr/include/vorbis/
  46. $(INSTALL_DIR) $(1)/usr/lib/
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  48. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  49. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  50. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  51. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
  52. endef
  53. define Package/libvorbis/install
  54. $(INSTALL_DIR) $(1)/usr/lib/
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libvorbis))