Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "libgphoto2 allows you to access digital cameras" |
| 2 | SECTION = "libs" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "LGPL-2.1-only" |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=477378d78dfeeaa93826ee4ec7c643fb" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 5 | |
| 6 | DEPENDS = "libtool jpeg virtual/libusb0 libexif zlib libxml2" |
| 7 | |
| 8 | # The .fdi and .rules files were generated with: |
| 9 | # libgphoto2-2.5.8/packaging/generic$ qemu-arm -s 1048576 -r 2.6.24 -L /OE/angstrom-dev/staging/armv5te-angstrom-linux-gnueabi/ .libs/print-camera-list |
| 10 | # They are release specific, so please regen when adding new releases |
| 11 | |
| 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/gphoto/libgphoto2-${PV}.tar.bz2;name=libgphoto2 \ |
| 13 | file://40-libgphoto2.rules \ |
| 14 | file://0001-configure.ac-remove-AM_PO_SUBDIRS.patch \ |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 15 | file://0001-configure-Filter-out-buildpaths-from-CC.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | " |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 17 | SRC_URI[libgphoto2.sha256sum] = "ee61a1dac6ad5cf711d114e06b90a6d431961a6e7ec59f4b757a7cd77b1c0fb4" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | |
| 19 | inherit autotools pkgconfig gettext lib_package |
| 20 | |
| 21 | EXTRA_OECONF = " --with-drivers=all udevscriptdir=${nonarch_base_libdir}/udev ac_cv_lib_ltdl_lt_dlcaller_register=yes" |
| 22 | |
| 23 | PACKAGECONFIG ??= "" |
| 24 | PACKAGECONFIG[gd] = ",--without-gdlib,gd" |
| 25 | PACKAGECONFIG[serial] = "--enable-serial,--disable-serial,lockdev" |
| 26 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 27 | do_configure:prepend() { |
| 28 | rm -rf ${S}/libgphoto2_port/auto-m4/* |
| 29 | rm -rf ${S}/auto-m4/* |
| 30 | } |
| 31 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 32 | do_configure:append() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 33 | cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/ |
| 34 | cd ${S}/libgphoto2_port/ |
| 35 | autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 36 | cd ${S} |
| 37 | } |
| 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 39 | do_install:append() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 40 | install -d ${D}${sysconfdir}/udev/rules.d/ |
| 41 | install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/ |
| 42 | } |
| 43 | |
| 44 | PACKAGES =+ "libgphotoport libgphoto2-camlibs" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | FILES:libgphoto2-camlibs = "${libdir}/libgphoto2*/*/*.so*" |
| 46 | RRECOMMENDS:${PN} = "libgphoto2-camlibs" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 47 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | FILES:libgphotoport = "${libdir}/libgphoto2_port.so.*" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 49 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 50 | FILES:${PN} += "${nonarch_base_libdir}/udev/*" |
| 51 | FILES:${PN}-dbg += "${libdir}/*/*/.debug" |
| 52 | FILES:${PN}-dev += "${libdir}/*/*/*.la" |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 53 | FILES:${PN}-doc += "${datadir}/libgphoto2_port/0.12.?/vcamera/README.txt" |