commit | author | age
|
bf785d
|
1 |
# |
AW |
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 |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
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. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2023 Andreas Wacknitz |
|
14 |
# |
|
15 |
|
|
16 |
USE_DEFAULT_TEST_TRANSFORMS= yes |
|
17 |
include ../../../make-rules/shared-macros.mk |
|
18 |
|
|
19 |
COMPONENT_NAME= libcupsfilters |
|
20 |
COMPONENT_VERSION= 2.0.0 |
733dd5
|
21 |
COMPONENT_REVISION= 2 |
bf785d
|
22 |
COMPONENT_SUMMARY= libcupsfilters contains all the code of the filters of the former cups-filters package as library functions |
AW |
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:542f2bfbc58136a4743c11dc8c86cee03c9aca705612654e36ac34aa0d9aa601 |
|
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 |
|
38 |
|
|
39 |
include $(WS_MAKE_RULES)/common.mk |
|
40 |
|
|
41 |
PATH= $(PATH.gnu) |
|
42 |
|
|
43 |
COMPONENT_PREP_ACTION += ( cd $(@D); PATH=$(PATH) $(CONFIG_SHELL) autogen.sh ) |
|
44 |
|
|
45 |
CPPFLAGS = -D_POSIX_PTHREAD_SEMANTICS |
|
46 |
CPPFLAGS += -I/usr/include/cups |
|
47 |
CPPFLAGS += -I/usr/include/lcms2 |
|
48 |
|
|
49 |
CFLAGS += $(XPG6MODE) |
|
50 |
|
|
51 |
# Build with the distribution preferred libjpeg implementation |
|
52 |
CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS) |
|
53 |
CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS) |
|
54 |
LDFLAGS += $(JPEG_LDFLAGS) |
|
55 |
|
|
56 |
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
|
57 |
|
|
58 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
59 |
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
|
60 |
CONFIGURE_OPTIONS += --disable-static |
|
61 |
CONFIGURE_OPTIONS += --enable-poppler |
|
62 |
CONFIGURE_OPTIONS += --with-test-font-path=/usr/share/fonts/TrueType/dejavu/DejaVuSans.ttf |
|
63 |
# We don't have mutool (https://mupdf.readthedocs.io/en/latest/mupdf-command-line.html). |
|
64 |
CONFIGURE_OPTIONS += --disable-mutool |
|
65 |
|
|
66 |
COMPONENT_BUILD_ENV += PATH="$(PATH.gnu)" |
|
67 |
COMPONENT_INSTALL_ENV += PATH="$(PATH.gnu)" |
|
68 |
COMPONENT_TEST_ENV += libtool_install_magic='%%%MAGIC variable%%%' |
|
69 |
COMPONENT_TEST_ENV += libtool_execute_magic='%%%MAGIC variable%%%' |
|
70 |
|
|
71 |
# Manually added dependencies |
|
72 |
TEST_REQUIRED_PACKAGES += system/font/truetype/dejavu |
|
73 |
|
|
74 |
# Auto-generated dependencies |
|
75 |
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG) |
|
76 |
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG) |
|
77 |
REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG) |
|
78 |
REQUIRED_PACKAGES += image/library/libexif |
733dd5
|
79 |
REQUIRED_PACKAGES += image/library/libjpeg-turbo |
bf785d
|
80 |
REQUIRED_PACKAGES += image/library/libpng16 |
AW |
81 |
REQUIRED_PACKAGES += image/library/libtiff |
|
82 |
REQUIRED_PACKAGES += library/lcms2 |
|
83 |
REQUIRED_PACKAGES += library/libpoppler |
|
84 |
REQUIRED_PACKAGES += library/print/cups-libs |
|
85 |
REQUIRED_PACKAGES += print/qpdf |
|
86 |
REQUIRED_PACKAGES += system/library |
|
87 |
REQUIRED_PACKAGES += system/library/fontconfig |
|
88 |
REQUIRED_PACKAGES += system/library/libdbus |
|
89 |
REQUIRED_PACKAGES += system/library/math |