blob: 2dd7b684e4b8bd10726a8d9defea7250122a6632 [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 Williams169d7bc2024-01-05 11:33:25 -06009SRCREV = "d8371889d070d2f88636434ebd8412708a63e54e"
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}