/[gentoo-x86]/media-gfx/gphoto/gphoto-2.0.ebuild
Gentoo

Contents of /media-gfx/gphoto/gphoto-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Apr 1 01:00:05 2002 UTC (18 years, 3 months ago) by spider
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
theese are the ones moved to gphoto2

1 # Copyright 1999-2000 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Author AJ Lewis <aj@gentoo.org>
4
5 MY_P="${PN}2-`echo ${PV} |sed -e 's:_::'`"
6 S=${WORKDIR}/${MY_P}
7 DESCRIPTION="free, redistributable digital camera software application"
8 SRC_URI="http://www.gphoto.net/dist/${MY_P}.tar.gz"
9 HOMEPAGE="http://www.gphoto.org/"
10
11 DEPEND="virtual/glibc
12 >=dev-libs/libusb-0.1.5
13 >=dev-libs/glib-1.2.10
14 >=sys-libs/zlib-1.1.4"
15
16
17 src_compile() {
18
19 # -pipe does no work
20 env CFLAGS="${CFLAGS/-pipe/}" ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 || die
24
25 cp libgphoto2/Makefile libgphoto2/Makefile.orig
26 sed -e 's:$(prefix)/doc/gphoto2:/usr/share/doc/${PF}:' \
27 libgphoto2/Makefile.orig >libgphoto2/Makefile
28
29 make || die
30 }
31
32 src_install() {
33
34 make prefix=${D}/usr \
35 sysconfdir=${D}/etc \
36 gphotodocdir=${D}/usr/share/doc/${PF} \
37 HTML_DIR=${D}/usr/share/doc/${PF}/sgml \
38 install || die
39
40 #same problem as gdk-pixbuf .. do not create all the libs the
41 #first compile
42 if [ ! -e ${D}/usr/lib/libgphoto2.la ]
43 then
44 cd ${S}/libgphoto2/.libs
45 for x in libgphoto2.so*U
46 do
47 realname=${x/U/}
48 mv ${x} ${realname}
49
50 exeinto /usr/lib
51 doexe ${realname}
52 dosym ${realname##*/} /usr/lib/${realname%%.so.*}.so
53 dosym ${realname##*/} /usr/lib/${realname%%.so.*}.so.2
54
55 insinto /usr/lib
56 doins ${realname%%.so.*}.la
57 dosed "s:${S}/libgphoto2_port/libgphoto2_port:/usr/lib:" \
58 /usr/lib/${realname%%.so.*}.la
59 dosed "s:installed=no:installed=yes:" \
60 /usr/lib/${realname%%.so.*}.la
61 dosed "s:relink_command=:\# relink_command=:" \
62 /usr/lib/${realname%%.so.*}.la
63 done
64 fi
65
66 dodoc ChangeLog NEWS* README
67 rm -rf ${D}/usr/share/doc/${PF}/sgml/gphoto2
68 }
69

  ViewVC Help
Powered by ViewVC 1.1.20