1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 # @ECLASS: kodi-addon.eclass
7 # @BLURB: Helper for correct building and (importantly) installing Kodi addon packages.
9 # Provides a src_configure function for correct CMake configuration
11 inherit multilib cmake-utils
15 EXPORT_FUNCTIONS src_configure
17 *) die "EAPI=${EAPI} is not supported" ;;
20 # @FUNCTION: kodi-addon_src_configure
22 # Configure handling for Kodi addons
23 kodi-addon_src_configure() {
26 -DCMAKE_INSTALL_LIBDIR=$(get_libdir)/kodi
29 cmake-utils_src_configure