summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-03-12 00:50:22 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-03-12 00:50:22 +0000
commit2687dcf023f0fb6dcaae572be793a552ffaf62a8 (patch)
treebdea3e16595463755894b56a01abaf45993d6336 /media-gfx/gphoto
parentnew version (diff)
downloadgentoo-2-2687dcf023f0fb6dcaae572be793a552ffaf62a8.tar.gz
gentoo-2-2687dcf023f0fb6dcaae572be793a552ffaf62a8.tar.bz2
gentoo-2-2687dcf023f0fb6dcaae572be793a552ffaf62a8.zip
fix libtool relink in make install bug
Diffstat (limited to 'media-gfx/gphoto')
-rw-r--r--media-gfx/gphoto/gphoto-2.0.ebuild44
1 files changed, 35 insertions, 9 deletions
diff --git a/media-gfx/gphoto/gphoto-2.0.ebuild b/media-gfx/gphoto/gphoto-2.0.ebuild
index ad519164e6f9..4b7eb3dcc199 100644
--- a/media-gfx/gphoto/gphoto-2.0.ebuild
+++ b/media-gfx/gphoto/gphoto-2.0.ebuild
@@ -11,19 +11,19 @@ HOMEPAGE="http://www.gphoto.org/"
DEPEND="virtual/glibc
>=dev-libs/libusb-0.1.5
>=dev-libs/glib-1.2.10
- >=sys-libs/zlib-1.1.3"
+ >=sys-libs/zlib-1.1.4"
src_compile() {
# -pipe does no work
- env CFLAGS="${CFLAGS/-pipe/}" ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
+ env CFLAGS="${CFLAGS/-pipe/}" ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
|| die
cp libgphoto2/Makefile libgphoto2/Makefile.orig
- sed -e 's:$(prefix)/doc/gphoto2:/usr/share/doc/${PF}:' \
+ sed -e 's:$(prefix)/doc/gphoto2:/usr/share/doc/${PF}:' \
libgphoto2/Makefile.orig >libgphoto2/Makefile
make || die
@@ -31,11 +31,37 @@ src_compile() {
src_install() {
- make prefix=${D}/usr \
- sysconfdir=${D}/etc \
- gphotodocdir=${D}/usr/share/doc/${PF} \
- HTML_DIR=${D}/usr/share/doc/${PF}/sgml \
+ make prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ gphotodocdir=${D}/usr/share/doc/${PF} \
+ HTML_DIR=${D}/usr/share/doc/${PF}/sgml \
install || die
+
+ #same problem as gdk-pixbuf .. do not create all the libs the
+ #first compile
+ if [ ! -e ${D}/usr/lib/libgphoto2.la ]
+ then
+ cd ${S}/libgphoto2/.libs
+ for x in libgphoto2.so*U
+ do
+ realname=${x/U/}
+ mv ${x} ${realname}
+
+ exeinto /usr/lib
+ doexe ${realname}
+ dosym ${realname##*/} /usr/lib/${realname%%.so.*}.so
+ dosym ${realname##*/} /usr/lib/${realname%%.so.*}.so.2
+
+ insinto /usr/lib
+ doins ${realname%%.so.*}.la
+ dosed "s:${S}/libgphoto2_port/libgphoto2_port:/usr/lib:" \
+ /usr/lib/${realname%%.so.*}.la
+ dosed "s:installed=no:installed=yes:" \
+ /usr/lib/${realname%%.so.*}.la
+ dosed "s:relink_command=:\# relink_command=:" \
+ /usr/lib/${realname%%.so.*}.la
+ done
+ fi
dodoc ChangeLog NEWS* README
rm -rf ${D}/usr/share/doc/${PF}/sgml/gphoto2