Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3586 - (hide annotations) (download)
Mon Oct 26 17:47:22 2009 UTC (14 years, 6 months ago) by niro
File size: 2021 byte(s)
auto added: ver bump to 2.4.7-r1
1 niro 3563 # $Id$
2    
3     PNAME="libgphoto2"
4     PVER="2.4.7"
5     PBUILD="r1"
6    
7     PCATEGORIE="media-libs"
8 niro 3586 STATE="unstable"
9 niro 3563
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 niro 3565 sminclude mtools
25 niro 3563
26     SRC_URI=(
27     sourceforge://gphoto/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     )
30    
31     UP2DATE="updatecmd_sourceforge gphoto ${PNAME/2/}"
32    
33 niro 3565 src_prepare()
34     {
35     munpack ${SRCFILE} || die
36     cd ${SRCDIR}
37    
38     mlibtoolize || die
39     }
40    
41 niro 3563 src_compile()
42     {
43     cd ${SRCDIR}
44    
45     CFLAGS="${CFLAGS} -DCANON_EXPERIMENTAL_20D"
46    
47     mconfigure \
48     udevscriptdir=/lib/udev \
49     GTKDOC=/bin/true \
50     --disable-docs \
51     --disable-gp2ddb \
52     --with-rpmbuild=/bin/true \
53     --with-drivers=all \
54     --with-libexif \
55     --enable-nls \
56     --enable-bonjour \
57     --enable-hal \
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     HAL_FDI="/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
75     UDEV_RULES="/etc/udev/rules.d/70-libgphoto2.rules"
76     CAM_LIST="/usr/$(mlibdir)/libgphoto2/print-camera-list"
77    
78     # let print-camera-list find libgphoto2.so
79     export LD_LIBRARY_PATH="${BINDIR}/usr/$(mlibdir)"
80     # let libgphoto2 find its camera-modules
81     export CAMLIBS="${BINDIR}/usr/$(mlibdir)/libgphoto2/${PVER}"
82    
83     echo "Generating HAL FDI files ..."
84     minstalldir /${HAL_FDI%/*} || die
85     ${BINDIR}${CAM_LIST} hal-fdi >> ${BINDIR}/${HAL_FDI} || die
86    
87     echo "Generating UDEV-rules ..."
88     minstalldir /${UDEV_RULES%/*} || die
89     ${BINDIR}${CAM_LIST} udev-rules version 0.98 group plugdev >> ${BINDIR}/${UDEV_RULES} || die
90     }
91    
92     preinstall()
93     {
94     # adds plugdev group
95     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
96     }

Properties

Name Value
svn:keywords Id