summaryrefslogtreecommitdiff
blob: 533f134db5a5e03b6780fcc2e77f1b7c55726b3f (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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/openctm/openctm-1.0.3.ebuild,v 1.4 2014/08/18 23:11:10 amynka Exp $

EAPI=5

inherit eutils multilib versionator flag-o-matic

MY_PF=OpenCTM-${PV}

DESCRIPTION="OpenCTM - the Open Compressed Triangle Mesh."
HOMEPAGE="http://openctm.sourceforge.net"
SRC_URI="mirror://debian/pool/main/o/${PN}/${PN}_${PV}+dfsg1.orig.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="dev-libs/tinyxml
	media-libs/freeglut
	media-libs/glew
	media-libs/pnglite
	virtual/opengl"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_PF}"

src_prepare() {
	epatch "${FILESDIR}"/openctm-fix-makefiles.patch
	mv Makefile.linux Makefile

	# do not use strip
	sed -i -e 's:\(LDFLAGS.*\)-s :\1 :g' \
		"${S}"/Makefile \
		"${S}"/*/Makefile.linux || die
}

src_compile() {
	emake CC=$(tc-getCC) CXX=$(tc-getCXX)
}