summaryrefslogtreecommitdiff
blob: 291f5da07ccf86568bece7e484b92547506c4961 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/phlib/phlib-1.20.ebuild,v 1.6 2009/09/23 17:25:41 patrick Exp $

inherit eutils

DESCRIPTION="phlib is a collection of support functions and classes used by Goldwater and the DGEE"
HOMEPAGE="http://www.nfluid.com/"
SRC_URI="http://www.nfluid.com/download/src/${P}.tgz"

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

IUSE=""

DEPEND=""

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i s/cflags/CFLAGS/ configure
	epatch "${FILESDIR}/${PN}-types.patch"
	epatch "${FILESDIR}/${PN}-soname.patch"
}

src_compile() {
	CFLAGS="${CFLAGS} -fPIC -Wall"
	econf || die "econf failed"
	emake -j1 || die "emake failed"
}

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