lcd4linux: Switch to feckert fork 9916/head
authorRosen Penev <rosenp@gmail.com>
Thu, 8 Aug 2019 23:13:55 +0000 (16:13 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 14 Oct 2019 08:43:47 +0000 (01:43 -0700)
The original project is dead. feckert fork is active.

Cleaned up Makefile to be more similar to others.

Fixed PKG_MAINTAINER having wrong place.

Added PKG_BUILD_PARALLEL for faster compilation.

Added LICENSE information.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/lcd4linux/Makefile
utils/lcd4linux/patches/110-uclibc-logarithm-fix.patch [deleted file]
utils/lcd4linux/patches/160-uinput_defs.patch [deleted file]
utils/lcd4linux/patches/170-add-generic-spidev-driver.patch
utils/lcd4linux/patches/172-add-TEW673GRU-driver.patch

index e623b6bc93e7f5ec460af5ef003d7f281b0f306f..2622d63365e1fe6af58bb4dc96c9ab0b4e48a0c5 100644 (file)
@@ -8,15 +8,25 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lcd4linux
-PKG_REV:=1204
-PKG_VERSION:=r$(PKG_REV)
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=https://ssl.bulix.org/svn/lcd4linux/trunk/
-PKG_SOURCE_SUBDIR:=lcd4linux-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=$(PKG_REV)
-PKG_SOURCE_PROTO:=svn
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/feckert/lcd4linux
+PKG_SOURCE_DATE:=2019-07-19
+PKG_SOURCE_VERSION:=0b83bb3a81e7e7f5c0aa1daa6f5b9abca538fd47
+PKG_MIRROR_HASH:=26a3469bce0648b276e2c818add7049685c7f461ea9669d23730dfc3a96d9934
+
+PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
+PKG_LICENSE:=GPL-2.0-or-later
+PKG_LICENSE_FILES:=COPYING
+
+PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
+PKG_CONFIG_DEPENDS:= \
+       $(patsubst %,CONFIG_LCD4LINUX_CUSTOM_DRIVER_%,$(LCD4LINUX_DRIVERS)) \
+       $(patsubst %,CONFIG_LCD4LINUX_CUSTOM_PLUGIN_%,$(LCD4LINUX_PLUGINS)) \
 
 LCD4LINUX_DRIVERS:= \
        ASTUSB \
@@ -112,22 +122,7 @@ LCD4LINUX_PLUGINS:= \
        w1retap \
        $(if $(CONFIG_BROKEN),wireless) \
        xmms \
-#      python \
-
-PKG_FIXUP:=autoreconf
-PKG_INSTALL:=1
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
-
-PKG_BUILD_DEPENDS:= \
-       ppp \
-#      libftdi \
-#      libX11 \
-#      python \
-
-PKG_CONFIG_DEPENDS:= \
-       $(patsubst %,CONFIG_LCD4LINUX_CUSTOM_DRIVER_%,$(LCD4LINUX_DRIVERS)) \
-       $(patsubst %,CONFIG_LCD4LINUX_CUSTOM_PLUGIN_%,$(LCD4LINUX_PLUGINS)) \
+#      python
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/nls.mk
@@ -135,7 +130,6 @@ include $(INCLUDE_DIR)/nls.mk
 define Package/lcd4linux/Default
   SECTION:=utils
   CATEGORY:=Utilities
-  PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
   TITLE:=LCD display utility
   URL:=http://lcd4linux.bulix.org/
 endef
@@ -204,12 +198,10 @@ endef
 
 
 CONFIGURE_ARGS+= \
-       --disable-rpath \
+       --disable-rpath
 
 TARGET_CFLAGS += -std=gnu89
 
-EXTRA_LDFLAGS+= -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
-
 ifeq ($(BUILD_VARIANT),custom)
 
   LCD4LINUX_CUSTOM_DRIVERS:= $(strip $(foreach c, $(LCD4LINUX_DRIVERS), \
@@ -269,7 +261,7 @@ ifeq ($(BUILD_VARIANT),full)
        --with-plugins="$(LCD4LINUX_FULL_PLUGINS)" \
        --with-libiconv-prefix="$(ICONV_PREFIX)" \
        --without-python \
-       --without-x \
+       --without-x
 
   EXTRA_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/mysql
 
diff --git a/utils/lcd4linux/patches/110-uclibc-logarithm-fix.patch b/utils/lcd4linux/patches/110-uclibc-logarithm-fix.patch
deleted file mode 100644 (file)
index 8f6d861..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/plugin_netinfo.c
-+++ b/plugin_netinfo.c
-@@ -264,7 +264,7 @@ static void my_netmask_short(RESULT * re
-     sin = get_netmask(arg1);
-     if (NULL != sin) {
-       logval = (long double) (get_netmask(arg1)->sin_addr.s_addr);
--      netlen = (int) rint(log2l(logval) / log2l(2.0));
-+      netlen = (int) rint(log2f(logval) / log2f(2.0));
-       qprintf(value, sizeof(value), "/%d", netlen);
-     } else {
-       qprintf(value, sizeof(value), "/?");
diff --git a/utils/lcd4linux/patches/160-uinput_defs.patch b/utils/lcd4linux/patches/160-uinput_defs.patch
deleted file mode 100644 (file)
index 44b24b3..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
---- a/drv_G15.c
-+++ b/drv_G15.c
-@@ -42,6 +42,7 @@
- #include <usb.h>
- #include <fcntl.h>
-+#include <linux/version.h>
- #include <linux/input.h>
- #include <linux/uinput.h>
-@@ -269,8 +270,13 @@ void drv_G15_initKeyHandling(char *devic
-     }
-     memset(&device, 0, sizeof(device));
-     strncpy(device.name, "G15 Keys", UINPUT_MAX_NAME_SIZE);
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-     device.id.bustype = BUS_USB;
-     device.id.version = 4;
-+#else
-+    device.idbus = BUS_USB;
-+    device.idversion = 4;
-+#endif
-     ioctl(uinput_fd, UI_SET_EVBIT, EV_KEY);
index 4cd53d6a557f2f752001cefd407e18cd3efcc2e9..039069cd5ad04d5b4ba3522ff1e15390ae43aa4e 100644 (file)
@@ -1,6 +1,6 @@
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -71,6 +71,8 @@ drv_generic_i2c.c             \
+@@ -72,6 +72,8 @@ drv_generic_i2c.c             \
  drv_generic_i2c.h             \
  drv_generic_keypad.c          \
  drv_generic_keypad.h          \
index 428465c1e68c86a482def8810515c574d117c587..efcdb6112502718b661817fe5df9aa4b864bfe53 100644 (file)
@@ -68,7 +68,7 @@
  #endif
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -119,6 +119,7 @@ drv_ShuttleVFD.c              \
+@@ -120,6 +120,7 @@ drv_ShuttleVFD.c              \
  drv_SimpleLCD.c               \
  drv_T6963.c                   \
  drv_TeakLCM.c                 \