Bug #546 ยป vdr-markad-0.0.8_svdrpport.diff
markad-0.0.8/command/markad-standalone.cpp 2011-02-04 15:33:17.000000000 +0100 | ||
---|---|---|
#include "markad-standalone.h"
|
||
#include "version.h"
|
||
#if VDRVERSNUM < 10715
|
||
#define SVDRPPORT 2001
|
||
#else
|
||
#define SVDRPPORT 6419
|
||
#endif
|
||
extern int sys_ioprio_set(int which, int who, int ioprio);
|
||
bool SYSLOG=false;
|
||
bool LOG2REC=false;
|
||
... | ... | |
}
|
||
else
|
||
{
|
||
config.svdrpport=2001;
|
||
config.svdrpport=SVDRPPORT;
|
||
}
|
||
atexit(freedir);
|
markad-0.0.8/command/Makefile 2011-02-04 18:01:08.000000000 +0100 | ||
---|---|---|
PKG-CONFIG ?= pkg-config
|
||
STRIP ?= strip
|
||
### Get VDR Versions Number
|
||
VDRDIR = $(shell grep ^VDRDIR ../plugin/Makefile | awk '{print $$3}' )
|
||
VDRVERSNUM = $(shell sed -ne '/define VDRVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/config.h)
|
||
### Includes and Defines (add further entries here):
|
||
PKG-LIBS += libavcodec libavutil
|
||
... | ... | |
DEFINES += -D_GNU_SOURCE
|
||
DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
|
||
DEFINES += -D__STDC_CONSTANT_MACROS -D__USE_XOPEN_EXTENDED
|
||
DEFINES += -DVDRVERSNUM=$(VDRVERSNUM)
|
||
ifdef WITH_OLD_FFMPEG_HEADERS
|
||
DEFINES += -DUSE_OLD_FFMPEG_HEADERS
|