blob: e284f0bafbe4514434054e025dfd2a29bcf9620e (
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
71
72
73
74
75
76
77
78
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/vgui/vgui-1.90a.ebuild,v 1.4 2004/07/01 08:04:57 eradicator Exp $
MY_PN="v"
MY_PV="${PV/a}"
MY_P="${MY_PN}-${MY_PV}"
DESCRIPTION="V is a free portable C++ GUI Framework"
HOMEPAGE="http://vgui.sf.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
mirror://sourceforge/${PN}/${MY_PN}-${PV}-patch.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND="virtual/x11
virtual/libc"
S=${WORKDIR}/${P}
src_unpack() {
unpack ${MY_P}.tar.gz
unpack ${MY_PN}-${PV}-patch.tar.gz
# renames ./home/vgui to ${S}
mv ${WORKDIR}/home/vgui ${S}
# put ./home/help inside ${S}
mv ${WORKDIR}/home/help ${S}
cd ${S}
for i in srcx/vtimer.cxx includex/v/vtimer.h; do
sed -e 's|notUsed|notUsedVariable|g' -i ${i}
done
}
src_compile() {
local sedexp
# OpenGL support is broken upstream :-(
#if use opengl; then
# sedexp="s|^NeedGLw.*|NeedGLw = no|"
#else
sedexp="s|^NeedGLw.*|NeedGLw = yes|"
#fi
sedexp="${sedexp};s|^ARCH.*|ARCH = linuxelf|"
sedexp="${sedexp};s|^HOMEV.*|HOMEV = ${S}|"
# Motif support is broken upstream
#if use motif; then
# sedexp="${sedexp};s|^TOOLKIT.*|TOOLKIT = Motif|"
#else
sedexp="${sedexp};s|^TOOLKIT.*|TOOLKIT = Athena|"
#fi
# set up config stuff
sed -e "${sedexp}" -i Config.mk
# cflag borkage
local oldcflags="${CFLAGS}"
export CFLAGS=""
echo "CFLAGS += ${oldcflags}" >> Config.mk
emake vlib || die
emake vtest utils examples || die
emake || die
}
src_install() {
insinto /usr/include/v
doins includex/v/*
rm bin/ThisIs
dobin bin/*
dolib.so lib/libVx.so.${MY_PV} lib/libVxgl.so.${MY_PV}
local docs=/usr/share/doc/${PF}/html
dodir ${docs}
mv help/vrefman/ ${D}${docs}
}
|