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
= libppd
20 COMPONENT_VERSION
= 2.1.0
21 COMPONENT_SUMMARY
= libppd is the legacy support library for PPD files
22 COMPONENT_DESCRIPTION
= LIBPPD is only for legacy PPD file support
! It should not be a motivation to create new PPD files or new PPD extensions
!
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
25 COMPONENT_ARCHIVE_HASH
= sha256
:bc4d7f8b749a8809f532459a5dd2f3513556ea2b96b3e12aced3e078c2697cba
26 COMPONENT_PROJECT_URL
= https
://openprinting.github.io
/
27 COMPONENT_ARCHIVE_URL
= https
://github.com
/OpenPrinting
/$(COMPONENT_NAME
)/releases
/download
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
28 COMPONENT_FMRI
= print/$(COMPONENT_NAME
)
29 COMPONENT_CLASSIFICATION
= System
/Printing
30 COMPONENT_LICENSE
= Apache-2.0
-with-GPL2-LGPL2-Exception
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/common.mk
37 COMPONENT_PREP_ACTION
+= ( cd
$(@D
); PATH
=$(PATH
) $(CONFIG_SHELL
) autogen.sh
)
39 CPPFLAGS
= -D_POSIX_PTHREAD_SEMANTICS
40 CPPFLAGS
+= -I
/usr
/include/cups
44 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
45 COMPONENT_BUILD_ENV
+= PATH
="$(PATH.gnu)"
46 COMPONENT_INSTALL_ENV
+= PATH
="$(PATH.gnu)"
48 CONFIGURE_OPTIONS
+= CFLAGS
="$(CFLAGS)"
49 CONFIGURE_OPTIONS
+= CPPFLAGS
="$(CPPFLAGS)"
50 CONFIGURE_OPTIONS
+= --disable-static
51 CONFIGURE_OPTIONS
+= --localedir
=$(USRSHARELOCALEDIR
)
52 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
53 CONFIGURE_OPTIONS
+= --localstatedir
=$(VARDIR
)
54 # We don't have mutool (https://mupdf.readthedocs.io/en/latest/mupdf-command-line.html).
55 CONFIGURE_OPTIONS
+= --disable-mutool
56 # We don't have acroread.
57 CONFIGURE_OPTIONS
+= --disable-acroread
59 COMPONENT_BUILD_ENV
+= PATH
="$(PATH.gnu)"
60 COMPONENT_INSTALL_ENV
+= PATH
="$(PATH.gnu)"
61 COMPONENT_TEST_ENV
+= libtool_install_magic
='%%%MAGIC variable%%%'
62 COMPONENT_TEST_ENV
+= libtool_execute_magic
='%%%MAGIC variable%%%'
64 # Auto-generated dependencies
65 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
66 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
67 REQUIRED_PACKAGES
+= library
/print/cups-libs
68 REQUIRED_PACKAGES
+= library
/zlib
69 REQUIRED_PACKAGES
+= print/libcupsfilters
70 REQUIRED_PACKAGES
+= system
/library
71 REQUIRED_PACKAGES
+= system
/library
/math