2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-18 21:55:16 +01:00
|
|
|
#
|
|
|
|
# hplip
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-18 21:55:16 +01:00
|
|
|
|
2017-01-21 20:13:14 +01:00
|
|
|
HPLIP_VERSION = 3.16.11
|
2013-03-18 21:55:16 +01:00
|
|
|
HPLIP_SITE = http://downloads.sourceforge.net/hplip/hplip
|
|
|
|
HPLIP_AUTORECONF = YES
|
2016-01-22 00:02:32 +01:00
|
|
|
HPLIP_DEPENDENCIES = cups libusb jpeg host-pkgconf
|
2013-03-18 21:55:16 +01:00
|
|
|
HPLIP_LICENSE = GPLv2 BSD-3c MIT
|
|
|
|
HPLIP_LICENSE_FILES = COPYING
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
HPLIP_CONF_OPTS = \
|
2013-03-18 21:55:16 +01:00
|
|
|
--disable-qt4 \
|
|
|
|
--disable-scan-build \
|
|
|
|
--disable-gui-build \
|
|
|
|
--disable-doc-build \
|
|
|
|
--disable-network-build \
|
|
|
|
--enable-hpcups-install \
|
|
|
|
--disable-hpijs-install \
|
|
|
|
--enable-cups-ppd-install \
|
|
|
|
--enable-cups-drv-install \
|
|
|
|
--disable-foomatic-ppd-install \
|
|
|
|
--disable-foomatic-drv-install \
|
|
|
|
--disable-foomatic-rip-hplip-install \
|
|
|
|
--enable-new-hpcups \
|
2016-01-22 00:02:32 +01:00
|
|
|
--enable-lite-build
|
2013-03-18 21:55:16 +01:00
|
|
|
|
2016-05-23 06:02:32 +02:00
|
|
|
# build system does not support cups-config
|
|
|
|
HPLIP_CONF_ENV = LIBS=`$(STAGING_DIR)/usr/bin/cups-config --libs`
|
|
|
|
|
2013-03-18 21:55:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
HPLIP_CONF_OPTS += --enable-dbus-build
|
|
|
|
HPLIP_DEPENDENCIES += dbus
|
2013-03-18 21:55:16 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
HPLIP_CONF_OPTS += --disable-dbus-build
|
2013-03-18 21:55:16 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
define HPLIP_POST_INSTALL_TARGET_FIXUP
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/hplip/data/models
|
|
|
|
cp $(@D)/data/models/* $(TARGET_DIR)/usr/share/hplip/data/models
|
|
|
|
endef
|
|
|
|
HPLIP_POST_INSTALL_TARGET_HOOKS += HPLIP_POST_INSTALL_TARGET_FIXUP
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|