/[gentoo-alt]/trunk/dev-libs/glib/glib-1.2.10-r6.ebuild
Gentoo

Contents of /trunk/dev-libs/glib/glib-1.2.10-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (show annotations) (download)
Wed Sep 15 18:16:27 2004 UTC (14 years, 3 months ago) by angusyoung
File size: 2113 byte(s)
Initial Release

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit libtool gnuconfig flag-o-matic eutils
6
7 DESCRIPTION="The GLib library of C routines"
8 HOMEPAGE="http://www.gtk.org/"
9 SRC_URI="ftp://ftp.gtk.org/pub/gtk/v1.2/${P}.tar.gz
10 ftp://ftp.gnome.org/pub/GNOME/stable/sources/glib/${P}.tar.gz"
11
12 LICENSE="LGPL-2.1"
13 SLOT="1"
14 KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390 ~macos ~x86-fbsd"
15 IUSE=""
16
17 DEPEND="virtual/libc"
18
19 src_unpack() {
20 unpack ${A}
21
22 # Allow glib to build with gcc-3.4.x
23 # Closes Bug #47047
24 epatch ${FILESDIR}/${P}-gcc34-fix.patch
25 }
26
27 src_compile() {
28 elibtoolize
29
30 # elibtoolize breaks (see brad's comments below, left here for
31 # historical purposes) but libtoolize won't work either because
32 # there is no libtoolize in the stage1 and it brings in nasty
33 # deps if you try to install it during bootstrap.
34 # elibtoolize seems to be working decently on x86. As a temporary
35 # fix for amd64 users to be able to bootstrap, we run gnuconfig.
36 # The glib .a's will be broken, but it's a start.
37 # See bug 47950 for more information.
38 # -- avenj@gentoo.org 19 Apr 04
39
40 gnuconfig_update
41
42
43 # For some reason, elibtoolize stopped doing its job in the last couple
44 # of days on this ebuild, and amd64 won't compile it anymore, need to
45 # manually run libtoolize, I need to inspect the libtool.eclass I guess.
46 # Brad House <brad_mssw@gentoo.org> 1/2/2004
47 # libtoolize -c -f
48
49 # Bug 48839: pam fails to build on ia64
50 # The problem is that it attempts to link a shared object against
51 # libglib.a; this library needs to be built with -fPIC. Since
52 # this package doesn't contain any significant binaries, build the
53 # whole thing with -fPIC (23 Apr 2004 agriffis)
54 append-flags -fPIC
55
56 if use x86-fbsd ; then
57 econf \
58 --disable-threads \
59 --enable-debug=yes || die
60
61 else
62 econf \
63 --with-threads=posix \
64 --enable-debug=yes || die
65 fi
66
67 emake || die
68 }
69
70 src_install() {
71 einstall || die
72
73 ( cd ${D}/usr/lib ; chmod 755 libgmodule-1.2.so.* )
74
75 dodoc AUTHORS ChangeLog README* INSTALL NEWS
76 dohtml -r docs
77 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20