summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-graphtft
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-graphtft
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-graphtft')
-rw-r--r--media-plugins/vdr-graphtft/Manifest12
-rw-r--r--media-plugins/vdr-graphtft/files/confd54
-rw-r--r--media-plugins/vdr-graphtft/files/graphtft-fe33
-rw-r--r--media-plugins/vdr-graphtft/files/rc-addon.sh13
-rw-r--r--media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_gcc-4.4.x.diff22
-rw-r--r--media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_gentoo.diff139
-rw-r--r--media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_makefile.diff67
-rw-r--r--media-plugins/vdr-graphtft/metadata.xml16
-rw-r--r--media-plugins/vdr-graphtft/vdr-graphtft-0.3.7-r1.ebuild107
-rw-r--r--media-plugins/vdr-graphtft/vdr-graphtft-0.3.7.ebuild101
10 files changed, 564 insertions, 0 deletions
diff --git a/media-plugins/vdr-graphtft/Manifest b/media-plugins/vdr-graphtft/Manifest
new file mode 100644
index 000000000000..68ebb0a9fcbb
--- /dev/null
+++ b/media-plugins/vdr-graphtft/Manifest
@@ -0,0 +1,12 @@
+AUX confd 1117 SHA256 10047512500d94d61977c04354c4a2fb6231f4f611974e3a76bed2ae435583a1 SHA512 16e98702d8488c644b7f278bb0fbaab54fb1cd568dc85d886192b8947a203b7237cd99f6966787dc9abb96f4220930203f3e55faabed751d8e84dbcf587ec80e WHIRLPOOL 7eb994ec97fbd993b0b6a854231ce8260a4ba7cfeb29cfaa9d0c31f4eca4ab3d0cff8bb95a2839e20e1e2462504d6c30e879d4d41ddc707127d88b421e5e0c31
+AUX graphtft-fe 996 SHA256 751f8e7197f59efdc9ea5020f2da99b2ffd14c729a54b63d1ce942b073eecfb5 SHA512 3d1cecca32d6e34a6f23a16ac5fd2e07ed0f98256933ea4fd4ca944beb0ad75984daa8f5a865b6e3d6f74cd9f8a9af9204ee7d1719b973d908daa49af68115f5 WHIRLPOOL 48034d3d01004e9916f11b1c9aa087edcf84deb870c79352f28f721b1ecc96a32d9a0381e7240ceee9eca2b1b87b1dd4ec5e17dad3e4bb6a9df3784693d55315
+AUX rc-addon.sh 225 SHA256 4190d81023c8e214bbaa0e8e72bd0998226993ccface353dc99768e8e3374fb9 SHA512 96e6226b37fe63b992257ae82970ebd1141477eef20c70d755d28a0c89b540a0a010903793511b249a0cec3e19771b60fb6a279ca1b134f655e6a7c636ff74a6 WHIRLPOOL c1ec061694271dd492d769f3a7fa87bc28ae747ea11fe2455fd4413aeb16e7451a9feac2596ce614eeeb752bc0b56c82d4315c6d2ff82b8bbf425701d73904ef
+AUX vdr-graphtft-0.3.7_gcc-4.4.x.diff 764 SHA256 eef74d7d0c866aa22f2755ba850d2b2f5fb6739f7d9d1a09850dedc324948545 SHA512 bff4b655a4eeee4c4ecdf0f5e4efc259bd2e740a4ee64b8536ad668b2e1be5b607279173c01b1dc36a0636011d0d774fd3b3f28a40efa779efb342ef2c081619 WHIRLPOOL 341838fdbf4519a14a7315249669f20bb02acd0a13633a0fdb7b27f5f14cac40c8bdc42658d2f6be0747ecc0ba12ee659bc4d6cc9d9f07f27e502df099f0471e
+AUX vdr-graphtft-0.3.7_gentoo.diff 4673 SHA256 a4da681ef44faa45cb6a4b5657443dee90a6f0707fd9d263c2062e5ba4f266b0 SHA512 1828a1e463eef00eb0097188988b8ab620c766b27c44fbfedbd4209d1c668b6c6e6b0b86c4d16c485fdc5e16300e2c03c323f6dc2e941c9338e5a866b6d47a6a WHIRLPOOL fb89ee44a3bd2ca116da5b58d4fdd8614b995b8e0dde58d8fc4c76010cd0cab24757dfbd387d607d4e731da0213608b1cfbf02e8d6d03b3a4cb3568fda44f046
+AUX vdr-graphtft-0.3.7_makefile.diff 2202 SHA256 76ea0ceb3967c9c83a299c4231147c57dd1be40cfd390f60456b13ebe56912d0 SHA512 9c8138658a18162436cf80173436c05967c4626decb640d0c304706e30b7771d1784b436dbf281ca934c7fe41b8b1edc102d05bd3d2ddd3875aefe5c33bc2ece WHIRLPOOL 97f8561a1367ce51a8be6ac9b17c1fae391c39f4f24acd9f6d60a966872df3d0155fdf5552f90b8be63a25ab6d9c370011b13f51b752ea4ba07ae55b834511a3
+DIST vdr-graphtft-0.3.7.tar.bz2 147486 SHA256 37c58c0a3051d4ac77bc12f59213be09134e14b9028bd886977b260e2c98da45 SHA512 9f5d8ea490c95bde42071d5010bf4dd339ee99271f9596d2d14575882f8f4101f0877c52373268a9d04d52be328018b2a7be1685c088742b252de44b9c3a387d WHIRLPOOL d03e144877adb3c31f48d92091d6a0fa2d7af00d706b92f6bde90f62fd990181beeabaadf77a3e879e5568c50f3b96295d892e50529f0e7361ef1579923a5c4c
+EBUILD vdr-graphtft-0.3.7-r1.ebuild 2701 SHA256 fce8bfe1122a2cde494966f169acf28fc539e2531a2f60cb2fb760f0f66cec77 SHA512 07df98b7de7605b272cf3d6408aa28b7e75c679677909d14a2c86aae3a0d16617e8760ec0d93cdc532ab2e8d77966a01f1caefb1a27514d0c163eeda55a3ab5d WHIRLPOOL 72db765d5fa9aab6e04e796622ff51c3a3ad8de2aecf486017effa4b1e8f4af0aa9aec59c9d1f87218e9f263cc494f4a6b0e6054d4ffc90707405d8e971faf1c
+EBUILD vdr-graphtft-0.3.7.ebuild 2505 SHA256 335544c14343e9f6e84b50f65402140bd9aae6de32cbf2acb5ebe6e1a7303b89 SHA512 1d45855912fbf54caec9df0d9b26e107e8f6937d2baef44d87ff85176ad3e27523ab2bae7cd8772cd50b98a7a99d1ace31b25bf1a15de6d15a579adb04d9766d WHIRLPOOL 52e5edefa0ff3fb4afca21d0837d1e266e5e234d8d443665d86cebf3876e73e1248181c809eb236e4383c0e9ab0b86f700262231725aa9fb179ed7dbb4713c0c
+MISC ChangeLog 3418 SHA256 1ae87b0132031c1d74c399c0d95137d02ec6cf7487d96fe9008ce352af9e1e7f SHA512 8c3ffd846f50617b89e6d1f54e91cf074fd638fcde3de50e6690735048fbe809f155be0947d10965a63e9585162f1215227dc6e4f745480407756b9ccf0778e8 WHIRLPOOL 4ac29db590501371701522d88d1bff2a6bf46be361cda19de1716437f61b29eb34c5d3ac96a1d2ac37491aa9eed453705a6c0582d0141c6181d2a95bd8458a25
+MISC ChangeLog-2015 9013 SHA256 d995fb95d5505375099da4934572f3905a8079313c0af56ec8cceec8893cc33b SHA512 503ffc30e03f770a1d419f34e9affedbc683cde6b46aba273ba7eba2a2a8d9f453b39311afa8522d3818f14d312f3ae8f49ce4485eb5a09fb850669277326427 WHIRLPOOL 38fe59e5dd90c5f78c13d07328cf9f5de11c1fff75e2e60a50617cc070c1263a41a3356a218787f7ceec088270e79688f19a1e679370eaf18d6e92e03dbc77fd
+MISC metadata.xml 648 SHA256 1a69c39dc52ffce2aebaafc46189afae3b4ead03bfbcb3be1952573cc858fdcd SHA512 f047c49c89b6b7eea740d6bacd73b942ffd70e5b427f4e158e83b4759c45af2e2a20ca9815601ddabb3b0d2aeddf6c65046798d9ee3f0353d7665f97bb32f72d WHIRLPOOL 2178c73b0bd8550f737b572bcdc8a2b5484550a29b3ffc44ef25a0f58305c2ee08390558bd66dc867f9befb31d2a2d8094d2b31ff10f7a04cf79f946b8593285
diff --git a/media-plugins/vdr-graphtft/files/confd b/media-plugins/vdr-graphtft/files/confd
new file mode 100644
index 000000000000..56d4b4627f12
--- /dev/null
+++ b/media-plugins/vdr-graphtft/files/confd
@@ -0,0 +1,54 @@
+# /etc/conf.d/vdr.graphtft
+
+####### Global config for Graphtft ####################
+
+#
+# set the DIR of the Framebuffer Device
+# allowed values: device_names directFB none
+# default: /dev/fb0
+#GRAPHTFT_DEVICE=/dev/fb0
+
+
+###### Configuration for graphtft-fe ##################
+#
+# set GRAPHTFT_DEVICE="" to none
+
+# set your tft display
+# no default values
+# default: not set, exemple
+#GRAPHTFT_DISPLAY=":0.1"
+
+# switch to user
+# default user root ; depand on your x configuration
+#
+#GRAPHTFT_USER="root"
+
+# set the width of your display
+# allowed values:
+# default: 800
+#GRAPHTFT_SCREEN_WIDTH="800"
+
+# set the height of your display
+# allowed values:
+# default: 480
+#GRAPHTFT_SCREEN_HEIGHT="480"
+
+# run output without windowsframe
+# allowed values: yes no
+# default: yes
+#GRAPHTFT_NO_FRAME="yes"
+
+# set the IP to your X Display
+# allowed values: ip address
+# default: localhost IP
+#GRAPHTFT_HOST="127.0.0.1"
+
+# set the port to your X Display
+# allowed values: portnumber
+# default: 2039
+#GRAPHTFT_PORT="2039"
+
+# set the logevel for graphtft-fe
+# allowed values: 0 1 2 3
+# default: 0
+#GRAPHTFT_LOG_LEVEL="0"
diff --git a/media-plugins/vdr-graphtft/files/graphtft-fe b/media-plugins/vdr-graphtft/files/graphtft-fe
new file mode 100644
index 000000000000..5803b5728ed9
--- /dev/null
+++ b/media-plugins/vdr-graphtft/files/graphtft-fe
@@ -0,0 +1,33 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+. /etc/conf.d/vdr.graphtft
+
+export DISPLAY=${GRAPHTFT_DISPLAY}
+
+: ${GRAPHTFT_USER:=root}
+
+OPTIONS="-h ${GRAPHTFT_HOST:=127.0.0.1}"
+OPTIONS="${OPTIONS} -p ${GRAPHTFT_PORT:=2039}"
+OPTIONS="${OPTIONS} -e ${GRAPHTFT_LOG_LEVEL:=0}"
+OPTIONS="${OPTIONS} -W ${GRAPHTFT_SCREEN_WIDTH:=800}"
+OPTIONS="${OPTIONS} -H ${GRAPHTFT_SCREEN_HEIGHT:=480}"
+[ "${GRAPHTFT_NO_FRAME}" = "yes" ] && OPTIONS="${OPTIONS} -n"
+[ "${GRAPHTFT_RESIZE_IMAGE}" = "yes" ] && OPTIONS="${OPTIONS} -r"
+
+# -d <file> dump each image to file (default off)
+
+start() {
+ ebegin "starting graphtft-fe ..."
+ start-stop-daemon --make-pidfile --background --pidfile /var/run/graphtft-fe.pid \
+ --chuid ${GRAPHTFT_USER} --start --exec /usr/bin/graphtft-fe -- ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "stopping graphtft ..."
+ start-stop-daemon --stop --pidfile /var/run/graphtft-fe.pid
+ eend $?
+}
+
diff --git a/media-plugins/vdr-graphtft/files/rc-addon.sh b/media-plugins/vdr-graphtft/files/rc-addon.sh
new file mode 100644
index 000000000000..03fa4efc55be
--- /dev/null
+++ b/media-plugins/vdr-graphtft/files/rc-addon.sh
@@ -0,0 +1,13 @@
+#
+# rc-addon-script for plugin graphtft & graphtft-fe
+#
+# Joerg Bornkessel <hd_brummy@g.o>
+
+. /etc/conf.d/vdr.graphtft
+
+plugin_pre_vdr_start() {
+
+ : ${GRAPHTFT_DEVICE:=/dev/fb0}
+
+ add_plugin_param "-d ${GRAPHTFT_DEVICE}"
+}
diff --git a/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_gcc-4.4.x.diff b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_gcc-4.4.x.diff
new file mode 100644
index 000000000000..4e32c187ac10
--- /dev/null
+++ b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_gcc-4.4.x.diff
@@ -0,0 +1,22 @@
+diff -Naur graphtft-30.orig/graphtft-fe/common.cc graphtft-30/graphtft-fe/common.cc
+--- graphtft-30.orig/graphtft-fe/common.cc 2012-03-12 02:10:38.000000000 +0100
++++ graphtft-30/graphtft-fe/common.cc 2012-03-12 02:30:16.000000000 +0100
+@@ -11,6 +11,7 @@
+ #include <time.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <stdint.h>
+
+ #include <graphtft.hpp>
+
+diff -Naur graphtft-30.orig/graphtft-fe/graphtft.hpp graphtft-30/graphtft-fe/graphtft.hpp
+--- graphtft-30.orig/graphtft-fe/graphtft.hpp 2012-03-12 02:10:38.000000000 +0100
++++ graphtft-30/graphtft-fe/graphtft.hpp 2012-03-12 02:30:57.000000000 +0100
+@@ -16,6 +16,7 @@
+ #include <X11/Xlib.h>
+ #include <Imlib2.h>
+ #include <string.h>
++#include <stdint.h>
+
+ #define __FRONTEND
+ #include <../common.h>
diff --git a/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_gentoo.diff b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_gentoo.diff
new file mode 100644
index 000000000000..ea0e7ad3d748
--- /dev/null
+++ b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_gentoo.diff
@@ -0,0 +1,139 @@
+diff -Naur graphtft-30.orig/dfbrenderer/dfbrenderer.c graphtft-30/dfbrenderer/dfbrenderer.c
+--- graphtft-30.orig/dfbrenderer/dfbrenderer.c 2012-03-12 03:27:38.000000000 +0100
++++ graphtft-30/dfbrenderer/dfbrenderer.c 2012-03-12 03:29:35.000000000 +0100
+@@ -257,7 +257,7 @@
+ {
+ // make path relative to the themes directory
+
+- asprintf(&path, "%s/graphTFT/themes/%s/%s",
++ asprintf(&path, "%s/themes/%s/%s",
+ confPath.c_str(), themePath.c_str(), p.c_str());
+ }
+ else
+@@ -281,7 +281,7 @@
+
+ // at least add the default path
+
+- asprintf(&path, "%s/graphTFT/fonts/", confPath.c_str());
++ asprintf(&path, "%s/fonts/", confPath.c_str());
+ tell(0, "Info: Adding font path '%s'", path);
+ fontPaths[count] = path;
+ free(path);
+@@ -483,7 +483,7 @@
+ else
+ {
+ const char* tmp = themePath.c_str();
+- asprintf(&fpath, "%s/graphTFT/themes/%s/%s", confPath.c_str(), tmp, fname);
++ asprintf(&fpath, "%s/themes/%s/%s", confPath.c_str(), tmp, fname);
+ }
+
+ tell(4,"creating imageprovider for %s", fpath);
+@@ -561,7 +561,7 @@
+ else
+ {
+ const char* tmp = themePath.c_str();
+- asprintf(&fpath, "%s/graphTFT/themes/%s/%s", confPath.c_str(), tmp, fname);
++ asprintf(&fpath, "%s/themes/%s/%s", confPath.c_str(), tmp, fname);
+ }
+
+ tell(4,"creating imageprovider for %s", fpath);
+diff -Naur graphtft-30.orig/dspitems.c graphtft-30/dspitems.c
+--- graphtft-30.orig/dspitems.c 2012-03-12 03:27:38.000000000 +0100
++++ graphtft-30/dspitems.c 2012-03-12 03:30:16.000000000 +0100
+@@ -107,7 +107,7 @@
+ if (p[0] != '/')
+ {
+ p = string(GraphTFTSetup.PluginConfPath)
+- + "/graphTFT/themes/"
++ + "/themes/"
+ + string(Thms::theTheme->getDir())
+ + "/" + p;
+ }
+diff -Naur graphtft-30.orig/graphtft.c graphtft-30/graphtft.c
+--- graphtft-30.orig/graphtft.c 2012-03-12 03:27:38.000000000 +0100
++++ graphtft-30/graphtft.c 2012-03-12 03:32:48.000000000 +0100
+@@ -22,6 +22,8 @@
+ #include <graphtft.h>
+ #include <span.h>
+
++#define DATA_DIR "/usr/share/vdr/graphTFT"
++
+ //***************************************************************************
+ // cGraphTFTMenu
+ //***************************************************************************
+@@ -300,13 +302,13 @@
+
+ // try to get the config dir
+
+- if (!ConfigDirectory())
+- return false;
++// if (!ConfigDirectory())
++// return false;
+
+ // init
+
+ GraphTFTSetup.setClient(this);
+- GraphTFTSetup.PluginConfPath = strdup(ConfigDirectory());
++ GraphTFTSetup.PluginConfPath = strdup(DATA_DIR);
+
+ #if APIVERSNUM < 10507
+ RegisterI18n(Phrases);
+@@ -322,7 +324,7 @@
+ if (loadThemes() != 0)
+ return false;
+
+- if (display->Init(_dev, ConfigDirectory(), port) != success)
++ if (display->Init(_dev, DATA_DIR, port) != success)
+ {
+ tell(0, "Error: Initializing graphTFT device faild, aborting!");
+
+@@ -355,8 +357,8 @@
+
+ // look for the themes in the config directory
+
+- asprintf(&buffer, "find %s/graphTFT/themes -follow -type f -name '*.theme' | sort",
+- ConfigDirectory());
++ asprintf(&buffer, "find %s/themes -follow -type f -name '*.theme' | sort",
++ DATA_DIR);
+
+ p = popen(buffer, "r");
+
+diff -Naur graphtft-30.orig/imlibrenderer/imlibrenderer.c graphtft-30/imlibrenderer/imlibrenderer.c
+--- graphtft-30.orig/imlibrenderer/imlibrenderer.c 2012-03-12 03:27:38.000000000 +0100
++++ graphtft-30/imlibrenderer/imlibrenderer.c 2012-03-12 03:33:54.000000000 +0100
+@@ -123,7 +123,7 @@
+ {
+ // make path relative to the themes directory
+
+- asprintf(&path, "%s/graphTFT/themes/%s/%s",
++ asprintf(&path, "%s/themes/%s/%s",
+ confPath.c_str(), themePath.c_str(), p.c_str());
+ }
+ else
+@@ -146,7 +146,7 @@
+
+ // at least add the default path
+
+- asprintf(&path, "%s/graphTFT/fonts/", confPath.c_str());
++ asprintf(&path, "%s/fonts/", confPath.c_str());
+ tell(0, "Info: Adding font path '%s'", path);
+ imlib_add_path_to_font_path(path);
+ free(path);
+@@ -217,7 +217,7 @@
+ if (fname[0] == '/')
+ path << fname;
+ else
+- path << confPath << "/graphTFT/themes/" << themePath << "/" << fname;
++ path << confPath << "/themes/" << themePath << "/" << fname;
+
+ if (!fileExists(path.str().c_str()))
+ {
+@@ -291,7 +291,7 @@
+ if (fname[0] == '/')
+ path << fname;
+ else
+- path << confPath << "/graphTFT/themes/" << themePath << "/" << fname;
++ path << confPath << "/themes/" << themePath << "/" << fname;
+
+ if (!fileExists(path.str().c_str()))
+ {
diff --git a/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_makefile.diff b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_makefile.diff
new file mode 100644
index 000000000000..f638be630069
--- /dev/null
+++ b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.3.7_makefile.diff
@@ -0,0 +1,67 @@
+Joerg Bornkessel <hd_brummy@g.o> 22 Okt 2009
+Matthias Schwarzott <zzam@g.o> 23 Okt 2009
+diff -Naur graphtft-24.orig/Makefile graphtft-24/Makefile
+--- graphtft-24.orig/Makefile 2009-10-21 21:53:56.000000000 +0200
++++ graphtft-24/Makefile 2009-10-21 21:57:24.000000000 +0200
+@@ -158,10 +158,10 @@
+ DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+
+ ifdef HAVE_IMLIB
+- LIBS += `imlib2-config --libs`
++ LIBS += $(shell imlib2-config --libs)
+
+ ifdef HAVE_IMAGE_MAGICK
+- LIBS += `Magick++-config --libs`
++ LIBS += $(shell Magick++-config --libs)
+ DEFINES += -DHAVE_IMAGE_MAGICK
+ endif
+
+@@ -170,8 +170,8 @@
+ endif
+
+ ifdef HAVE_GTOP
+- GTOP_INC = `pkg-config libgtop-2.0 --cflags`
+- GTOP_LIB = `pkg-config libgtop-2.0 --libs`
++ GTOP_INC = $(shell pkg-config libgtop-2.0 --cflags)
++ GTOP_LIB = $(shell pkg-config libgtop-2.0 --libs)
+
+ DEFINES += -DWITH_SYSINFO
+ LIBS += $(GTOP_LIB)
+@@ -186,8 +186,8 @@
+ endif
+
+ ifdef HAVE_DFB
+- INCLUDES += `directfb-config --cflags`
+- LIBS += `directfb-config --libs`
++ INCLUDES += $(shell directfb-config --cflags)
++ LIBS += $(shell directfb-config --libs)
+ DEFINES += -DHAVE_DFB
+ endif
+
+diff -Naur graphtft-24.orig/graphtft-fe/Makefile graphtft-24/graphtft-fe/Makefile
+--- graphtft-24.orig/graphtft-fe/Makefile 2009-10-22 17:39:55.000000000 +0200
++++ graphtft-24/graphtft-fe/Makefile 2009-10-22 17:41:29.000000000 +0200
+@@ -1,9 +1,9 @@
+
+ CXX = g++
+ CXXFLAGS = -pipe -ggdb -O2 -Wall -W -D_REENTRANT -fPIC
+-INCPATH = -I. `Magick++-config --cppflags`
++INCPATH = -I. $(shell Magick++-config --cppflags)
+ LFLAGS = -Wl,--no-undefined
+-LIBS = -lpthread `imlib2-config --libs` `Magick++-config --libs`
++LIBS = -lpthread $(shell imlib2-config --libs) $(shell Magick++-config --libs)
+ AR = ar
+
+ TARGET = graphtft-fe
+diff -Naur graphtft-24.orig/graphtft-fe/Makefile graphtft-24/graphtft-fe/Makefile
+--- graphtft-24.orig/graphtft-fe/Makefile 2009-10-23 16:20:43.000000000 +0200
++++ graphtft-24/graphtft-fe/Makefile 2009-10-23 16:21:20.000000000 +0200
+@@ -17,7 +17,7 @@
+
+ all:
+ echo Build graphTFT Frontend
+- @(make $(TARGET))
++ @$(MAKE) $(TARGET)
+
+
+ $(TARGET): $(OBJECTS)
diff --git a/media-plugins/vdr-graphtft/metadata.xml b/media-plugins/vdr-graphtft/metadata.xml
new file mode 100644
index 000000000000..7fbdb114477c
--- /dev/null
+++ b/media-plugins/vdr-graphtft/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+ <use>
+ <flag name="graphtft-fe">Install external x11 remote frontend</flag>
+ <flag name="theme_avp">graphTFT Alien vs. Predato theme</flag>
+ <flag name="theme_deepblue">graphTFT default theme</flag>
+ <flag name="theme_deeppurple">graphTFT Deep Purple theme</flag>
+ <flag name="theme_poetter">graphTFT Poetter theme</flag>
+ <flag name="touchscreen">Enable Touchscreen support</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-plugins/vdr-graphtft/vdr-graphtft-0.3.7-r1.ebuild b/media-plugins/vdr-graphtft/vdr-graphtft-0.3.7-r1.ebuild
new file mode 100644
index 000000000000..7a006e12d58a
--- /dev/null
+++ b/media-plugins/vdr-graphtft/vdr-graphtft-0.3.7-r1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2 flag-o-matic
+
+RESTRICT="test"
+
+DESCRIPTION="VDR plugin: GraphTFT"
+HOMEPAGE="http://www.vdr-wiki.de/wiki/index.php/Graphtft-plugin"
+SRC_URI="http://www.jwendel.de/vdr/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2 LGPL-2.1"
+
+IUSE_THEMES="+theme_deepblue theme_avp theme_deeppurple theme_poetter"
+IUSE="${IUSE_THEMES} directfb graphtft-fe imagemagick touchscreen"
+
+DEPEND=">=media-video/vdr-1.7.27[graphtft]
+ media-libs/imlib2[png,jpeg]
+ gnome-base/libgtop
+ >=virtual/ffmpeg-0.4.8_p20090201
+ imagemagick? ( media-gfx/imagemagick[png,jpeg,cxx] )
+ directfb? ( dev-libs/DirectFB )
+ graphtft-fe? ( media-libs/imlib2[png,jpeg,X] )"
+
+RDEPEND="${DEPEND}"
+
+PDEPEND="theme_deepblue? ( =x11-themes/vdrgraphtft-deepblue-0.3.1 )
+ theme_avp? ( =x11-themes/vdrgraphtft-avp-0.3.1 )
+ theme_deeppurple? ( =x11-themes/vdrgraphtft-deeppurple-0.3.2 )
+ theme_poetter? ( =x11-themes/vdrgraphtft-poetter-0.3.2 )"
+
+PATCHES=("${FILESDIR}/${P}_gentoo.diff"
+ "${FILESDIR}/${P}_makefile.diff"
+ "${FILESDIR}/${P}_gcc-4.4.x.diff")
+
+src_prepare() {
+
+ # remove untranslated Language
+ rm "${S}"/po/{ca_ES,cs_CZ,da_DK,el_GR,es_ES,et_EE,fr_FR,hr_HR,hu_HU,nl_NL,nn_NO,pl_PL,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po
+
+ sed -i Makefile -e "s: WITH_X_COMM = 1:#WITH_X_COMM = 1:"
+
+ ! use touchscreen && sed -i Makefile \
+ -e "s:WITH_TOUCH = 1:#WITH_TOUCH = 1:"
+
+ use graphtft-fe && sed -i Makefile \
+ -e "s:#WITH_X_COMM:WITH_X_COMM:"
+
+ # libav9 support
+ sed -i \
+ -e 's:avcodec.h>:avcodec.h>\n#include <libavutil/mem.h>:' \
+ imlibrenderer/dvbrenderer/mpeg2encoder.c || die
+
+ # libav10 support, wrt bug 519448
+ sed -i \
+ -e "s:CODEC_ID_MPEG1VIDEO:AV_CODEC_ID_MPEG1VIDEO:" \
+ -e "s:avcodec_alloc_frame:av_frame_alloc:" \
+ imlibrenderer/dvbrenderer/mpeg2encoder.c || die
+
+ vdr-plugin-2_src_prepare
+
+ vdr_remove_i18n_include graphtft.h setup.h
+
+ # UINT64_C is needed by ffmpeg headers
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+
+ if has_version ">=media-video/vdr-1.7.33"; then
+ sed -i dspitems.c \
+ -e "s:int timerMatch = 0:eTimerMatch timerMatch = tmNone:"
+ fi
+}
+
+src_compile() {
+ vdr-plugin-2_src_compile
+
+ if use graphtft-fe; then
+ cd "${S}"/graphtft-fe
+ emake
+ fi
+}
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ dodoc "${S}"/documents/{README,HISTORY,HOWTO.Themes,INSTALL}
+
+ if use graphtft-fe; then
+ cd "${S}"/graphtft-fe && dobin graphtft-fe
+ doinit graphtft-fe
+ fi
+}
+
+pkg_postinst() {
+ vdr-plugin-2_pkg_postinst
+
+ if use graphtft-fe; then
+ echo
+ elog "Graphtft-fe user:"
+ elog "Edit /etc/conf.d/vdr.graphtft"
+ elog "/etc/init.d/graphtft-fe start"
+ echo
+ fi
+}
diff --git a/media-plugins/vdr-graphtft/vdr-graphtft-0.3.7.ebuild b/media-plugins/vdr-graphtft/vdr-graphtft-0.3.7.ebuild
new file mode 100644
index 000000000000..654ec763257c
--- /dev/null
+++ b/media-plugins/vdr-graphtft/vdr-graphtft-0.3.7.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit vdr-plugin-2 flag-o-matic
+
+RESTRICT="test"
+
+DESCRIPTION="VDR plugin: GraphTFT"
+HOMEPAGE="http://www.vdr-wiki.de/wiki/index.php/Graphtft-plugin"
+SRC_URI="http://www.jwendel.de/vdr/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2 LGPL-2.1"
+
+IUSE_THEMES="+theme_deepblue theme_avp theme_deeppurple theme_poetter"
+IUSE="${IUSE_THEMES} directfb graphtft-fe imagemagick touchscreen"
+
+DEPEND=">=media-video/vdr-1.7.27[graphtft]
+ media-libs/imlib2[png,jpeg]
+ gnome-base/libgtop
+ >=virtual/ffmpeg-0.4.8_p20090201
+ imagemagick? ( media-gfx/imagemagick[png,jpeg,cxx] )
+ directfb? ( dev-libs/DirectFB )
+ graphtft-fe? ( media-libs/imlib2[png,jpeg,X] )"
+
+RDEPEND="${DEPEND}"
+
+PDEPEND="theme_deepblue? ( =x11-themes/vdrgraphtft-deepblue-0.3.1 )
+ theme_avp? ( =x11-themes/vdrgraphtft-avp-0.3.1 )
+ theme_deeppurple? ( =x11-themes/vdrgraphtft-deeppurple-0.3.2 )
+ theme_poetter? ( =x11-themes/vdrgraphtft-poetter-0.3.2 )"
+
+PATCHES=("${FILESDIR}/${P}_gentoo.diff"
+ "${FILESDIR}/${P}_makefile.diff"
+ "${FILESDIR}/${P}_gcc-4.4.x.diff")
+
+src_prepare() {
+
+ # remove untranslated Language
+ rm "${S}"/po/{ca_ES,cs_CZ,da_DK,el_GR,es_ES,et_EE,fr_FR,hr_HR,hu_HU,nl_NL,nn_NO,pl_PL,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po
+
+ sed -i Makefile -e "s: WITH_X_COMM = 1:#WITH_X_COMM = 1:"
+
+ ! use touchscreen && sed -i Makefile \
+ -e "s:WITH_TOUCH = 1:#WITH_TOUCH = 1:"
+
+ use graphtft-fe && sed -i Makefile \
+ -e "s:#WITH_X_COMM:WITH_X_COMM:"
+
+ # libav9 support
+ sed -i \
+ -e 's:avcodec.h>:avcodec.h>\n#include <libavutil/mem.h>:' \
+ imlibrenderer/dvbrenderer/mpeg2encoder.c || die
+
+ vdr-plugin-2_src_prepare
+
+ vdr_remove_i18n_include graphtft.h setup.h
+
+ # UINT64_C is needed by ffmpeg headers
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+
+ if has_version ">=media-video/vdr-1.7.33"; then
+ sed -i dspitems.c \
+ -e "s:int timerMatch = 0:eTimerMatch timerMatch = tmNone:"
+ fi
+}
+
+src_compile() {
+ vdr-plugin-2_src_compile
+
+ if use graphtft-fe; then
+ cd "${S}"/graphtft-fe
+ emake
+ fi
+}
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ dodoc "${S}"/documents/{README,HISTORY,HOWTO.Themes,INSTALL}
+
+ if use graphtft-fe; then
+ cd "${S}"/graphtft-fe && dobin graphtft-fe
+ doinit graphtft-fe
+ fi
+}
+
+pkg_postinst() {
+ vdr-plugin-2_pkg_postinst
+
+ if use graphtft-fe; then
+ echo
+ elog "Graphtft-fe user:"
+ elog "Edit /etc/conf.d/vdr.graphtft"
+ elog "/etc/init.d/graphtft-fe start"
+ echo
+ fi
+}