Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "libgphoto2 allows you to access digital cameras" |
| 2 | SECTION = "libs" |
| 3 | LICENSE = "LGPLv2.1" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0448d3676bc0de00406af227d341a4d1" |
| 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://10-camera-libgphoto2-device.fdi \ |
| 14 | file://10-camera-libgphoto2.fdi \ |
| 15 | file://40-libgphoto2.rules \ |
| 16 | file://0001-configure.ac-remove-AM_PO_SUBDIRS.patch \ |
| 17 | " |
| 18 | |
| 19 | SRC_URI[libgphoto2.md5sum] = "084d220d078d28c0c7a3ba13f4476128" |
| 20 | SRC_URI[libgphoto2.sha256sum] = "e757416d1623e01a9d0d294b2e790162e434c0964f50d3b7ff1a3424b62a2906" |
| 21 | |
| 22 | inherit autotools pkgconfig gettext lib_package |
| 23 | |
| 24 | EXTRA_OECONF = " --with-drivers=all udevscriptdir=${nonarch_base_libdir}/udev ac_cv_lib_ltdl_lt_dlcaller_register=yes" |
| 25 | |
| 26 | PACKAGECONFIG ??= "" |
| 27 | PACKAGECONFIG[gd] = ",--without-gdlib,gd" |
| 28 | PACKAGECONFIG[serial] = "--enable-serial,--disable-serial,lockdev" |
| 29 | |
| 30 | do_configure_append() { |
| 31 | cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/libgphoto2_port/po/ |
| 32 | cd ${S}/libgphoto2_port/ |
| 33 | autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths |
| 34 | cd ${S} |
| 35 | } |
| 36 | |
| 37 | do_install_append() { |
| 38 | install -d ${D}${datadir}/hal/fdi/information/20thirdparty |
| 39 | install -m 0644 ${WORKDIR}/*.fdi ${D}${datadir}/hal/fdi/information/20thirdparty/ |
| 40 | |
| 41 | install -d ${D}${sysconfdir}/udev/rules.d/ |
| 42 | install -m 0755 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/ |
| 43 | } |
| 44 | |
| 45 | PACKAGES =+ "libgphotoport libgphoto2-camlibs" |
| 46 | FILES_libgphoto2-camlibs = "${libdir}/libgphoto2*/*/*.so*" |
| 47 | RRECOMMENDS_${PN} = "libgphoto2-camlibs" |
| 48 | |
| 49 | FILES_libgphotoport = "${libdir}/libgphoto2_port.so.*" |
| 50 | |
| 51 | FILES_${PN} += "${nonarch_base_libdir}/udev/* ${datadir}/hal" |
| 52 | FILES_${PN}-dbg += "${libdir}/*/*/.debug" |
| 53 | FILES_${PN}-dev += "${libdir}/*/*/*.la" |
| 54 | FILES_${PN}-doc += "${datadir}/libgphoto2_port/0.12.0/vcamera/README.txt" |