Files
Arch-R/packages/multimedia/vdr-plugin-streamdev/package.mk

62 lines
2.1 KiB
Makefile
Raw Normal View History

2012-03-04 17:37:53 +02:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
2012-03-04 17:37:53 +02:00
#
# OpenELEC is free software: you can redistribute it and/or modify
2012-03-04 17:37:53 +02:00
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2012-03-04 17:37:53 +02:00
#
# OpenELEC is distributed in the hope that it will be useful,
2012-03-04 17:37:53 +02:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2012-03-04 17:37:53 +02:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2012-03-04 17:37:53 +02:00
################################################################################
PKG_NAME="vdr-plugin-streamdev"
PKG_VERSION="fc52e92"
2012-03-04 17:37:53 +02:00
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://projects.vdr-developer.org/projects/plg-streamdev"
2012-03-04 17:37:53 +02:00
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
PKG_DEPENDS_TARGET="toolchain vdr libressl"
2012-03-04 17:37:53 +02:00
PKG_PRIORITY="optional"
PKG_SECTION="multimedia"
PKG_SHORTDESC="TV"
PKG_LONGDESC="TV"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
2013-12-13 13:18:55 +02:00
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 \
2013-12-13 13:18:55 +02:00
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 $ROOT/$PKG_BUILD/server/${LIB_NAME}-server.so $ROOT/$PKG_BUILD/server/${LIB_NAME}-server.so.${VDR_APIVERSION}
cp --remove-destination $ROOT/$PKG_BUILD/client/${LIB_NAME}-client.so $ROOT/$PKG_BUILD/client/${LIB_NAME}-client.so.${VDR_APIVERSION}
$STRIP client/libvdr-*.so*
$STRIP server/libvdr-*.so*
2013-12-13 13:18:55 +02:00
}
makeinstall_target() {
: # installation not needed, done by create-addon script
}