Lines 118-123
Link Here
|
118 |
fi |
118 |
fi |
119 |
|
119 |
|
120 |
if [[ -x ${D}/usr/$(get_libdir)/libgphoto2/print-camera-list ]]; then |
120 |
if [[ -x ${D}/usr/$(get_libdir)/libgphoto2/print-camera-list ]]; then |
|
|
121 |
# Let print-camera-list find libgphoto2.so |
122 |
export LD_LIBRARY_PATH="${D}/usr/$(get_libdir)" |
123 |
# Let libgphoto2 find its camera-modules |
124 |
export CAMLIBS="${D}/usr/$(get_libdir)/libgphoto2/${PV}" |
125 |
|
121 |
HOTPLUG_USERMAP="/etc/hotplug/usb/usbcam-gphoto2.usermap" |
126 |
HOTPLUG_USERMAP="/etc/hotplug/usb/usbcam-gphoto2.usermap" |
122 |
HAL_FDI="/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi" |
127 |
HAL_FDI="/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi" |
123 |
|
128 |
|
Lines 125-137
Link Here
|
125 |
einfo "Generating usbcam-gphoto2.usermap ..." |
130 |
einfo "Generating usbcam-gphoto2.usermap ..." |
126 |
echo "# !!! DO NOT EDIT THIS FILE !!! This file is automatically generated." > ${D}/${HOTPLUG_USERMAP} |
131 |
echo "# !!! DO NOT EDIT THIS FILE !!! This file is automatically generated." > ${D}/${HOTPLUG_USERMAP} |
127 |
echo "# Put your custom entries in /etc/hotplug/usb/usbcam.usermap" >> ${D}/${HOTPLUG_USERMAP} |
132 |
echo "# Put your custom entries in /etc/hotplug/usb/usbcam.usermap" >> ${D}/${HOTPLUG_USERMAP} |
128 |
${D}/usr/$(get_libdir)/libgphoto2/print-camera-list usb-usermap >> ${D}/${HOTPLUG_USERMAP} |
133 |
${D}/usr/$(get_libdir)/libgphoto2/print-camera-list usb-usermap >> ${D}/${HOTPLUG_USERMAP} \ |
129 |
|
134 |
|| die "failed to create usb-usermap" |
130 |
fi |
135 |
fi |
131 |
|
136 |
|
132 |
if use hal; then |
137 |
if use hal; then |
133 |
einfo "Generating HAL FDI files ..." |
138 |
einfo "Generating HAL FDI files ..." |
134 |
${D}/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> ${D}/${HAL_FDI} |
139 |
mkdir -p ${D}/${HAL_FDI%/*} |
|
|
140 |
${D}/usr/$(get_libdir)/libgphoto2/print-camera-list hal-fdi >> ${D}/${HAL_FDI} \ |
141 |
|| die "failed to create hal-fdi" |
135 |
fi |
142 |
fi |
136 |
else |
143 |
else |
137 |
eerror "Unable to find ${ROOT}/usr/$(get_libdir)/libgphoto2/print-camera-list" |
144 |
eerror "Unable to find ${ROOT}/usr/$(get_libdir)/libgphoto2/print-camera-list" |