blob: 7a691c611d499cc3da4e100572958fe65994bbeb [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "libgphoto2 allows you to access digital cameras"
2SECTION = "libs"
3LICENSE = "LGPLv2.1"
4LIC_FILES_CHKSUM = "file://COPYING;md5=0448d3676bc0de00406af227d341a4d1"
5
6DEPENDS = "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
12SRC_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
19SRC_URI[libgphoto2.md5sum] = "084d220d078d28c0c7a3ba13f4476128"
20SRC_URI[libgphoto2.sha256sum] = "e757416d1623e01a9d0d294b2e790162e434c0964f50d3b7ff1a3424b62a2906"
21
22inherit autotools pkgconfig gettext lib_package
23
24EXTRA_OECONF = " --with-drivers=all udevscriptdir=${nonarch_base_libdir}/udev ac_cv_lib_ltdl_lt_dlcaller_register=yes"
25
26PACKAGECONFIG ??= ""
27PACKAGECONFIG[gd] = ",--without-gdlib,gd"
28PACKAGECONFIG[serial] = "--enable-serial,--disable-serial,lockdev"
29
30do_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
37do_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
45PACKAGES =+ "libgphotoport libgphoto2-camlibs"
46FILES_libgphoto2-camlibs = "${libdir}/libgphoto2*/*/*.so*"
47RRECOMMENDS_${PN} = "libgphoto2-camlibs"
48
49FILES_libgphotoport = "${libdir}/libgphoto2_port.so.*"
50
51FILES_${PN} += "${nonarch_base_libdir}/udev/* ${datadir}/hal"
52FILES_${PN}-dbg += "${libdir}/*/*/.debug"
53FILES_${PN}-dev += "${libdir}/*/*/*.la"
54FILES_${PN}-doc += "${datadir}/libgphoto2_port/0.12.0/vcamera/README.txt"