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.8 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
  8. PKG_RELEASE:=$(AUTORELEASE)
  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:=b5a56f78a8bd962aaaec992b25a031f541b949b6eb30aa232bd6d5fa17cf8fa8
  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. include $(INCLUDE_DIR)/package.mk
  17. include ../../devel/ninja/ninja-cmake.mk
  18. define Package/taglib
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=taglib
  22. URL:=https://github.com/taglib/taglib
  23. DEPENDS:=+libstdcpp
  24. BUILDONLY:=1
  25. endef
  26. define Package/taglib/description
  27. TagLib is a library for reading and editing the metadata of several
  28. popular audio formats. Currently it supports both ID3v1 and ID3v2 for
  29. MP3 files, Ogg Vorbis comments and ID3 tags in FLAC, MPC, Speex, WavPack,
  30. TrueAudio, WAV, AIFF, MP4, APE, DSF, DFF, and ASF files.
  31. endef
  32. CMAKE_OPTIONS += \
  33. -DBUILD_TESTS=OFF \
  34. -DBUILD_EXAMPLES=OFF \
  35. -DBUILD_BINDINGS=OFF \
  36. -DNO_ITUNES_HACKS=ON
  37. TARGET_CXXFLAGS += -flto
  38. define Build/InstallDev
  39. $(call Build/InstallDev/cmake,$(1))
  40. $(SED) '/^prefix=\|^exec_prefix=/s|/usr|$(STAGING_DIR)/usr|' $(1)/usr/bin/taglib-config
  41. $(SED) '/^includedir=/s|/usr|$(STAGING_DIR)/usr|' $(1)/usr/bin/taglib-config
  42. $(SED) '/^libdir=/s|/usr|$(STAGING_DIR)/usr|' $(1)/usr/bin/taglib-config
  43. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/taglib.pc
  44. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/taglib.pc
  45. $(INSTALL_DIR) $(2)/bin
  46. $(LN) ../../usr/bin/taglib-config $(2)/bin/taglib-config
  47. endef
  48. $(eval $(call BuildPackage,taglib))