blob: 60c40c0fbd99f43017603811e4d01f2390789dde (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xfractint/xfractint-20.04_p08.ebuild,v 1.1 2008/09/13 22:21:18 spock Exp $
inherit eutils toolchain-funcs
MY_P=${P/_}
DESCRIPTION="a fractal generator"
HOMEPAGE="http://www.fractint.org"
SRC_URI="http://www.fractint.org/ftp/current/linux/${MY_P}.tar.gz"
LICENSE="freedist"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
RDEPEND="x11-libs/libX11"
DEPEND="${RDEPEND}"
# x86? ( dev-lang/nasm )"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/xfractint-20.04p08-Makefile.patch"
}
src_compile() {
# Untested, any x86 archteam dev. is allowed to uncomment this.
local myasm="foo"
# use x86 && myasm="/usr/bin/nasm"
emake CC="$(tc-getCC)" AS="${myasm}" || die "emake failed."
}
src_install() {
emake DESTDIR="${D}/usr" STRIP="true" install || die "emake install failed."
newenvd "${FILESDIR}"/xfractint.envd 60xfractint
}
pkg_postinst() {
elog "XFractInt requires the FRACTDIR variable to be set in order to start."
elog "Please re-login or \`source /etc/profile\` to have this variable set."
}
|