/[gentoo-x86]/media-sound/ecasound/ecasound-2.9.0.ebuild
Gentoo

Contents of /media-sound/ecasound/ecasound-2.9.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jul 6 18:53:41 2013 UTC (6 years, 6 months ago) by ottxor
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +5 -5 lines
added prefix support

(Portage version: 2.2.0_alpha186/cvs/Linux x86_64, signed Manifest commit with key C2000586)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ecasound-2.9.0.ebuild,v 1.3 2012/12/11 19:12:32 ago Exp $
4
5 EAPI=4
6 PYTHON_DEPEND="python? 2"
7
8 inherit eutils python autotools
9
10 DESCRIPTION="a package for multitrack audio processing"
11 HOMEPAGE="http://ecasound.seul.org/ecasound"
12 SRC_URI="http://ecasound.seul.org/download/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="1"
16 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
17 IUSE="alsa audiofile debug doc jack libsamplerate lv2 mikmod ncurses oil osc oss
18 python ruby sndfile static-libs test"
19 REQUIRED_USE="test? ( lv2 )"
20
21 RDEPEND="sys-libs/readline
22 alsa? ( media-libs/alsa-lib )
23 audiofile? ( media-libs/audiofile )
24 jack? ( media-sound/jack-audio-connection-kit )
25 libsamplerate? ( media-libs/libsamplerate )
26 lv2? ( >=media-libs/lilv-0.5.0 )
27 media-libs/ladspa-sdk
28 mikmod? ( media-libs/libmikmod:0 )
29 ncurses? ( sys-libs/ncurses )
30 oil? ( dev-libs/liboil )
31 osc? ( media-libs/liblo )
32 ruby? ( dev-lang/ruby )
33 sndfile? ( media-libs/libsndfile )"
34 DEPEND="${RDEPEND}
35 virtual/pkgconfig"
36
37 pkg_setup() {
38 if use python ; then
39 python_set_active_version 2
40 python_pkg_setup
41 fi
42 }
43
44 src_prepare() {
45 epatch "${FILESDIR}"/${PN}-2.8.1-ldflags.patch
46
47 if use python ; then
48 sed -i -e "s:\$(ecasoundc_libs):\0 $(python_get_library -l):" \
49 pyecasound/Makefile.am || die "sed failed"
50 fi
51
52 eautoreconf
53 }
54
55 src_configure() {
56 local pyconf
57
58 if use python ; then
59 pyconf="--with-python-includes=${EPREFIX}$(python_get_includedir)
60 --with-python-modules=${EPREFIX}$(python_get_libdir)"
61 fi
62
63 econf \
64 --disable-arts \
65 --enable-shared \
66 --enable-sys-readline \
67 --with-largefile \
68 $(use_enable alsa) \
69 $(use_enable audiofile) \
70 $(use_enable debug) \
71 $(use_enable jack) \
72 $(use_enable libsamplerate) \
73 $(use_enable lv2 liblilv) \
74 $(use_enable ncurses) \
75 $(use_enable oil liboil) \
76 $(use_enable osc liblo) \
77 $(use_enable oss) \
78 $(use_enable python pyecasound) \
79 $(use_enable ruby rubyecasound) \
80 $(use_enable sndfile) \
81 $(use_enable static-libs static) \
82 ${pyconf}
83 }
84
85 src_install() {
86 default
87
88 if use doc ; then
89 dohtml Documentation/*.html
90 dodoc Documentation/programmers_guide/ecasound_programmers_guide.txt
91 fi
92
93 prune_libtool_files
94 }
95
96 pkg_postinst() {
97 use python && python_mod_optimize ecacontrol.py eci.py pyeca.py
98 }
99
100 pkg_postrm() {
101 use python && python_mod_cleanup ecacontrol.py eci.py pyeca.py
102 }

  ViewVC Help
Powered by ViewVC 1.1.20