Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1779 - (hide annotations) (download)
Fri May 29 20:28:26 2009 UTC (15 years ago) by niro
File size: 2104 byte(s)
auto added: ver bump to 2.4.6-r1
1 niro 1779 # $Id$
2    
3     PNAME="libgphoto2"
4     PVER="2.4.6"
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.81
15     >= media-libs/libexif-0.6.17
16     >= sys-apps/hal-0.5.11
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
25    
26     SRC_URI=(
27     sourceforge://gphoto/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${PNAME}-2.4.0-rpm.patch
30     )
31    
32     UP2DATE="updatecmd_sourceforge gphoto ${PNAME/2/}"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37     cd ${SRCDIR}
38    
39     # avoid rpm build
40     mpatch ${PNAME}-2.4.0-rpm.patch || die
41     }
42    
43     src_compile()
44     {
45     cd ${SRCDIR}
46    
47     CFLAGS="${CFLAGS} -DCANON_EXPERIMENTAL_20D"
48    
49     mconfigure \
50     udevscriptdir=/lib/udev \
51     GTKDOC=/bin/true \
52     --disable-docs \
53     --disable-gp2ddb \
54     --with-rpmbuild=/bin/true \
55     --with-drivers=all \
56     --with-libexif \
57     --enable-nls \
58     --enable-bonjour \
59     --enable-hal \
60     || die
61    
62     mmake || die
63     }
64    
65     src_install()
66     {
67     cd ${SRCDIR}
68    
69     # needed directories
70     minstalldir /etc/hotplug/usb || die
71     minstalldir /lib || die
72     minstalldir /usr/$(mlibdir)/libgphoto2 || die
73    
74     mmake DESTDIR=${BINDIR} install || die
75    
76     HAL_FDI="/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
77     UDEV_RULES="/etc/udev/rules.d/70-libgphoto2.rules"
78     CAM_LIST="/usr/$(mlibdir)/libgphoto2/print-camera-list"
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}${CAM_LIST} hal-fdi >> ${BINDIR}/${HAL_FDI} || die
88    
89     echo "Generating UDEV-rules ..."
90     minstalldir /${UDEV_RULES%/*} || die
91     ${BINDIR}${CAM_LIST} udev-rules version 0.98 group plugdev >> ${BINDIR}/${UDEV_RULES} || die
92     }
93    
94     preinstall()
95     {
96     # adds plugdev group
97     ${MLIBDIR}/mgroupadd -o "-g 302" plugdev
98     }

Properties

Name Value
svn:keywords Id