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.

76 lines
2.1 KiB

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