mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Fixes for Maintainer
This commit is contained in:
parent
74a2285af0
commit
4dbf2dcc84
67
Makefile
67
Makefile
@ -16,7 +16,7 @@
|
|||||||
# if CUVID is enabled the pluginname is softhdcuvid
|
# if CUVID is enabled the pluginname is softhdcuvid
|
||||||
# if DRM is enabled the pluginname is softhddrm
|
# if DRM is enabled the pluginname is softhddrm
|
||||||
VAAPI ?= 0
|
VAAPI ?= 0
|
||||||
CUVID ?= 1
|
CUVID ?= 0
|
||||||
|
|
||||||
# if you enable DRM then the plugin will only run without X server
|
# if you enable DRM then the plugin will only run without X server
|
||||||
# only valid for VAAPI
|
# only valid for VAAPI
|
||||||
@ -25,7 +25,7 @@ DRM ?= 0
|
|||||||
|
|
||||||
|
|
||||||
# use libplacebo - available for both decoders but not for DRM
|
# use libplacebo - available for both decoders but not for DRM
|
||||||
LIBPLACEBO ?= 0
|
LIBPLACEBO ?= 1
|
||||||
|
|
||||||
# use YADIF deint - only available with cuvid
|
# use YADIF deint - only available with cuvid
|
||||||
#YADIF=1
|
#YADIF=1
|
||||||
@ -35,6 +35,14 @@ LIBPLACEBO ?= 0
|
|||||||
CONFIG := #-DDEBUG # remove # to enable debug output
|
CONFIG := #-DDEBUG # remove # to enable debug output
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(VAAPI),0)
|
||||||
|
ifeq ($(CUVID),0)
|
||||||
|
ifeq ($(DRM),0)
|
||||||
|
$(error Please define a plugin in the Makefile)
|
||||||
|
exit 1;
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -119,7 +127,33 @@ APIVERSION = $(call PKGCFG,apiversion)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Parse softhddevice config
|
### Parse config
|
||||||
|
ifeq ($(VAAPI),1)
|
||||||
|
CONFIG += -DVAAPI
|
||||||
|
#LIBPLACEBO=1
|
||||||
|
PLUGIN = softhdvaapi
|
||||||
|
LIBS += -lEGL
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(DRM),1)
|
||||||
|
PLUGIN = softhddrm
|
||||||
|
CONFIG += -DUSE_DRM -DVAAPI
|
||||||
|
LIBPLACEBO=0
|
||||||
|
_CFLAGS += $(shell pkg-config --cflags libdrm)
|
||||||
|
LIBS += -lgbm -ldrm
|
||||||
|
LIBS += -lEGL
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CUVID),1)
|
||||||
|
CONFIG += -DUSE_PIP # PIP support
|
||||||
|
CONFIG += -DCUVID # enable CUVID decoder
|
||||||
|
LIBS += -lEGL -lGL
|
||||||
|
ifeq ($(YADIF),1)
|
||||||
|
CONFIG += -DYADIF # Yadif only with CUVID
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(ALSA),1)
|
ifeq ($(ALSA),1)
|
||||||
CONFIG += -DUSE_ALSA
|
CONFIG += -DUSE_ALSA
|
||||||
@ -148,37 +182,10 @@ _CFLAGS += $(shell pkg-config --cflags freetype2)
|
|||||||
LIBS += $(shell pkg-config --libs freetype2)
|
LIBS += $(shell pkg-config --libs freetype2)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(VAAPI),1)
|
|
||||||
CONFIG += -DVAAPI
|
|
||||||
#LIBPLACEBO=1
|
|
||||||
PLUGIN = softhdvaapi
|
|
||||||
LIBS += -lEGL
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(LIBPLACEBO),1)
|
ifeq ($(LIBPLACEBO),1)
|
||||||
CONFIG += -DPLACEBO
|
CONFIG += -DPLACEBO
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(DRM),1)
|
|
||||||
PLUGIN = softhddrm
|
|
||||||
CONFIG += -DUSE_DRM -DVAAPI
|
|
||||||
_CFLAGS += $(shell pkg-config --cflags libdrm)
|
|
||||||
LIBS += -lgbm -ldrm
|
|
||||||
LIBS += -lEGL
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(CUVID),1)
|
|
||||||
CONFIG += -DUSE_PIP # PIP support
|
|
||||||
CONFIG += -DCUVID # enable CUVID decoder
|
|
||||||
LIBS += -lEGL -lGL
|
|
||||||
ifeq ($(YADIF),1)
|
|
||||||
CONFIG += -DYADIF # Yadif only with CUVID
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ARCHIVE = $(PLUGIN)-$(VERSION)
|
ARCHIVE = $(PLUGIN)-$(VERSION)
|
||||||
PACKAGE = vdr-$(ARCHIVE)
|
PACKAGE = vdr-$(ARCHIVE)
|
||||||
|
Loading…
Reference in New Issue
Block a user