/[gentoo-x86]/media-sound/rezound/rezound-0.12.3_beta-r2.ebuild
Gentoo

Contents of /media-sound/rezound/rezound-0.12.3_beta-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Jul 25 10:58:41 2012 UTC (2 years ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -5 lines
Move patches in FILESDIR to the patch tarball, fix audiofile detection (bug #415981), fix build with gcc 4.7 (bug #425280), fix some autoreconf warnings.

(Portage version: 2.2.0_alpha120/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-sound/rezound/rezound-0.12.3_beta-r2.ebuild,v 1.7 2012/06/08 13:25:19 polynomial-c Exp $
4
5 EAPI=4
6 MY_P=${P/_/}
7 PATCHLEVEL=6
8
9 inherit autotools eutils flag-o-matic
10
11 DESCRIPTION="Sound editor and recorder"
12 HOMEPAGE="http://rezound.sourceforge.net"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
14 mirror://gentoo/${P}-patches-${PATCHLEVEL}.tar.bz2"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 ~ppc -sparc x86"
19 IUSE="16bittmp alsa flac jack nls oss portaudio soundtouch vorbis"
20
21 RDEPEND="=sci-libs/fftw-2*
22 >=x11-libs/fox-1.6.19:1.6
23 >=media-libs/audiofile-0.2.3
24 >=media-libs/ladspa-sdk-1.12
25 >=media-libs/ladspa-cmt-1.15
26 alsa? ( >=media-libs/alsa-lib-1.0 )
27 flac? ( >=media-libs/flac-1.1.2[cxx] )
28 jack? ( media-sound/jack-audio-connection-kit )
29 portaudio? ( >=media-libs/portaudio-18 )
30 soundtouch? ( >=media-libs/libsoundtouch-1.2.1 )
31 vorbis? ( media-libs/libvorbis media-libs/libogg )"
32 DEPEND="${RDEPEND}
33 sys-devel/bison
34 virtual/pkgconfig
35 sys-devel/flex
36 dev-util/reswrap"
37
38 S=${WORKDIR}/${MY_P}
39
40 src_prepare() {
41 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
42 AT_M4DIR="config/m4" eautoreconf
43 }
44
45 src_configure() {
46 # fix compilation errors on ppc, where some
47 # of the required functions aren't defined
48 use ppc && epatch "${FILESDIR}/undefined-functions.patch"
49
50 # following features can't be disabled if already installed:
51 # -> flac, oggvorbis, soundtouch
52 local sampletype="--enable-internal-sample-type=float"
53 use 16bittmp && sampletype="--enable-internal-sample-type=int16"
54
55 # -O3 isn't safe wrt #275437
56 replace-flags -O[3-9] -O2
57
58 econf \
59 $(use_enable alsa) \
60 $(use_enable jack) \
61 $(use_enable nls) \
62 $(use_enable oss) \
63 $(use_enable portaudio) \
64 $(use_enable flac) \
65 $(use_enable vorbis) \
66 $(use_enable soundtouch) \
67 ${sampletype} \
68 --enable-ladspa \
69 --enable-largefile
70 }
71
72 src_install() {
73 make DESTDIR="${D}" install
74
75 # remove wrong doc directory
76 rm -rf "${D}/usr/doc"
77
78 dodoc docs/{AUTHORS,NEWS,README*}
79 dodoc docs/{TODO_FOR_USERS_TO_READ,*.txt}
80 newdoc README README.rezound
81
82 docinto code
83 dodoc docs/code/*
84 newicon src/images/icon_logo_32.gif rezound.gif
85 make_desktop_entry rezound Rezound rezound.gif AudioVideo
86 }

  ViewVC Help
Powered by ViewVC 1.1.20