mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
Fix CMAKE_INSTALL_LIBDIR warning, see: https://github.com/xbmc/xbmc/blob/18.3-Leia/cmake/scripts/common/AddonHelpers.cmake#L308 Signed-off-by: Craig Andrews <candrews@gentoo.org>
36 lines
770 B
Bash
36 lines
770 B
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# @ECLASS: kodi-addon.eclass
|
|
# @MAINTAINER:
|
|
# candrews@gentoo.org
|
|
# @SUPPORTED_EAPIS: 4 5 6 7
|
|
# @BLURB: Helper for correct building and (importantly) installing Kodi addon packages.
|
|
# @DESCRIPTION:
|
|
# Provides a src_configure function for correct CMake configuration
|
|
|
|
inherit cmake-utils
|
|
|
|
case "${EAPI:-0}" in
|
|
4|5|6)
|
|
inherit multilib
|
|
;;
|
|
7)
|
|
;;
|
|
*) die "EAPI=${EAPI} is not supported" ;;
|
|
esac
|
|
|
|
EXPORT_FUNCTIONS src_configure
|
|
|
|
# @FUNCTION: kodi-addon_src_configure
|
|
# @DESCRIPTION:
|
|
# Configure handling for Kodi addons
|
|
kodi-addon_src_configure() {
|
|
|
|
mycmakeargs+=(
|
|
-DCMAKE_INSTALL_LIBDIR=${EPREFIX%/}/usr/$(get_libdir)/kodi
|
|
)
|
|
|
|
cmake-utils_src_configure
|
|
}
|