kodi-addon.eclass 713 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # @ECLASS: kodi-addon.eclass
  4. # @MAINTAINER:
  5. # candrews@integralblue.com
  6. # @BLURB: Helper for correct building and (importantly) installing Kodi addon packages.
  7. # @DESCRIPTION:
  8. # Provides a src_configure function for correct CMake configuration
  9. inherit multilib cmake-utils
  10. case "${EAPI:-0}" in
  11. 4|5|6)
  12. EXPORT_FUNCTIONS src_configure
  13. ;;
  14. *) die "EAPI=${EAPI} is not supported" ;;
  15. esac
  16. # @FUNCTION: kodi-addon_src_configure
  17. # @DESCRIPTION:
  18. # Configure handling for Kodi addons
  19. kodi-addon_src_configure() {
  20. mycmakeargs+=(
  21. -DCMAKE_INSTALL_LIBDIR=$(get_libdir)/kodi
  22. )
  23. cmake-utils_src_configure
  24. }