mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-07 11:28:20 +00:00
36 lines
1.3 KiB
Makefile
36 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-satip"
|
|
PKG_VERSION="20240224"
|
|
PKG_SHA256="0b288a5a7b05924dbf479e95aee83ada4ea640539a563564dab83193a3fa65c9"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://vdr-projects.github.io/"
|
|
PKG_URL="https://github.com/wirbel-at-vdr-portal/vdr-plugin-satip/archive/${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain vdr curl librepfunc tinyxml"
|
|
PKG_NEED_UNPACK="$(get_pkg_directory vdr)"
|
|
PKG_LONGDESC="This is an SAT>IP plugin for the Video Disk Recorder (VDR)."
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
make_target() {
|
|
VDR_DIR=$(get_build_dir vdr)
|
|
export PKG_CONFIG_PATH=${VDR_DIR}:${PKG_CONFIG_PATH}
|
|
export CPLUS_INCLUDE_PATH=${VDR_DIR}/include:$(get_install_dir librepfunc)/usr/include
|
|
export LDFLAGS+=" -L$(get_install_dir librepfunc)/usr/lib"
|
|
|
|
make \
|
|
SATIP_USE_TINYXML=1 \
|
|
LIBDIR="." \
|
|
LOCDIR="./locale" \
|
|
all install-i18n
|
|
}
|
|
|
|
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}
|
|
}
|