blob: 92655e3c6f216714a7b5f1f6ec4161b206f33fb3 [file] [log] [blame]
Patrick Williamsac13d5f2023-11-24 18:59:46 -06001DESCRIPTION = "PDF transformation/inspection software"
2HOMEPAGE = "http://qpdf.sourceforge.net"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
5
6DEPENDS = "zlib jpeg ${@bb.utils.contains('PACKAGECONFIG', 'gnutls', 'gnutls', 'openssl', d)}"
7
8SRC_URI = "git://github.com/qpdf/qpdf.git;protocol=https;branch=main"
Patrick Williams705982a2024-01-12 09:51:57 -06009SRCREV = "986d2485784d57d7a84cc5af50e67bde827b0dc9"
Patrick Williamsac13d5f2023-11-24 18:59:46 -060010
11inherit cmake pkgconfig gettext
12
13EXTRA_OECMAKE = ' \
14 -DRANDOM_DEVICE="/dev/random" \
15 -DBUILD_STATIC_LIBS=OFF \
16 -DALLOW_CRYPTO_NATIVE=OFF \
17 -DUSE_IMPLICIT_CRYPTO=OFF \
18'
19
20LDFLAGS:append:mipsarch = " -latomic"
21LDFLAGS:append:riscv32 = " -latomic"
22
23S="${WORKDIR}/git"
24
25PACKAGECONFIG ?= "gnutls"
26PACKAGECONFIG[gnutls] = "-DREQUIRE_CRYPTO_GNUTLS=ON,-DREQUIRE_CRYPTO_OPENSSL=ON"
27
28do_install:append() {
29 # Change the fully defined path on the target
30 sed -i -e 's|${STAGING_LIBDIR}|${libdir}|g' ${D}${libdir}/cmake/${BPN}/libqpdfTargets.cmake
31}