Magellan Linux

Contents of /trunk/core/libgphoto2/libgphoto2-2.4.7-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3564 - (show annotations) (download)
Mon Oct 26 14:07:08 2009 UTC (14 years, 6 months ago) by niro
File size: 1947 byte(s)
auto added: ver bump to 2.4.7-r1
1 # $Id$
2
3 PNAME="libgphoto2"
4 PVER="2.4.7"
5 PBUILD="r1"
6
7 PCATEGORIE="media-libs"
8 STATE="disabled"
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.86
15 >= media-libs/libexif-0.6.18
16 >= sys-apps/hal-0.5.13
17 >= net-dns/avahi-0.6.25"
18
19 SDEPEND=">= dev-util/pkgconfig-0.23"
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/}"
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 \
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 }

Properties

Name Value
svn:keywords Id