kumquat-buildroot/package/hplip/hplip.mk
Thomas Petazzoni 3fc77e5f81 package/hplip: fixup configure.in script for proper autoreconf
This commit adds a minor patch to hplip's configure.in script, which
avoids the need to create the AUTOHRS, ChangeLog, NEWS and README
files before autoreconfiguring, and silences a huge number of warnings
telling to enable the subdir-objects automake option.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-01-22 00:05:50 +01:00

44 lines
1.2 KiB
Makefile

################################################################################
#
# hplip
#
################################################################################
HPLIP_VERSION = 3.15.11
HPLIP_SITE = http://downloads.sourceforge.net/hplip/hplip
HPLIP_AUTORECONF = YES
HPLIP_DEPENDENCIES = cups libusb jpeg host-pkgconf
HPLIP_LICENSE = GPLv2 BSD-3c MIT
HPLIP_LICENSE_FILES = COPYING
HPLIP_CONF_OPTS = \
--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 \
--enable-lite-build
ifeq ($(BR2_PACKAGE_DBUS),y)
HPLIP_CONF_OPTS += --enable-dbus-build
HPLIP_DEPENDENCIES += dbus
else
HPLIP_CONF_OPTS += --disable-dbus-build
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))