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.

59 lines
1.6 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:=taglib
  7. PKG_VERSION:=1.12-beta-1
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/taglib/taglib/tar.gz/v$(PKG_VERSION)?
  11. PKG_HASH:=d2a44be7ca8b7682b218affc9910dcfb027481f402f7c30bd2996392b2429ae4
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=LGPL-2.1-or-later
  14. PKG_LICENSE_FILES:=COPYING.LGPL
  15. PKG_CPE_ID:=cpe:/a:taglib:taglib
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/taglib
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=taglib
  23. URL:=https://github.com/taglib/taglib
  24. DEPENDS:=+libstdcpp
  25. BUILDONLY:=1
  26. endef
  27. define Package/taglib/description
  28. TagLib is a library for reading and editing the metadata of several
  29. popular audio formats. Currently it supports both ID3v1 and ID3v2 for
  30. MP3 files, Ogg Vorbis comments and ID3 tags in FLAC, MPC, Speex, WavPack,
  31. TrueAudio, WAV, AIFF, MP4, APE, DSF, DFF, and ASF files.
  32. endef
  33. CMAKE_OPTIONS += \
  34. -DBUILD_TESTS=OFF \
  35. -DBUILD_EXAMPLES=OFF \
  36. -DBUILD_BINDINGS=OFF \
  37. -DNO_ITUNES_HACKS=ON
  38. TARGET_CXXFLAGS += -flto
  39. define Build/InstallDev
  40. $(call Build/InstallDev/cmake,$(1))
  41. $(SED) '/^prefix=\|^exec_prefix=/s|/usr|$(STAGING_DIR)/usr|' $(1)/usr/bin/taglib-config
  42. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/taglib.pc
  43. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/taglib.pc
  44. $(INSTALL_DIR) $(2)/bin
  45. $(LN) ../../usr/bin/taglib-config $(2)/bin/taglib-config
  46. endef
  47. $(eval $(call BuildPackage,taglib))