mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-25 11:56:18 +00:00
39 lines
1.3 KiB
Makefile
39 lines
1.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="vdr-plugin-restfulapi"
|
|
PKG_VERSION="0.2.6.6"
|
|
PKG_SHA256="a392c8ac9da58bce06674208711a786209ce802e77f93b48d21e424fa79f5eba"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://github.com/yavdr/vdr-plugin-restfulapi"
|
|
PKG_URL="https://github.com/yavdr/${PKG_NAME}/archive/refs/tags/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain vdr cxxtools vdr-plugin-wirbelscan"
|
|
PKG_NEED_UNPACK="$(get_pkg_directory vdr) $(get_pkg_directory vdr-plugin-wirbelscan)"
|
|
PKG_LONGDESC="Allows to access many internals of the VDR via a restful API."
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
pre_build_target() {
|
|
cp $(get_build_dir vdr-plugin-wirbelscan)/wirbelscan_services.h ${PKG_BUILD}/wirbelscan/
|
|
}
|
|
|
|
make_target() {
|
|
VDR_DIR=$(get_build_dir vdr)
|
|
export PKG_CONFIG_PATH=${VDR_DIR}:${PKG_CONFIG_PATH}
|
|
export CPLUS_INCLUDE_PATH=${VDR_DIR}/include
|
|
|
|
make \
|
|
LIBDIR="." \
|
|
LOCDIR="./locale" \
|
|
all install-i18n \
|
|
USE_LIBMAGICKPLUSPLUS=0
|
|
}
|
|
|
|
post_make_target() {
|
|
VDR_DIR=$(get_build_dir vdr)
|
|
VDR_APIVERSION=$(sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$/\1/p' ${VDR_DIR}/config.h)
|
|
LIB_NAME=lib${PKG_NAME/-plugin/}
|
|
|
|
cp --remove-destination ${PKG_BUILD}/${LIB_NAME}.so ${PKG_BUILD}/${LIB_NAME}.so.${VDR_APIVERSION}
|
|
}
|