Patchwork [09/14] Added package foomatic-filters

login
register
mail settings
Submitter Yann E. MORIN
Date March 24, 2013, 10:50 p.m.
Message ID <d3c3ed22f4740cdb98c47b8650314cfc86468650.1364165310.git.yann.morin.1998@free.fr>
Download mbox | patch
Permalink /patch/230519/
State Changes Requested
Headers show

Comments

Yann E. MORIN - March 24, 2013, 10:50 p.m.
From: Olivier Schonken <olivier.schonken@gmail.com>

Foomatic is a database-driven system for integrating free software
printer drivers with common spoolers under Unix. It supports CUPS,
LPRng, LPD, GNUlpr, Solaris LP, PPR, PDQ, CPS, and direct printing
with every free software printer driver known to us and every
printer known to work with these drivers.

Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
[yann.morin.1998@free.fr: space-damage, licensing terms, unneeded vars]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in                            |    1 +
 package/foomatic-filters/Config.in           |   14 ++++++++++++++
 package/foomatic-filters/foomatic-filters.mk |   20 ++++++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 package/foomatic-filters/Config.in
 create mode 100644 package/foomatic-filters/foomatic-filters.mk
Thomas Petazzoni - March 24, 2013, 11:04 p.m.
Dear Yann E. MORIN,

On Sun, 24 Mar 2013 23:50:44 +0100, Yann E. MORIN wrote:

> +	select BR2_PACKAGE_LIBUSB

	# libusb dependency
	depends on BR2_TOOLCHAIN_HAS_THREADS

Thomas
Yann E. MORIN - March 24, 2013, 11:33 p.m.
Thomas, All,

On Monday 25 March 2013 Thomas Petazzoni wrote:
> On Sun, 24 Mar 2013 23:50:44 +0100, Yann E. MORIN wrote:
> 
> > +	select BR2_PACKAGE_LIBUSB
> 
> 	# libusb dependency
> 	depends on BR2_TOOLCHAIN_HAS_THREADS

Right-o-right. Fixed here, and pushed in my branch.

Thanks!

Regards,
Yann E. MORIN.

Patch

diff --git a/package/Config.in b/package/Config.in
index 82e6c5c..74537e4 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -645,6 +645,7 @@  source "package/connman/Config.in"
 source "package/ctorrent/Config.in"
 source "package/conntrack-tools/Config.in"
 source "package/cups/Config.in"
+source "package/foomatic-filters/Config.in"
 source "package/hplip/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/dhcp/Config.in"
diff --git a/package/foomatic-filters/Config.in b/package/foomatic-filters/Config.in
new file mode 100644
index 0000000..b6b3f61
--- /dev/null
+++ b/package/foomatic-filters/Config.in
@@ -0,0 +1,14 @@ 
+config BR2_PACKAGE_FOOMATIC_FILTERS
+	bool "foomatic_filters"
+	depends on BR2_PACKAGE_CUPS
+	select BR2_PACKAGE_LIBUSB
+	select BR2_PACKAGE_ENSCRIPT
+	help
+	  Foomatic Filters
+	  Foomatic is a database-driven system for integrating free software
+	  printer drivers with common spoolers under Unix. It supports CUPS,
+	  LPRng, LPD, GNUlpr, Solaris LP, PPR, PDQ, CPS, and direct printing
+	  with every free software printer driver known to us and every
+	  printer known to work with these drivers.
+
+	  http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic
diff --git a/package/foomatic-filters/foomatic-filters.mk b/package/foomatic-filters/foomatic-filters.mk
new file mode 100644
index 0000000..b62951b
--- /dev/null
+++ b/package/foomatic-filters/foomatic-filters.mk
@@ -0,0 +1,20 @@ 
+#############################################################
+#
+# foomatic_filters
+#
+#############################################################
+FOOMATIC_FILTERS_VERSION = 4.0.17
+FOOMATIC_FILTERS_SITE = http://www.openprinting.org/download/foomatic
+FOOMATIC_FILTERS_LICENSE = GPLv2+
+FOOMATIC_FILTERS_LICENSE_FILES = COPYING
+FOOMATIC_FILTERS_DEPENDENCIES = cups libusb enscript
+
+FOOMATIC_FILTERS_CONF_OPT = --with-file-converter=enscript
+ifeq ($(BR2_PACKAGE_DBUS),y)
+FOOMATIC_FILTERS_CONF_OPT += --enable-dbus
+FOOMATIC_FILTERS_DEPENDENCIES += dbus
+else
+FOOMATIC_FILTERS_CONF_OPT += --disable-dbus
+endif
+
+$(eval $(autotools-package))