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.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. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.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. CMAKE_OPTIONS += \
  37. -DBUILD_SHARED_LIBS=ON
  38. ifneq ($(findstring arm,$(CONFIG_ARCH)),)
  39. TARGET_CFLAGS += -flto
  40. TARGET_CXX_FLAGS += -flto
  41. TARGET_LDFLAGS += -flto
  42. endif
  43. define Build/InstallDev
  44. $(call Build/InstallDev/cmake,$(1))
  45. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbisenc.pc
  46. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbisenc.pc
  47. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbisfile.pc
  48. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbisfile.pc
  49. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbis.pc
  50. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbis.pc
  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))