blob: 6161741ed26bf9c8425d7cbc3dc010b9564cedc2 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/vdkbuilder/vdkbuilder-2.4.0.ebuild,v 1.7 2005/10/07 18:08:43 flameeyes Exp $
IUSE="nls debug"
MY_P=${PN}2-${PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="The Visual Development Kit used for VDK Builder."
HOMEPAGE="http://vdkbuilder.sf.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="ppc sparc x86"
DEPEND=">=dev-libs/vdk-2.4.0"
custom_cflags() {
for files in *
do
if [ -e ${files}/Makefile ]
then
sed -e "s/CFLAGS = .*/CFLAGS = ${CFLAGS} -I../include/" -i ${files}/Makefile
sed -e "s/CXXFLAGS = .*/CFLAGS = ${CXXFLAGS} -I../include/" -i ${files}/Makefile
fi
done
}
src_compile() {
cd ${S}
local myconf=""
use debug \
&& myconf="${myconf} --enable-devel=yes" \
|| myconf="${myconf} --enable-devel=no"
econf \
$(use_enable nls) \
--disable-vdktest \
${myconf} || die "econf failed"
custom_cflags
emake || die
}
src_install () {
einstall || die
dodoc AUTHORS BUGS ChangeLog INSTALL NEWS README TODO
}
|