summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-04-12 17:26:21 +0200
committerlouis <louis.braun@gmx.de>2015-04-12 17:26:21 +0200
commitfc54961f39e27c141d5b0764c22414117eaf2910 (patch)
treec2363dd96aadd7729b3981c558793a33d3c1fd58
parentb2ae6071fcf736178bb85dee69c7cad954fc9261 (diff)
downloadvdr-plugin-weatherforecast-fc54961f39e27c141d5b0764c22414117eaf2910.tar.gz
vdr-plugin-weatherforecast-fc54961f39e27c141d5b0764c22414117eaf2910.tar.bz2
adapted makefile for LCLBLD
-rw-r--r--HISTORY4
-rw-r--r--Makefile16
2 files changed, 20 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 03f5a0e..9eacbd4 100644
--- a/HISTORY
+++ b/HISTORY
@@ -19,3 +19,7 @@ Version 0.0.3
Version 0.1.0
+- adapted makefile for LCLBLD
+
+Version 0.1.1
+
diff --git a/Makefile b/Makefile
index 7e4b9d0..35ac845 100644
--- a/Makefile
+++ b/Makefile
@@ -54,10 +54,26 @@ DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
LIBS += $(shell pkg-config --libs libcurl)
LIBS += $(shell pkg-config --cflags --libs jansson)
+ifdef LCLBLD
+
+SKINDESIGNER_PATH = $(shell pwd)/../skindesigner
+LIBSKINDESIGNERAPI_PATH = $(SKINDESIGNER_PATH)/libskindesignerapi
+
+# make sure the lib and pkg-config file exists
+DUMMY:=$(shell $(MAKE) -C $(LIBSKINDESIGNERAPI_PATH) LCLBLD=$(LCLBLD))
+
+INCLUDES += -I$(SKINDESIGNER_PATH)
+LIBS += -L$(LIBSKINDESIGNERAPI_PATH) $(shell pkg-config --libs $(LIBSKINDESIGNERAPI_PATH)/libskindesignerapi.pc)
+DEFINES += -DLIBSKINDESIGNERAPIVERSION='"$(shell pkg-config --modversion $(LIBSKINDESIGNERAPI_PATH)/libskindesignerapi.pc)"'
+
+else
+
INCLUDES += $(shell pkg-config --cflags libskindesignerapi)
LIBS += $(shell pkg-config --libs libskindesignerapi)
DEFINES += -DLIBSKINDESIGNERAPIVERSION='"$(shell pkg-config --modversion libskindesignerapi)"'
+endif
+
### The object files (add further files here):
OBJS = $(PLUGIN).o \