1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 # @ECLASS: kodi-addon.eclass
7 # @SUPPORTED_EAPIS: 4 5 6 7
8 # @BLURB: Helper for correct building and (importantly) installing Kodi addon packages.
10 # Provides a src_configure function for correct CMake configuration
14 inherit cmake-utils multilib
19 *) die "EAPI=${EAPI} is not supported" ;;
22 EXPORT_FUNCTIONS src_configure
24 # @FUNCTION: kodi-addon_src_configure
26 # Configure handling for Kodi addons
27 kodi-addon_src_configure() {
30 -DCMAKE_INSTALL_LIBDIR=${EPREFIX%/}/usr/$(get_libdir)/kodi
34 4|5|6) cmake-utils_src_configure ;;
35 7) cmake_src_configure ;;