summaryrefslogtreecommitdiff
blob: 54ce9ac75c05bbb3e908636b015e3779f15708b1 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit autotools

DESCRIPTION="creates normal/height maps from high resolution meshes for games or 3d applications"
HOMEPAGE="http://epsylon.rptd.ch/denormgen.php"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

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

DEPEND=">=x11-libs/fox-1.2"
RDEPEND="${DEPEND}"

src_unpack(){
	unpack ${A}
	cd "${S}"
	eautoreconf
}

src_install(){
	emake DESTDIR="${D}" install || die "emake install failed"

	# http://bugs.gentoo.org/show_bug.cgi?id=134456#c7
	#
	# the blender build does not yet have a fixed place
	# where scripts go into. the 2.41 version uses
	# /usr/lib/blender/scripts but the next version already uses
	# /usr/share/blender/scripts/ . once this directory
	# is fixed the following line has to be changed
	# to copy the script into the right place instead
	# of the current placeholder directory.
	insinto /usr/share/${P}/scripts
	doins scripts/dragengine_dim_export.py

	dodoc AUTHORS ChangeLog README TODO
}

pkg_postinst(){
	elog "The .dim file format changed with this version."
	elog "Old .dim files are no more compatible with this release."
}