diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 480994b5..6b199f25 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -534,6 +534,8 @@ Dennis Noordsij Steffen Barszus for reporting a bug in switching audio tracks in 'Transfer Mode' on the primary DVB device + for making the program use the values of VIDEODIR and PLUGINDIR defined in Makefile + or Makefile.config as defaults Peter Seyringer for reporting a bug in saving the polarization parameter of channels that have a diff --git a/HISTORY b/HISTORY index 7f2fb871..14d921e0 100644 --- a/HISTORY +++ b/HISTORY @@ -2279,3 +2279,5 @@ Video Disk Recorder Revision History CA recording (thanks to Emil Naepflein). - Fixed a possible crash in case a VFAT file system is used without compiling VDR with VFAT=1 (thanks to Ernst Fürst for reporting this one). +- Now the program uses the values of VIDEODIR and PLUGINDIR defined in Makefile + or Makefile.config as defaults (thanks to Steffen Barszus). diff --git a/Make.config.template b/Make.config.template index 774abbf7..ff5946ff 100644 --- a/Make.config.template +++ b/Make.config.template @@ -6,7 +6,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: Make.config.template 1.1 2002/11/01 14:05:36 kls Exp $ +# $Id: Make.config.template 1.2 2003/08/02 14:25:53 kls Exp $ ### The C compiler and options: @@ -22,4 +22,5 @@ DVBDIR = ../DVB MANDIR = /usr/local/man BINDIR = /usr/local/bin +PLUGINDIR= ./PLUGINS VIDEODIR = /video diff --git a/Makefile b/Makefile index efeed0de..f27fb410 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: Makefile 1.56 2003/01/06 12:28:09 kls Exp $ +# $Id: Makefile 1.57 2003/08/02 14:27:21 kls Exp $ .DELETE_ON_ERROR: @@ -49,6 +49,9 @@ DEFINES += -DREMOTE_$(REMOTE) DEFINES += -D_GNU_SOURCE +DEFINES += -DVIDEODIR=\"$(VIDEODIR)\" +DEFINES += -DPLUGINDIR=\"$(PLUGINDIR)/lib\" + ifdef DEBUG_OSD DEFINES += -DDEBUG_OSD NCURSESLIB = -lncurses diff --git a/vdr.c b/vdr.c index e51d9508..16e8bdd4 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.161 2003/06/15 14:35:05 kls Exp $ + * $Id: vdr.c 1.162 2003/08/02 14:01:32 kls Exp $ */ #include @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) #define DEFAULTSVDRPPORT 2001 #define DEFAULTWATCHDOG 0 // seconds -#define DEFAULTPLUGINDIR "./PLUGINS/lib" +#define DEFAULTPLUGINDIR PLUGINDIR int SVDRPport = DEFAULTSVDRPPORT; const char *AudioCommand = NULL; diff --git a/videodir.c b/videodir.c index 4078fdff..94e7141a 100644 --- a/videodir.c +++ b/videodir.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: videodir.c 1.9 2002/08/11 13:31:02 kls Exp $ + * $Id: videodir.c 1.10 2003/08/02 13:43:28 kls Exp $ */ #include "videodir.h" @@ -18,7 +18,7 @@ #include #include "tools.h" -const char *VideoDirectory = "/video"; +const char *VideoDirectory = VIDEODIR; class cVideoDirectory { private: