Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | DESCRIPTION = "PDF transformation/inspection software" |
| 2 | HOMEPAGE = "http://qpdf.sourceforge.net" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 5 | |
| 6 | DEPENDS = "zlib jpeg ${@bb.utils.contains('PACKAGECONFIG', 'gnutls', 'gnutls', 'openssl', d)}" |
| 7 | |
| 8 | SRC_URI = "git://github.com/qpdf/qpdf.git;protocol=https;branch=main" |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 9 | SRCREV = "d8371889d070d2f88636434ebd8412708a63e54e" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 10 | |
| 11 | inherit cmake pkgconfig gettext |
| 12 | |
| 13 | EXTRA_OECMAKE = ' \ |
| 14 | -DRANDOM_DEVICE="/dev/random" \ |
| 15 | -DBUILD_STATIC_LIBS=OFF \ |
| 16 | -DALLOW_CRYPTO_NATIVE=OFF \ |
| 17 | -DUSE_IMPLICIT_CRYPTO=OFF \ |
| 18 | ' |
| 19 | |
| 20 | LDFLAGS:append:mipsarch = " -latomic" |
| 21 | LDFLAGS:append:riscv32 = " -latomic" |
| 22 | |
| 23 | S="${WORKDIR}/git" |
| 24 | |
| 25 | PACKAGECONFIG ?= "gnutls" |
| 26 | PACKAGECONFIG[gnutls] = "-DREQUIRE_CRYPTO_GNUTLS=ON,-DREQUIRE_CRYPTO_OPENSSL=ON" |
| 27 | |
| 28 | do_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 | } |