2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2023 Andreas Wacknitz
16 USE_DEFAULT_TEST_TRANSFORMS
= yes
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= libcupsfilters
20 COMPONENT_VERSION
= 2.1.0
22 COMPONENT_SUMMARY
= libcupsfilters contains
all the code of the filters of the former cups-filters package
as library functions
23 COMPONENT_DESCRIPTION
= The
filter functions are principally intended to be used for the data format conversion tasks needed in \
24 Printer Applications. They are already in use
(together with libppd and pappl-retrofit
) by the CUPS-driver \
25 retro-fitting Printer Applications from OpenPrinting. \
26 In addition to the
filter functions libcupsfilters also contains several API functions useful for \
27 developing printer drivers
/Printer Applications
, like image and raster graphics handling
, \
28 make
/model
/device ID matching
, ...
29 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
30 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
31 COMPONENT_ARCHIVE_HASH
= sha256
:cbe900c7783e4aab0b1681629fad7322d82d082a51e8bae7e1c741d26bdcd294
32 COMPONENT_PROJECT_URL
= https
://openprinting.github.io
/
33 COMPONENT_ARCHIVE_URL
= https
://github.com
/OpenPrinting
/$(COMPONENT_NAME
)/releases
/download
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
34 COMPONENT_FMRI
= print/$(COMPONENT_NAME
)
35 COMPONENT_CLASSIFICATION
= System
/Printing
36 COMPONENT_LICENSE
= Apache-2.0
-with-GPL2-LGPL2-Exception
37 COMPONENT_LICENSE_FILE
= COPYING
39 include $(WS_MAKE_RULES
)/common.mk
43 COMPONENT_PRE_CONFIGURE_ACTION
+= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
45 COMPONENT_PREP_ACTION
+= ( cd
$(@D
); PATH
=$(PATH
) $(CONFIG_SHELL
) autogen.sh
)
47 CPPFLAGS
= -D_POSIX_PTHREAD_SEMANTICS
48 CPPFLAGS
+= -I
/usr
/include/cups
49 CPPFLAGS
+= -I
/usr
/include/lcms2
53 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
55 CONFIGURE_OPTIONS
+= CFLAGS
="$(CFLAGS)"
56 CONFIGURE_OPTIONS
+= CPPFLAGS
="$(CPPFLAGS)"
57 CONFIGURE_OPTIONS
+= --disable-static
58 CONFIGURE_OPTIONS
+= --enable-poppler
59 CONFIGURE_OPTIONS
+= --with-test-font-path
=/usr
/share
/fonts
/TrueType
/dejavu
/DejaVuSans.ttf
60 # We don't have mutool (https://mupdf.readthedocs.io/en/latest/mupdf-command-line.html).
61 CONFIGURE_OPTIONS
+= --disable-mutool
63 COMPONENT_BUILD_ENV
+= PATH
="$(PATH.gnu)"
64 COMPONENT_INSTALL_ENV
+= PATH
="$(PATH.gnu)"
65 COMPONENT_TEST_ENV
+= libtool_install_magic
='%%%MAGIC variable%%%'
66 COMPONENT_TEST_ENV
+= libtool_execute_magic
='%%%MAGIC variable%%%'
68 # Manually added dependencies
69 TEST_REQUIRED_PACKAGES
+= system
/font
/truetype
/dejavu
71 # Auto-generated dependencies
72 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
73 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
74 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
75 REQUIRED_PACKAGES
+= image
/library
/libexif
76 REQUIRED_PACKAGES
+= image
/library
/libpng16
77 REQUIRED_PACKAGES
+= image
/library
/libtiff
78 REQUIRED_PACKAGES
+= library
/lcms2
79 REQUIRED_PACKAGES
+= library
/libpoppler
80 REQUIRED_PACKAGES
+= library
/print/cups-libs
81 REQUIRED_PACKAGES
+= print/qpdf
82 REQUIRED_PACKAGES
+= system
/library
83 REQUIRED_PACKAGES
+= system
/library
/fontconfig
84 REQUIRED_PACKAGES
+= system
/library
/libdbus
85 REQUIRED_PACKAGES
+= system
/library
/math