Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | SUMMARY = "Library for reading extended image information (EXIF) from JPEG files" |
| 2 | DESCRIPTION = "libexif is a library for parsing, editing, and saving EXIF data. It is \ |
| 3 | intended to replace lots of redundant implementations in command-line \ |
| 4 | utilities and programs with GUIs." |
| 5 | HOMEPAGE = "https://libexif.github.io/" |
| 6 | SECTION = "libs" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 7 | LICENSE = "LGPL-2.1-only" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad" |
| 9 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 10 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/libexif-${PV}.tar.bz2 \ |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 11 | file://0001-Add-serial-tests-config-needed-by-ptest.patch \ |
| 12 | file://run-ptest \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 13 | " |
| 14 | |
| 15 | SRC_URI[sha256sum] = "d47564c433b733d83b6704c70477e0a4067811d184ec565258ac563d8223f6ae" |
| 16 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 17 | inherit autotools gettext github-releases ptest |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 18 | |
| 19 | EXTRA_OECONF += "--disable-docs" |
| 20 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 21 | do_compile_ptest() { |
| 22 | oe_runmake -C test buildtest-TESTS |
| 23 | } |
| 24 | |
| 25 | do_install_ptest() { |
| 26 | install ${B}/test/test*[!\.o] ${D}${PTEST_PATH} |
| 27 | for f in ${D}${PTEST_PATH}/test*; do |
| 28 | sed -i "s/\(LD_LIBRARY_PATH=\).*\(:\$LD_LIBRARY_PATH\)\"/\1.\2/" $f |
| 29 | done |
| 30 | |
| 31 | install ${B}/test/Makefile ${D}${PTEST_PATH} |
| 32 | sed -i -e "/^srcdir/c srcdir = \$\{PWD\}" ${D}${PTEST_PATH}/Makefile |
| 33 | |
| 34 | install -d ${D}${PTEST_PATH}/nls |
| 35 | install ${B}/test/nls/*[!\.o] ${D}${PTEST_PATH}/nls |
| 36 | install -d ${D}${PTEST_PATH}/.libs |
| 37 | install ${B}/test/.libs/* ${D}${PTEST_PATH}/.libs |
| 38 | |
| 39 | install ${S}/test/*.sh ${D}${PTEST_PATH} |
| 40 | |
| 41 | install -d ${D}${PTEST_PATH}/testdata |
| 42 | install ${S}/test/testdata/* ${D}${PTEST_PATH}/testdata |
| 43 | } |
| 44 | |
| 45 | RDEPENDS:${PN}-ptest += "make bash" |
| 46 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 47 | BBCLASSEXTEND = "native nativesdk" |