ifolder/dev-db/libflaim/libflaim-4.9.1046.ebuild

40 lines
1.1 KiB
Bash
Raw Normal View History

# Copyright 1999-2010 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"
SRC_URI="mirror://sourceforge/flaim/files/stable/flaim/source/${P}.tar.gz
http://ftp.disconnected-by-peer.at/flaim/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
RESTRICT="mirror"
RDEPEND="!dev-lib/libflaimtk"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/fortify-source.patch
epatch ${FILESDIR}/libflaim-gcc43.patch
epatch ${FILESDIR}/libflaim-gcc44.patch
epatch ${FILESDIR}/libflaim-4.9.1052-optflags.patch
epatch ${FILESDIR}/do-not-compile-with-werror.patch
}
src_compile() {
make DESTDIR=${D} CXXFLAGS="${CXXFLAGS}" OSTYPE=`uname -s` HOSTTYPE=`uname -m` || \
die "Error compiling ${PN}"
}
src_install() {
make DESTDIR=${D} install OSTYPE=`uname -s` HOSTTYPE=`uname -m` || \
die "Error installing ${PN}"
}