1 ################################################################################
5 ################################################################################
7 HPLIP_VERSION = 3.13.10
8 HPLIP_SITE = http://downloads.sourceforge.net/hplip/hplip
10 HPLIP_DEPENDENCIES = cups libusb jpeg
11 HPLIP_LICENSE = GPLv2 BSD-3c MIT
12 HPLIP_LICENSE_FILES = COPYING
16 --disable-scan-build \
19 --disable-network-build \
20 --enable-hpcups-install \
21 --disable-hpijs-install \
22 --enable-cups-ppd-install \
23 --enable-cups-drv-install \
24 --disable-foomatic-ppd-install \
25 --disable-foomatic-drv-install \
26 --disable-foomatic-rip-hplip-install \
29 --with-sysroot=$(STAGING_DIR) \
30 --includedir=$(STAGING_DIR)/usr/include
32 ifeq ($(BR2_PACKAGE_DBUS),y)
33 HPLIP_CONF_OPTS += --enable-dbus-build
34 HPLIP_DEPENDENCIES += dbus
36 HPLIP_CONF_OPTS += --disable-dbus-build
39 define HPLIP_POST_INSTALL_TARGET_FIXUP
40 mkdir -p $(TARGET_DIR)/usr/share/hplip/data/models
41 cp $(@D)/data/models/* $(TARGET_DIR)/usr/share/hplip/data/models
43 HPLIP_POST_INSTALL_TARGET_HOOKS += HPLIP_POST_INSTALL_TARGET_FIXUP
45 define HPLIP_PRE_CONFIGURE_FIXUP
51 HPLIP_PRE_CONFIGURE_HOOKS += HPLIP_PRE_CONFIGURE_FIXUP
53 $(eval $(autotools-package))