You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=serdisplib
  3. PKG_VERSION:=2.02
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=@SF/serdisplib
  7. PKG_HASH:=447b74007dc157b0378044245649850b26432b9185b6540ff681fcb0765c4d8b
  8. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  9. PKG_LICENSE:=GPL-2.0-or-later
  10. PLG_LICENSE_FILES:=COPYING
  11. PKG_FIXUP:=autoreconf
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. PKG_BUILD_DEPENDS:=libusb-compat
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/serdisplib
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=serdisplib
  20. URL:=http://serdisplib.sourceforge.net/
  21. endef
  22. define Package/serdisplib/description
  23. serdisplib started as a library to drive serial displays with
  24. built-in controllers. It can optionally dynamically link with
  25. libusb-compat, libgd and libpthread, some features require having
  26. those packages installed as well.
  27. endef
  28. define Package/serdisplib-tools
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. TITLE:=serdisplib tools
  32. URL:=http://serdisplib.sourceforge.net/
  33. DEPENDS:=+serdisplib +libgd
  34. endef
  35. define Package/serdisplib-tools/description
  36. serdisplib started as a library to drive serial displays with
  37. built-in controllers. This package contains tools for serdisplib:
  38. * l4m132c_tool
  39. * l4m320t_tool
  40. * multidisplay
  41. * sdcmegtron_tool
  42. * touchscreen_tool
  43. endef
  44. CONFIGURE_ARGS += \
  45. --enable-dynloading \
  46. --disable-statictools
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/include/serdisplib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/include/serdisplib/*.h $(1)/usr/include/serdisplib
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libserdisp.{a,so*} $(1)/usr/lib/
  52. endef
  53. define Package/serdisplib/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libserdisp.so* $(1)/usr/lib/
  56. endef
  57. define Package/serdisplib-tools/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/l4m132c_tool $(1)/usr/bin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/l4m320t_tool $(1)/usr/bin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/multidisplay $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sdcmegtron_tool $(1)/usr/bin
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/touchscreen_tool $(1)/usr/bin
  64. endef
  65. $(eval $(call BuildPackage,serdisplib))
  66. $(eval $(call BuildPackage,serdisplib-tools))