Some change in base broke compilation with libusb and this package. From looking at it more carefully, it turns out that the libusb patch needs to be updated so that host paths are not used. libusb-compat also depends on libusb, which increases the overall installed size. Refreshed patches with make package/hplip/refresh . Signed-off-by: Rosen Penev <rosenp@gmail.com>
117 lines
3 KiB
Makefile
117 lines
3 KiB
Makefile
#
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
|
# Copyright (C) 2017-2018 Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=hplip
|
|
PKG_VERSION:=3.20.9
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/hplip
|
|
PKG_HASH:=36251189aa9cc349f6a3eacbb7ac3c4fd26fc9f087c9f75cee051010c85d2ddf
|
|
|
|
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0 GPL-2.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING LICENSE
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_DEPENDS:=libcups
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/hplip/Default
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=HP Linux Imaging and Printing
|
|
URL:=https://sourceforge.net/projects/hplip/
|
|
endef
|
|
|
|
define Package/hplip/Default/description
|
|
HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.
|
|
endef
|
|
|
|
define Package/hplip-common
|
|
$(call Package/hplip/Default)
|
|
TITLE+= (common files)
|
|
DEPENDS+=+libusb-1.0
|
|
endef
|
|
|
|
define Package/hplip-common/description
|
|
$(call Package/hplip/Default/description)
|
|
|
|
These are common files shared between subpackages
|
|
endef
|
|
|
|
define Package/hplip-sane
|
|
$(call Package/hplip/Default)
|
|
TITLE+= (scanner drivers)
|
|
DEPENDS+=+libsane +hplip-common
|
|
endef
|
|
|
|
define Package/hplip-sane/description
|
|
$(call Package/hplip/Default/description)
|
|
|
|
S.A.N.E backend for HP Scanners
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--disable-gui-build \
|
|
--disable-network-build \
|
|
--disable-fax-build \
|
|
--disable-pp-build \
|
|
--disable-doc-build \
|
|
--disable-dbus-build \
|
|
--disable-hpijs-only-build \
|
|
--disable-hpcups-install \
|
|
--disable-hpps-install \
|
|
--disable-cups-drv-install \
|
|
--enable-lite-build
|
|
|
|
define Build/Install
|
|
mkdir -p $(PKG_INSTALL_DIR)/usr/share/sane
|
|
sed -n -e '/key="usb.product_id"/{s/.*int_outof="0x//;s/;0x/\n/g;s/".*//;p}' \
|
|
$(PKG_BUILD_DIR)/data/rules/20-hplip-devices.fdi | sort -u > \
|
|
$(PKG_INSTALL_DIR)/usr/share/sane/03f0-hplip.usbid
|
|
endef
|
|
|
|
define Package/hplip-common/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_BUILD_DIR)/.libs/libhpip.so* $(1)/usr/lib/
|
|
$(CP) $(PKG_BUILD_DIR)/.libs/libhpmud.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/hp
|
|
$(CP) $(PKG_BUILD_DIR)/hplip.conf $(1)/etc/hp/hplip.conf
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/hplip/data/models/
|
|
$(CP) $(PKG_BUILD_DIR)/data/models/models.dat $(1)/usr/share/hplip/data/models/
|
|
endef
|
|
|
|
define Package/hplip-sane/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/sane
|
|
$(CP) $(PKG_BUILD_DIR)/.libs/libsane-hpaio.so* $(1)/usr/lib/sane
|
|
|
|
$(INSTALL_DIR) $(1)/etc/sane.d/dll.d/
|
|
$(INSTALL_DATA) ./files/hplib.conf $(1)/etc/sane.d/dll.d/hplib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/sane
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/sane/03f0-hplip.usbid \
|
|
$(1)/usr/share/sane/03f0-hplip.usbid
|
|
endef
|
|
|
|
define Package/hplip-common/conffiles
|
|
/etc/hp/hplip.conf
|
|
endef
|
|
|
|
define Package/hplip-sane/conffiles
|
|
/etc/sane.d/dll.d/hplib
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,hplip-common))
|
|
$(eval $(call BuildPackage,hplip-sane))
|