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 2016 Alexander Pyhalov
14 # Copyright 2022 Andreas Wacknitz
19 USE_DEFAULT_TEST_TRANSFORMS
= yes
20 USE_PARALLEL_BUILD
= yes
21 include ..
/..
/..
/make-rules
/shared-macros.mk
24 COMPONENT_VERSION
= 11.9.1
25 COMPONENT_SUMMARY
= QPDF is a command-line program that does structural
, content-preserving transformations on PDF files
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:2ba4d248f9567a27c146b9772ef5dc93bd9622317978455ffe91b259340d13d1
29 COMPONENT_ARCHIVE_URL
= https
://downloads.sourceforge.net
/qpdf
/$(COMPONENT_ARCHIVE
)
30 COMPONENT_PROJECT_URL
= https
://qpdf.sourceforge.net
/
31 COMPONENT_FMRI
= print/qpdf
32 COMPONENT_CLASSIFICATION
= System
/Printing
33 COMPONENT_LICENSE
= Artistic
2.0
34 COMPONENT_LICENSE_FILE
= Artistic-2.0
36 include $(WS_MAKE_RULES
)/common.mk
40 CMAKE_OPTIONS
+= -DCMAKE_BUILD_TYPE
=Release
41 CMAKE_OPTIONS
+= -DBUILD_STATIC_LIBS
=OFF
43 # Manually added dependencies
44 # qpdf on SPARC needs math library
45 ifeq ($(strip $(MACH
)),sparc
)
46 REQUIRED_PACKAGES
+= system
/library
/math
49 # libqpdf.so seems to depend on them but they are not properly detected (why?):
50 REQUIRED_PACKAGES
+= compress
/zstd
51 REQUIRED_PACKAGES
+= library
/brotli
52 REQUIRED_PACKAGES
+= library
/desktop
/p11-kit
53 REQUIRED_PACKAGES
+= library
/gmp
54 REQUIRED_PACKAGES
+= library
/libffi
55 REQUIRED_PACKAGES
+= library
/libidn2
56 REQUIRED_PACKAGES
+= library
/libtasn1
57 REQUIRED_PACKAGES
+= library
/libunistring
58 REQUIRED_PACKAGES
+= library
/nettle
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
62 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
63 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
64 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
65 REQUIRED_PACKAGES
+= image
/library
/libjpeg-turbo
66 REQUIRED_PACKAGES
+= library
/gnutls-3
67 REQUIRED_PACKAGES
+= library
/zlib
68 REQUIRED_PACKAGES
+= system
/library