5af5eaec9a
Adjust patch #2 to apply successfully. Fixes: http://autobuild.buildroot.net/results/bee/beea88e0848ccabcafe6b92c2a69074ed1114225/ http://autobuild.buildroot.net/results/4ba/4ba68d3e6764f395f3314c46c4d06b101c23479c/ http://autobuild.buildroot.net/results/345/3455044679a497fbee72378e59178724305720d9/ .. and many more. The previous version 3.15.11 failed to build because of: ``` hpijs/hpcupsfax.cpp: In function 'int main(int, char**)': prnt/hpijs/hpcupsfax.cpp:651:5: error: 'ppd_file_t' was not declared in this scope ppd_file_t *ppd; ^ ``` `ppd_file_t` is defined in "cups/ppd.h" which was not included in 3.15.11, but is in 3.16.11. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# hplip
|
|
#
|
|
################################################################################
|
|
|
|
HPLIP_VERSION = 3.16.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
|
|
|
|
# build system does not support cups-config
|
|
HPLIP_CONF_ENV = LIBS=`$(STAGING_DIR)/usr/bin/cups-config --libs`
|
|
|
|
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))
|