Contents of /trunk/core/libgphoto2/libgphoto2-2.4.0-r2.smage2
Parent Directory | Revision Log
Revision 1641 -
(show annotations)
(download)
Tue May 12 21:16:52 2009 UTC (15 years, 4 months ago) by niro
File size: 2360 byte(s)
Tue May 12 21:16:52 2009 UTC (15 years, 4 months ago) by niro
File size: 2360 byte(s)
-moved to 'core'
1 | # $Header: /magellan-cvs/smage/libgphoto2/libgphoto2-2.4.0-r2.smage2,v 1.1 2008/03/21 21:21:46 niro Exp $ |
2 | |
3 | PNAME="libgphoto2" |
4 | PVER="2.4.0" |
5 | PBUILD="r2" |
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.73 |
15 | >= media-libs/libexif-0.6 |
16 | >= sys-apps/hal-0.5.10" |
17 | |
18 | SDEPEND=">= dev-util/pkgconfig-0.20" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mtools |
24 | |
25 | SRC_URI=( |
26 | sourceforge://gphoto/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${PNAME}-${PVER}-rpm.patch |
29 | mirror://${PNAME}/${PNAME}-${PVER}-udev-rules-fix.patch |
30 | ) |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # avoid rpm build |
38 | mpatch ${PNAME}-${PVER}-rpm.patch || die |
39 | |
40 | # fix for udev >= 098 rules generation |
41 | # fixes udev rules for >= linux-2.6.22 too |
42 | mpatch ${PNAME}-${PVER}-udev-rules-fix.patch || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | CFLAGS="${CFLAGS} -DCANON_EXPERIMENTAL_20D" |
50 | |
51 | mconfigure \ |
52 | udevscriptdir=/lib/udev \ |
53 | --with-rpmbuild=/bin/true \ |
54 | --with-drivers=all \ |
55 | --with-exif-prefix=/usr \ |
56 | --enable-nls \ |
57 | GTKDOC=/bin/true \ |
58 | || die |
59 | |
60 | mmake || die |
61 | } |
62 | |
63 | src_install() |
64 | { |
65 | cd ${SRCDIR} |
66 | |
67 | # needed directories |
68 | minstalldir /etc/hotplug/usb || die |
69 | minstalldir /lib || die |
70 | minstalldir /usr/$(mlibdir)/libgphoto2 || die |
71 | |
72 | mmake DESTDIR=${BINDIR} install || die |
73 | |
74 | # udev helpers install is broken |
75 | #mv ${BINDIR}/usr/$(mlibdir)/udev ${BINDIR}/lib || die |
76 | |
77 | HAL_FDI="/usr/share/hal/fdi/information/10freedesktop/10-camera-libgphoto2.fdi" |
78 | UDEV_RULES="/etc/udev/rules.d/99-libgphoto2.rules" |
79 | |
80 | # let print-camera-list find libgphoto2.so |
81 | export LD_LIBRARY_PATH="${BINDIR}/usr/$(mlibdir)" |
82 | # let libgphoto2 find its camera-modules |
83 | export CAMLIBS="${BINDIR}/usr/$(mlibdir)/libgphoto2/${PVER}" |
84 | |
85 | echo "Generating HAL FDI files ..." |
86 | minstalldir /${HAL_FDI%/*} || die |
87 | ${BINDIR}/usr/$(mlibdir)/libgphoto2/print-camera-list hal-fdi >> ${BINDIR}/${HAL_FDI} || die |
88 | |
89 | echo "Generating UDEV-rules ..." |
90 | minstalldir /${UDEV_RULES%/*} || die |
91 | ${BINDIR}/usr/$(mlibdir)/libgphoto2/print-camera-list \ |
92 | udev-rules-0.98 group plugdev mode 0660 >> ${BINDIR}/${UDEV_RULES} || die |
93 | } |
94 | |
95 | preinstall() |
96 | { |
97 | # adds plugdev group |
98 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev |
99 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |