Andreas Wacknitz
2024-02-25 b528926e9c1b5cc2f296c0d06b330d30634c1824
commit | author | age
99867c 1 #
AP 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 2016 Alexander Pyhalov
41f360 14 # Copyright 2022 Andreas Wacknitz
99867c 15 #
AP 16
92dab1 17 BUILD_STYLE= cmake
de671f 18 OPENSSL_VERSION= 3.1
e45c10 19 USE_DEFAULT_TEST_TRANSFORMS= yes
b52892 20 USE_PARALLEL_BUILD= yes
99867c 21 include ../../../make-rules/shared-macros.mk
AP 22
23 COMPONENT_NAME= qpdf
b52892 24 COMPONENT_VERSION= 11.9.0
99867c 25 COMPONENT_SUMMARY= QPDF is a command-line program that does structural, content-preserving transformations on PDF files
AP 26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
b52892 28 COMPONENT_ARCHIVE_HASH= sha256:9f5d6335bb7292cc24a7194d281fc77be2bbf86873e8807b85aeccfbff66082f
41f360 29 COMPONENT_ARCHIVE_URL=    https://downloads.sourceforge.net/qpdf/$(COMPONENT_ARCHIVE)
AW 30 COMPONENT_PROJECT_URL=    https://qpdf.sourceforge.net/
99867c 31 COMPONENT_FMRI= print/qpdf
AP 32 COMPONENT_CLASSIFICATION= System/Printing
33 COMPONENT_LICENSE=      Artistic 2.0
34 COMPONENT_LICENSE_FILE= Artistic-2.0
35
41f360 36 include $(WS_MAKE_RULES)/common.mk
99867c 37
ef6627 38 PATH= $(PATH.gnu)
99867c 39
92dab1 40 # build with the distribution preferred libjpeg implementation
AW 41 CFLAGS   += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
42 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
43 LDFLAGS  += $(JPEG_LDFLAGS)
99867c 44
92dab1 45 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
AW 46 CMAKE_OPTIONS += -DBUILD_STATIC_LIBS=OFF
99867c 47
92dab1 48 # Manually added dependencies
f0b229 49 # qpdf on SPARC needs math library
e45c10 50 ifeq ($(strip $(MACH)),sparc)
f0b229 51 REQUIRED_PACKAGES += system/library/math
e45c10 52 endif
f0b229 53
92dab1 54 # libqpdf.so seems to depend on them but they are not properly detected (why?):
AW 55 REQUIRED_PACKAGES += compress/zstd
56 REQUIRED_PACKAGES += library/brotli
57 REQUIRED_PACKAGES += library/desktop/p11-kit
58 REQUIRED_PACKAGES += library/gmp
59 REQUIRED_PACKAGES += library/libffi
60 REQUIRED_PACKAGES += library/libidn2
61 REQUIRED_PACKAGES += library/libtasn1
62 REQUIRED_PACKAGES += library/libunistring
63 REQUIRED_PACKAGES += library/nettle
99867c 64
41f360 65 # Auto-generated dependencies
AW 66 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
67 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
c32ab6 68 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
41f360 69 REQUIRED_PACKAGES += library/gnutls-3
de671f 70 REQUIRED_PACKAGES += library/security/openssl-31
99867c 71 REQUIRED_PACKAGES += library/zlib
AP 72 REQUIRED_PACKAGES += system/library