summaryrefslogtreecommitdiffstats
path: root/package/hplip/hplip.mk
diff options
context:
space:
mode:
authorOlivier Schonken <olivier.schonken@gmail.com>2013-03-18 20:55:16 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-03-19 13:07:39 +0100
commitaeb1bbabe38be3a7ed88879484ca2ce292953709 (patch)
treec08b78c04f2ae0c2d59ff2a2e57a419ddfb9a988 /package/hplip/hplip.mk
parentbae18e117b52c73cf2b84fc0e357d68d18fa39c6 (diff)
downloadbuildroot-novena-aeb1bbabe38be3a7ed88879484ca2ce292953709.tar.gz
buildroot-novena-aeb1bbabe38be3a7ed88879484ca2ce292953709.zip
Added package HPLIP for printing to HP printers
HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. [Peter: fix Config.in white space] Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/hplip/hplip.mk')
-rw-r--r--package/hplip/hplip.mk53
1 files changed, 53 insertions, 0 deletions
diff --git a/package/hplip/hplip.mk b/package/hplip/hplip.mk
new file mode 100644
index 000000000..6944f509d
--- /dev/null
+++ b/package/hplip/hplip.mk
@@ -0,0 +1,53 @@
+#############################################################
+#
+# hplip
+#
+#############################################################
+
+HPLIP_VERSION = 3.13.3
+HPLIP_SITE = http://downloads.sourceforge.net/hplip/hplip
+HPLIP_AUTORECONF = YES
+HPLIP_DEPENDENCIES = cups libusb jpeg
+HPLIP_LICENSE = GPLv2 BSD-3c MIT
+HPLIP_LICENSE_FILES = COPYING
+
+HPLIP_CONF_OPT = \
+ --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 \
+ --with-sysroot=$(STAGING_DIR) \
+ --includedir=$(STAGING_DIR)/usr/include
+
+ifeq ($(BR2_PACKAGE_DBUS),y)
+ HPLIP_CONF_OPT += --enable-dbus-build
+ HPLIP_DEPENDENCIES += dbus
+else
+ HPLIP_CONF_OPT += --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
+
+define HPLIP_PRE_CONFIGURE_FIXUP
+ touch $(@D)/AUTHORS
+ touch $(@D)/ChangeLog
+ touch $(@D)/NEWS
+ touch $(@D)/README
+endef
+HPLIP_PRE_CONFIGURE_HOOKS += HPLIP_PRE_CONFIGURE_FIXUP
+
+$(eval $(autotools-package))