summaryrefslogtreecommitdiff
blob: 5c693c51b30afe0b2bbea52651cebc7591f51816 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/openmotif/openmotif-2.2.2-r1.ebuild,v 1.2 2002/10/04 06:40:12 vapier Exp $

S=${WORKDIR}/openMotif-2.2.2

DESCRIPTION="Open Motif"
SRC_URI="ftp://ftp.sgi.com/other/motifzone/2.2/src/openMotif-2.2.2.tar.gz"
HOMEPAGE="http://www.motifzone.org/"

LICENSE="MOTIF"
SLOT="0"
KEYWORDS="x86 ppc -sparc -sparc64"

DEPEND="virtual/glibc
	virtual/x11"

src_unpack() {

	unpack ${A}
	cd ${S}
	patch -p1 < ${FILESDIR}/animate-demo.diff || die "patch failed"
	patch -p1 < ${FILESDIR}/include-order.diff || die "patch failed"
}

src_compile() { 

	./configure \
		--prefix=/usr/X11R6 \
		--sysconfdir=/etc/X11 \
		--with-x \
		--with-gnu-ld \
		--host=${CHOST} || die "configuration failed"

	make || die "make failed"
	
}

src_install() {

	make DESTDIR=${D} VARDIR=${D}/var/X11/ install || die "install failed"

}