/[gentoo-x86]/media-libs/fidlib/fidlib-0.9.10.ebuild
Gentoo

Contents of /media-libs/fidlib/fidlib-0.9.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Jun 13 12:59:29 2012 UTC (2 years, 1 month ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for x86, wrt bug #417127

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/fidlib/fidlib-0.9.10.ebuild,v 1.4 2012/05/25 14:03:38 ago Exp $
4
5 EAPI=4
6
7 inherit toolchain-funcs flag-o-matic eutils multilib
8
9 DESCRIPTION="Run-time filter design and execution library"
10 HOMEPAGE="http://uazu.net/fidlib/"
11 SRC_URI="http://uazu.net/fidlib/${P}.tgz"
12
13 LICENSE="GPL-2 LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE=""
17
18 doecho() {
19 echo "$@"
20 "$@" || die
21 }
22
23 src_prepare() {
24 epatch "${FILESDIR}"/${P}-cpp-extern.patch
25
26 # Avoid ICE under gcc-4.6, fixed in 4.6.3
27 if [[ $(gcc-version) == "4.6" && $(gcc-micro-version) -le 2 ]] ; then
28 replace-flags -O? -O0
29 fi
30 }
31
32 src_compile() {
33 # build library
34 doecho $(tc-getCC) ${CFLAGS} -DT_LINUX ${LDFLAGS} -Wl,-soname,libfidlib.so.${PV:0:1} \
35 -fPIC -shared fidlib.c -lm -o libfidlib.so.${PV:0:1}
36
37 # build command-line tool
38 doecho $(tc-getCC) ${CFLAGS} ${LDFLAGS} firun.c -lm ./libfidlib.so.${PV:0:1} -o firun
39 }
40
41 src_install() {
42 dobin firun
43 dolib.so libfidlib.so.${PV:0:1}
44 dosym libfidlib.so.${PV:0:1} /usr/$(get_libdir)/libfidlib.so
45
46 insinto /usr/include/fidlib
47 doins fidlib.h
48
49 dodoc NEWS README fidlib.txt firun.txt
50 }

  ViewVC Help
Powered by ViewVC 1.1.20