summaryrefslogtreecommitdiff
blob: e839f725569a405ffcfdbf498f1f5b29a50f619b (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
64
65
66
67
68
69
70
# 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.5 2002/08/23 11:31:56 seemant 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/"

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

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 )"

SLOT="0"
LICENSE="Sleepycat"
KEYWORDS="x86"

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} --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*
}