#! /bin/sh /usr/share/dpatch/dpatch-run ## 01_fix-PLUGIN-definition.dpatch by Thomas Günther ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fixes compilation with VDR >= 1.7.13. @DPATCH@ --- image-0.3.0/Makefile +++ image-0.3.0/Makefile @@ -20,6 +20,12 @@ #FFMDIR = ../../../../ffmpeg +# The official name of this plugin. +# This name will be used in the '-P...' option of VDR to load the plugin. +# By default the main source file also carries this name. +# +PLUGIN = image + ### The C++ compiler and options: CXX ?= g++ @@ -44,12 +50,6 @@ -include $(VDRDIR)/Make.config -# The official name of this plugin. -# This name will be used in the '-P...' option of VDR to load the plugin. -# By default the main source file also carries this name. -# -PLUGIN = image - ### The version number of this plugin (taken from the main source file): VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') @@ -182,7 +182,7 @@ @for i in $(SUBDIRS) ;\ do \ ( cd $$i;\ - $(MAKE) all;\ + $(MAKE) all PLUGIN=$(PLUGIN);\ ) \ || exit 1;\ done