summaryrefslogtreecommitdiff
blob: ac40fb7b19dea8a47db62146efb2e9c793f3d726 (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
49
50
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/xclass/xclass-0.7.4.ebuild,v 1.8 2004/04/26 14:44:29 agriffis Exp $

DESCRIPTION="a C++ GUI toolkit for the X windows environment"
HOMEPAGE="http://xclass.sourceforge.net/"
SRC_URI="ftp://mitac11.uia.ac.be/pub/xclass/${P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~sparc ~alpha"

DEPEND="virtual/x11
	virtual/glibc"

src_compile() {
	econf --enable-shared=yes --with-x || die "econf failed"

	# for some reason -fPIC dies while sandboxed ...
	#cd ${S}/lib/libxclass
	#cp Makefile Makefile.old
	#sed -e "s/shared: CXXFLAGS += -fPIC//" \
	#	Makefile.old > Makefile

	cd ${S}
	if [ "`use static`" ] ; then
		emake		|| die "'emake' failed"
	else
		emake shared	|| die "'emake shared' failed"
	fi
}

src_install() {
	rm -rf `find . -name 'Makefile*'`

	dobin config/xc-config

	dodoc doc/*

	dodir /usr/share/xclass
	insinto /usr/share/xclass
	mv "icons/Lock screen.s.xpm" ${D}/usr/share/xclass/
	doins icons/*.xpm

	dodir /usr/include/xclass
	insinto /usr/include/xclass
	doins include/xclass/*.h

	dolib lib/libxclass/lib*
}