Contents of /branches/magellan-next/core/libgphoto2/libgphoto2-2.4.10.1-r1.smage2
Parent Directory | Revision Log
Revision 7122 -
(show annotations)
(download)
Wed Sep 29 09:34:27 2010 UTC (14 years ago) by niro
File size: 2026 byte(s)
Wed Sep 29 09:34:27 2010 UTC (14 years ago) by niro
File size: 2026 byte(s)
-switched to libgphoto2-2.4.10.1, which fixes some compile issues - see:http://sourceforge.net/mailarchive/forum.php?thread_name=4C68E4DB.2050708%40redhat.com&forum_name=gphoto-devel
1 | # $Id: libgphoto2-2.4.7-r1.smage2 3952 2009-11-14 13:12:55Z niro $ |
2 | |
3 | PNAME="libgphoto2" |
4 | PVER="2.4.10.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="media-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="libgphoto2 is a portable library and gives access to more than 400 digital cameras." |
11 | HOMEPAGE="http://www.gphoto.org/" |
12 | |
13 | DEPEND=">= dev-libs/libusb-0.1.12 |
14 | >= sys-apps/usbutils-0.90 |
15 | >= media-libs/libexif-0.6.19 |
16 | >= sys-apps/hal-0.5.14 |
17 | >= net-dns/avahi-0.6.27" |
18 | |
19 | SDEPEND=">= dev-util/pkgconfig-0.25" |
20 | |
21 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
23 | |
24 | sminclude mtools mbuild |
25 | |
26 | SRC_URI=( |
27 | sourceforge://gphoto/${SRCFILE} |
28 | mirror://${PNAME}/${SRCFILE} |
29 | ) |
30 | |
31 | UP2DATE="updatecmd_sourceforge gphoto ${PNAME/2/} - ${PNAME}" |
32 | |
33 | src_compile() |
34 | { |
35 | cd ${SRCDIR} |
36 | |
37 | CFLAGS="${CFLAGS} -DCANON_EXPERIMENTAL_20D" |
38 | |
39 | mconfigure \ |
40 | udevscriptdir=/lib/udev \ |
41 | GTKDOC=/bin/true \ |
42 | --disable-docs \ |
43 | --disable-gp2ddb \ |
44 | --with-rpmbuild=/bin/true \ |
45 | --with-drivers=all \ |
46 | --with-libexif=auto \ |
47 | --enable-nls \ |
48 | --enable-bonjour \ |
49 | --enable-hal \ |
50 | || die |
51 | |
52 | mmake || die |
53 | } |
54 | |
55 | src_install() |
56 | { |
57 | cd ${SRCDIR} |
58 | |
59 | # needed directories |
60 | minstalldir /etc/hotplug/usb || die |
61 | minstalldir /lib || die |
62 | minstalldir /usr/$(mlibdir)/libgphoto2 || die |
63 | |
64 | mmake DESTDIR=${BINDIR} install || die |
65 | |
66 | HAL_FDI="/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi" |
67 | UDEV_RULES="/etc/udev/rules.d/70-libgphoto2.rules" |
68 | CAM_LIST="/usr/$(mlibdir)/libgphoto2/print-camera-list" |
69 | |
70 | # let print-camera-list find libgphoto2.so |
71 | export LD_LIBRARY_PATH="${BINDIR}/usr/$(mlibdir)" |
72 | # let libgphoto2 find its camera-modules |
73 | export CAMLIBS="${BINDIR}/usr/$(mlibdir)/libgphoto2/${PVER}" |
74 | |
75 | echo "Generating HAL FDI files ..." |
76 | minstalldir /${HAL_FDI%/*} || die |
77 | ${BINDIR}${CAM_LIST} hal-fdi >> ${BINDIR}/${HAL_FDI} || die |
78 | |
79 | echo "Generating UDEV-rules ..." |
80 | minstalldir /${UDEV_RULES%/*} || die |
81 | ${BINDIR}${CAM_LIST} udev-rules version 0.98 group plugdev >> ${BINDIR}/${UDEV_RULES} || die |
82 | } |
83 | |
84 | preinstall() |
85 | { |
86 | # adds plugdev group |
87 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev |
88 | } |