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.

67 lines
2.1 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.7
  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:=b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b
  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. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.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. CMAKE_OPTIONS += \
  36. -DBUILD_SHARED_LIBS=ON
  37. ifneq ($(findstring arm,$(CONFIG_ARCH)),)
  38. TARGET_CFLAGS += -flto
  39. TARGET_CXX_FLAGS += -flto
  40. TARGET_LDFLAGS += -flto
  41. endif
  42. define Build/InstallDev
  43. $(call Build/InstallDev/cmake,$(1))
  44. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbisenc.pc
  45. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbisenc.pc
  46. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbisfile.pc
  47. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbisfile.pc
  48. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbis.pc
  49. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbis.pc
  50. endef
  51. define Package/libvorbis/install
  52. $(INSTALL_DIR) $(1)/usr/lib/
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libvorbis))