summaryrefslogtreecommitdiff
blob: 80a8a97adf04cb4755a8e0cfbcb529106eb56b9e (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
46
47
48
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/blt/blt-2.4u.ebuild,v 1.2 2002/10/04 05:30:22 vapier Exp $


S="${WORKDIR}/${PN}${PV}"
SRC_URI="http://www.netsw.org/softeng/lang/tcl/BLT2.4u.tar.gz"
HOMEPAGE="http://incrtcl.sourceforge.net/blt/"
DESCRIPTION="an extension to the Tk toolkit"

DEPEND=">=dev-lang/tk-8.0"
RDEPEND="${DEPEND}"

SLOT="0"
LICENSE="BSD"
KEYWORDS="x86"

# hyper-optimizations untested...
#
src_compile() {

	cd ${S}
	./configure --host=${CHOST} \
				--prefix=/usr \
				--mandir=/usr/share/man \
				--infodir=/usr/share/info \
				--with-x \
				--with-tcl=/usr/lib || die "./configure failed"
					
	emake CFLAGS="${CFLAGS}" || die
	
}

src_install() {
	
	dodir /usr/bin
	dodir /usr/lib/blt2.4/demos/bitmaps
	dodir /usr/share/man/mann
	dodir /usr/include
	emake \
			prefix=${D}/usr \
			exec_prefix=${D}/usr \
			mandir=${D}/usr/share/man \
			infodir=${D}/usr/share/info \
			install || die	
	
	dodoc NEWS PROBLEMS README
}