2009-12-03 11:04:10 +01:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header:
|
|
|
|
inherit eutils
|
|
|
|
|
|
|
|
DESCRIPTION="FLAIM is an embeddable cross-platform database engine that provides
|
|
|
|
a rich, powerful, easy-to-use feature set."
|
|
|
|
HOMEPAGE="http://flaim.sourceforge.net"
|
2009-12-05 16:48:37 +01:00
|
|
|
SRC_URI="mirror://sourceforge/flaim/files/stable/flaim/source/${P}.tar.gz
|
|
|
|
http://ftp.mars.arge.at/flaim/${P}.tar.gz"
|
2009-12-03 11:04:10 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~x86 ~amd64 ~ppc"
|
|
|
|
RESTRICT="mirror"
|
|
|
|
|
|
|
|
RDEPEND="!dev-lib/libflaimtk"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
cd ${S}
|
2009-12-05 13:58:32 +01:00
|
|
|
epatch ${FILESDIR}/fortify-source.patch
|
2009-12-03 11:04:10 +01:00
|
|
|
epatch ${FILESDIR}/libflaim-gcc43.patch
|
|
|
|
epatch ${FILESDIR}/libflaim-gcc44.patch
|
2009-12-05 13:58:32 +01:00
|
|
|
epatch ${FILESDIR}/libflaim-4.9.1052-optflags.patch
|
|
|
|
epatch ${FILESDIR}/do-not-compile-with-werror.patch
|
2009-12-03 11:04:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2009-12-05 13:58:32 +01:00
|
|
|
make DESTDIR=${D} CXXFLAGS="${CXXFLAGS}" OSTYPE=`uname -s` HOSTTYPE=`uname -m` || \
|
2009-12-03 11:04:10 +01:00
|
|
|
die "Error compiling ${PN}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
make DESTDIR=${D} install OSTYPE=`uname -s` HOSTTYPE=`uname -m` || \
|
|
|
|
die "Error installing ${PN}"
|
|
|
|
}
|