summaryrefslogtreecommitdiffstats
path: root/rules/cups-filters.make
blob: a028bb5b71ae53fb11e12d947b308386d2ec426e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*-makefile-*-
#
# Copyright (C) 2017 by Roland Hieber <r.hieber@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_CUPS_FILTERS) += cups-filters

#
# Paths and names
#
CUPS_FILTERS_VERSION	:= 1.17.9
CUPS_FILTERS_MD5	:= 2ef5f2b902bcdcb963c5ef5858976bbc
CUPS_FILTERS		:= cups-filters-$(CUPS_FILTERS_VERSION)
CUPS_FILTERS_SUFFIX	:= tar.xz
CUPS_FILTERS_URL	:= http://openprinting.org/download/cups-filters/$(CUPS_FILTERS).$(CUPS_FILTERS_SUFFIX)
CUPS_FILTERS_SOURCE	:= $(SRCDIR)/$(CUPS_FILTERS).$(CUPS_FILTERS_SUFFIX)
CUPS_FILTERS_DIR	:= $(BUILDDIR)/$(CUPS_FILTERS)
CUPS_FILTERS_LICENSE	:= GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND LGPL-2 AND LGPL-2.1-or-later AND MIT AND BSD-4-Clause
CUPS_FILTERS_LICENSE_FILES	:= file://COPYING;md5=794bc12f02f100806cd5f19304d03f7b

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
CUPS_FILTERS_CONF_TOOL	:= autoconf
CUPS_FILTERS_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--disable-silent-rules \
	--disable-driverless \
	--disable-auto-setup-driverless \
	--$(call ptx/endis,PTXCONF_CUPS_FILTERS_IMAGEFILTERS)-imagefilters \
	--disable-avahi \
	--disable-ldap \
	--$(call ptx/endis,PTXCONF_CUPS_FILTERS_PCLM)-pclm \
	--$(call ptx/endis,PTXCONF_CUPS_FILTERS_POPPLER)-poppler \
	--disable-dbus \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--disable-mutool \
	--disable-ghostscript \
	--disable-ijs \
	--disable-gs-ps2write \
	--disable-foomatic \
	--disable-werror \
	--disable-braille \
	--with-gnu-ld \
	--with-cups-config=$(PTXDIST_SYSROOT_CROSS)/bin/cups-config \
	--with-apple-raster-filter=rastertopdf \
	--with-cups-rundir=/run \
	--with-cups-domainsocket=/run/cups.sock \
	--$(call ptx/wwo,PTXCONF_CUPS_FILTERS_JPEG)-jpeg \
	--$(call ptx/wwo,PTXCONF_CUPS_FILTERS_PNG)-png \
	--without-tiff \
	--with-browseremoteprotocols="dnssd cups" \
	--with-pdftops=pdftops

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/cups-filters.targetinstall:
	@$(call targetinfo)

	@$(call install_init, cups-filters)
	@$(call install_fixup, cups-filters,PRIORITY,optional)
	@$(call install_fixup, cups-filters,SECTION,base)
	@$(call install_fixup, cups-filters,AUTHOR,"Roland Hieber <r.hieber@pengutronix.de>")
	@$(call install_fixup, cups-filters,DESCRIPTION,missing)

	@$(call install_lib, cups-filters, 0, 0, 0644, libcupsfilters)
	@$(call install_lib, cups-filters, 0, 0, 0644, libfontembed)
	@$(call install_tree, cups-filters, 0, 0, -, /usr/lib/cups/filter)
	@$(call install_tree, cups-filters, 0, 0, -, /usr/lib/cups/backend)
	@$(call install_tree, cups-filters, 0, 0, -, /usr/share/cups)
	@$(call install_tree, cups-filters, 0, 0, -, /usr/share/ppd)

	@$(call install_finish, cups-filters)

	@$(call touch)

# vim: ft=make ts=8 tw=80