summaryrefslogtreecommitdiff
path: root/sci-misc/opencsg/opencsg-1.3.1.ebuild
blob: 085c6e8100e79c355a52faa9fe6ceeca690883f3 (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
#
 
EAPI="2"
 
inherit qt4-r2
 
DESCRIPTION="The Constructive Solid Geometry rendering library"
HOMEPAGE="http://www.opencsg.org/"
SRC_URI="http://www.opencsg.org/OpenCSG-${PV}.tar.gz"
 
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
 
DEPEND="media-libs/glew"
RDEPEND="${DEPEND}"
 
S="${WORKDIR}/OpenCSG-${PV}"
 
src_unpack() {
unpack ${A}
 
#Use System glew
rm -Rf ${S}/glew
}
 
src_prepare() {
# We actually want to install somthing
cat << EOF >> src/src.pro
include.path=/usr/include
include.files=../include/*
target.path=/usr/lib
INSTALLS += target include
EOF
 
}
 
src_configure() {
 eqmake4 "${S}"/src/src.pro
}