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.

109 lines
2.7 KiB

  1. #
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. # Copyright (C) 2017-2018 Luiz Angelo Daros de Luca <luizluca@gmail.com>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=hplip
  10. PKG_VERSION:=3.19.6
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SF/hplip
  14. PKG_HASH:=fcdaedee9ed17d2e70f3aff9558a452d99443d1b93d6623132faf3f3ae61d66d
  15. PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
  16. PKG_LICENSE:=GPL-2.0 GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=COPYING LICENSE
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_BUILD_DEPENDS:=libcups
  20. PKG_FIXUP:=autoreconf
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/hplip/Default
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=HP Linux Imaging and Printing
  26. URL:=https://sourceforge.net/projects/hplip/
  27. endef
  28. define Package/hplip/Default/description
  29. HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
  30. endef
  31. define Package/hplip-common
  32. $(call Package/hplip/Default)
  33. TITLE+= (common files)
  34. DEPENDS+=+libusb-1.0
  35. endef
  36. define Package/hplip-common/description
  37. $(call Package/hplip/Default/description)
  38. These are common files shared between subpackages
  39. endef
  40. define Package/hplip-sane
  41. $(call Package/hplip/Default)
  42. TITLE+= (scanner drivers)
  43. DEPENDS+=+libsane +hplip-common
  44. endef
  45. define Package/hplip-sane/description
  46. $(call Package/hplip/Default/description)
  47. S.A.N.E backend for HP Scanners
  48. endef
  49. CONFIGURE_ARGS += \
  50. --disable-gui-build \
  51. --disable-network-build \
  52. --disable-fax-build \
  53. --disable-pp-build \
  54. --disable-doc-build \
  55. --disable-dbus-build \
  56. --disable-hpijs-only-build \
  57. --disable-hpcups-install \
  58. --disable-hpps-install \
  59. --disable-cups-drv-install \
  60. --enable-lite-build
  61. define Package/hplip-common/install
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) $(PKG_BUILD_DIR)/.libs/libhpip.so* $(1)/usr/lib/
  64. $(CP) $(PKG_BUILD_DIR)/.libs/libhpmud.so* $(1)/usr/lib/
  65. $(INSTALL_DIR) $(1)/etc/hp
  66. $(CP) $(PKG_BUILD_DIR)/hplip.conf $(1)/etc/hp/hplip.conf
  67. $(INSTALL_DIR) $(1)/usr/share/hplip/data/models/
  68. $(CP) $(PKG_BUILD_DIR)/data/models/models.dat $(1)/usr/share/hplip/data/models/
  69. $(INSTALL_DIR) $(1)/etc/hotplug.d/usb/
  70. $(INSTALL_BIN) ./files/20-hplip $(1)/etc/hotplug.d/usb/
  71. endef
  72. define Package/hplip-sane/install
  73. $(INSTALL_DIR) $(1)/usr/lib/sane
  74. $(CP) $(PKG_BUILD_DIR)/.libs/libsane-hpaio.so* $(1)/usr/lib/sane
  75. $(INSTALL_DIR) $(1)/etc/sane.d/dll.d/
  76. $(INSTALL_DATA) ./files/hplib.conf $(1)/etc/sane.d/dll.d/hplib
  77. endef
  78. define Package/hplip-common/conffiles
  79. /etc/hp/hplip.conf
  80. endef
  81. define Package/hplip-sane/conffiles
  82. /etc/sane.d/dll.d/hplib
  83. endef
  84. $(eval $(call BuildPackage,hplip-common))
  85. $(eval $(call BuildPackage,hplip-sane))