summaryrefslogtreecommitdiff
blob: a1945ea5cd87c127d45259b1b726d6ce0c1dd18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-1.2.10.ebuild,v 1.1 2001/04/08 16:26:14 pete Exp $

A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="The GLib library of C routines"
SRC_URI="ftp://ftp.gtk.org/pub/gtk/v1.2/${A}
	 ftp://ftp.gnome.org/pub/GNOME/stable/sources/glib/${A}
	 http://ftp.gnome.org/pub/GNOME/stable/sources/glib/${A}"
HOMEPAGE="http://www.gtk.org/"

DEPEND="virtual/glibc"

src_compile() {
    local myconf
    
    if [ "${DEBUG}" ]
    then
	myconf="--enable-debug=yes"
    else
	myconf="--enable-debug=no"
    fi
    
    try ./configure --host=${CHOST} --prefix=/usr \
	--infodir=/usr/share/info \
	--mandir=/usr/share/man  \
	--with-threads=posix ${myconf}
    try make
}

src_install() {
    try make install DESTDIR=${D}
    
    dodoc AUTHORS ChangeLog COPYING README* INSTALL NEWS
    cd docs
    docinto html
    dodoc glib.html glib_toc.html
}