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 | |
| 10 | def version_underscore(v): |
| 11 | return "_".join(v.split(".")) |
| 12 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 13 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/libexif-${PV}.tar.bz2 \ |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 14 | file://0001-Add-serial-tests-config-needed-by-ptest.patch \ |
| 15 | file://run-ptest \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 16 | " |
| 17 | |
| 18 | SRC_URI[sha256sum] = "d47564c433b733d83b6704c70477e0a4067811d184ec565258ac563d8223f6ae" |
| 19 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 20 | inherit autotools gettext github-releases ptest |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 21 | |
| 22 | EXTRA_OECONF += "--disable-docs" |
| 23 | |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 24 | do_compile_ptest() { |
| 25 | oe_runmake -C test buildtest-TESTS |
| 26 | } |
| 27 | |
| 28 | do_install_ptest() { |
| 29 | install ${B}/test/test*[!\.o] ${D}${PTEST_PATH} |
| 30 | for f in ${D}${PTEST_PATH}/test*; do |
| 31 | sed -i "s/\(LD_LIBRARY_PATH=\).*\(:\$LD_LIBRARY_PATH\)\"/\1.\2/" $f |
| 32 | done |
| 33 | |
| 34 | install ${B}/test/Makefile ${D}${PTEST_PATH} |
| 35 | sed -i -e "/^srcdir/c srcdir = \$\{PWD\}" ${D}${PTEST_PATH}/Makefile |
| 36 | |
| 37 | install -d ${D}${PTEST_PATH}/nls |
| 38 | install ${B}/test/nls/*[!\.o] ${D}${PTEST_PATH}/nls |
| 39 | install -d ${D}${PTEST_PATH}/.libs |
| 40 | install ${B}/test/.libs/* ${D}${PTEST_PATH}/.libs |
| 41 | |
| 42 | install ${S}/test/*.sh ${D}${PTEST_PATH} |
| 43 | |
| 44 | install -d ${D}${PTEST_PATH}/testdata |
| 45 | install ${S}/test/testdata/* ${D}${PTEST_PATH}/testdata |
| 46 | } |
| 47 | |
| 48 | RDEPENDS:${PN}-ptest += "make bash" |
| 49 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 50 | BBCLASSEXTEND = "native nativesdk" |