blob: 34d6c73391eaad90f760d4b2d458cab0779b1bc3 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/xforms/xforms-1.0.ebuild,v 1.10 2005/07/31 04:22:27 vanquirius Exp $
S=${WORKDIR}/${P}-release
DESCRIPTION="A graphical user interface toolkit for X"
HOMEPAGE="http://world.std.com/~xforms/"
SRC_URI="ftp://ncmir.ucsd.edu/pub/xforms/OpenSource/${P}-release.tgz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc amd64"
DEPEND="virtual/x11
>=sys-apps/sed-4
media-libs/jpeg"
IUSE=""
src_unpack() {
unpack $A
cd ${WORKDIR}/${P}-release
# use custom CFLAGS
sed -i -e "s:CDEBUGFLAGS =:CDEBUGFLAGS = ${CFLAGS} #:" \
-e "s:CDEBUGFLAGS =:CDEBUGFLAGS = ${CFLAGS} #:" Imakefile
}
src_compile() {
xmkmf -a
sed -i -e s/'demos$'// Makefile
# use custom CFLAGS
sed -i -e "s:CDEBUGFLAGS =:CDEBUGFLAGS = ${CFLAGS} #:" \
-e "s:CDEBUGFLAGS =:CDEBUGFLAGS = ${CFLAGS} #:" Makefile
make || die
}
src_install () {
make DESTDIR=${D} install || die
}
|