diff options
author | horchi <vdr@jwendel.de> | 2019-11-28 13:33:41 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2019-11-28 13:33:41 +0100 |
commit | 42d5a8fee255c517c5e4d5cb200bff5a18654baf (patch) | |
tree | 9a440599fc296d5c278111ee31beffe1861e92e1 /Make.config | |
parent | f9c8dd36d36efa145806f7bef97b46382a5442f3 (diff) | |
download | vdr-plugin-epg2vdr-42d5a8fee255c517c5e4d5cb200bff5a18654baf.tar.gz vdr-plugin-epg2vdr-42d5a8fee255c517c5e4d5cb200bff5a18654baf.tar.bz2 |
2019-11-28: version 1.1.102 (horchi)\n - added: Support of python 3.8 (by Alexander Grothe)\n\n1.1.102
Diffstat (limited to 'Make.config')
-rw-r--r-- | Make.config | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Make.config b/Make.config index 85024f4..d1a9c52 100644 --- a/Make.config +++ b/Make.config @@ -19,6 +19,9 @@ PREFIX = /usr/local DEBUG = 1 #USE_CLANG = 1 +# set python interpreter +PYTHON ?= python + # ----------------------- # don't touch below ;) @@ -35,6 +38,17 @@ doLib = ar -rs USEPYTHON = 1 USEEPGS = 1 +ifdef USEPYTHON + ifeq ($(shell $(PYTHON) -c 'from __future__ import print_function; import sys; sys.exit(0) if sys.version_info[:2] < (3,8) else print(1)'), 1) + PYTHON_LIBS = $(shell $(PYTHON)-config --libs --embed) + else + PYTHON_LIBS = $(shell $(PYTHON)-config --libs) + endif + LIBS += $(PYTHON_LIBS) + BASELIBS += $(PYTHON_LIBS) + CFLAGS += $(shell python-config --includes) +endif + USES = -DVDR_PLUGIN -DUSEUUID -DUSEMD5 -DUSEJSON -DUSEGUNZIP -DPLUGIN_NAME_I18N='"$(PLUGIN)"' ifdef DEBUG |