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.

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