diff options
Diffstat (limited to 'meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.8.bb')
-rw-r--r-- | meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.8.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.8.bb b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.8.bb new file mode 100644 index 000000000..3de694247 --- /dev/null +++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.8.bb | |||
@@ -0,0 +1,55 @@ | |||
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] = "873ab01aced49c6b92a98e515db5dcef" | ||
20 | SRC_URI[libgphoto2.sha256sum] = "031a262e342fae43f724afe66787947ce1fb483277dfe5a8cf1fbe92c58e27b6" | ||
21 | |||
22 | inherit autotools pkgconfig gettext lib_package | ||
23 | |||
24 | EXTRA_OECONF = " --with-drivers=all udevscriptdir=/lib/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}/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 | RDEPENDS_${PN} = "bash" | ||
49 | |||
50 | FILES_libgphotoport = "${libdir}/libgphoto2_port.so.*" | ||
51 | |||
52 | FILES_${PN} += "${nonarch_base_libdir}/udev/* ${datadir}/hal" | ||
53 | FILES_${PN}-dbg += "${libdir}/*/*/.debug" | ||
54 | FILES_${PN}-dev += "${libdir}/*/*/*.la" | ||
55 | |||