summaryrefslogtreecommitdiff
blob: 8112bf060c987c9b20a64c9fea5755b22e46dadc (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
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-misc/magicpoint/magicpoint-1.09a-r1.ebuild,v 1.2 2002/07/11 06:30:16 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="an X11 based presentation tool"
SRC_URI="ftp://ftp.mew.org/pub/MagicPoint/${P}.tar.gz"
HOMEPAGE="http://www.mew.org/mgp/"

DEPEND="virtual/x11
	gif? ( >=media-libs/libungif-4.0.1 )
	imlib? ( media-libs/imlib )
	truetype? ( >=media-libs/freetype-1.3.1 )"

RDEPEND="${DEPEND}
	nls? ( sys-devel/gettext )"

src_compile() {
 	
	local myconf

	use gif	\
		&& myconf="${myconf} --enable-gif"	\
		|| myconf="${myconf} --disable-gif"

	use imlib	\
		&& myconf="${myconf} --enable-imlib"	\
		|| myconf="${myconf} --disable-imlib"

	use truetype	\
		&& myconf="${myconf} --enable-freetype"	\
		|| myconf="${myconf} --disable-freetype"

	use nls	\
		&& myconf="${myconf} --enable-locale"	\
		|| myconf="${myconf} --disable-locale"

	export LIBS="-L/usr/lib/ -L/usr/X11R6/lib/ -lX11"

	./configure	\
		--with-xa	\
		${myconf} || die
	
	xmkmf || die
	make Makefiles || die
	make clean || die
	make || die
}

src_install() {                               
	make 	\
		DESTDIR=${D}	\
		install || die

	make 	\
		DESTDIR=${D}	\
		DOCHTMLDIR=/usr/share/doc/${P}	\
		MANPATH=/usr/share/man	\
		MANSUFFIX=1	\
		install.man || die

	dodoc COPYRIGHT* FAQ README* RELNOTES SYNTAX TODO* USAGE*
}