Feature #53 » vdr-plugin-dxr3-Makefile.diff
vdr-plugin-dxr3-Makefile/Makefile 2009-01-11 09:09:13.000000000 +0100 | ||
---|---|---|
LIBDIR = ../../lib
|
||
TMPDIR = /tmp
|
||
FFMDIR = /usr/local/include/ffmpeg
|
||
FFMLIB = /usr/local/lib/ffmpeg
|
||
EM8300 = /usr/include
|
||
### Allow user defined options to overwrite defaults:
|
||
... | ... | |
### Includes and Defines (add further entries here):
|
||
INCLUDES += -I$(VDRDIR)/include -I$(FFMDIR) -I$(FFMDIR)/libavcodec -I$(EM8300)
|
||
LIBS = -L$(FFMDIR)/libavcodec -lavcodec
|
||
ifneq ($(shell which pkg-config),)
|
||
ifneq ($(shell pkg-config --silence-errors --libs libavcodec),)
|
||
LIBS += $(shell pkg-config --silence-errors --libs libavcodec)
|
||
INCLUDES += $(shell pkg-config --silence-errors --cflags libavcodec)
|
||
ifneq ($(shell find $(shell pkg-config --cflags libavcodec|sed 's/^-I//') -type d -name "libavcodec" -print),)
|
||
INCLUDES += $(shell echo "-I$(shell find $(shell pkg-config --cflags libavcodec|sed 's/^-I//') -type d -name "libavcodec" -print)")
|
||
endif
|
||
endif
|
||
else
|
||
LIBS += -L$(FFMLIB) -lavcodec
|
||
INCLUDES += -I$(FFMDIR) -I$(FFMDIR)/libavcodec
|
||
endif
|
||
|
||
INCLUDES += -I$(VDRDIR)/include -I$(EM8300)
|
||
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
|
||
DEFINES += -D_GNU_SOURCE
|
||