1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 12:46:19 +00:00
Lakka-LibreELEC/packages/addons/addon-depends/vdr-plugins/vdr-plugin-ddci2/package.mk
Ian Leonard eeab3d92b4 addons: automated code cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-01-19 19:33:41 +00:00

34 lines
1.1 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="vdr-plugin-ddci2"
PKG_VERSION="05dd98824092859afd2aa7a4996c8f258affd975"
PKG_SHA256="b8ed2787e9140eb00a68397eaeb14862ba88a6e73480dc3220a098faffb14833"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/jasmin-j/vdr-plugin-ddci2"
PKG_URL="https://github.com/jasmin-j/vdr-plugin-ddci2/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain vdr"
PKG_NEED_UNPACK="$(get_pkg_directory vdr)"
PKG_LONGDESC="Support for stand alone CI by Digital Devices."
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
make \
LIBDIR="." \
LOCDIR="./locale" \
all
}
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}
${STRIP} libvdr-*.so*
}