/[gentoo-x86]/media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.102.20.ebuild
Gentoo

Diff of /media-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.102.20.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-sound/jack-audio-connection-kit/Attic/jack-audio-connection-kit-0.102.20.ebuild,v 1.4 2007/04/22 12:03:29 armin76 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-sound/jack-audio-connection-kit/Attic/jack-audio-connection-kit-0.102.20.ebuild,v 1.5 2007/05/01 00:04:49 genone Exp $
4 4
5inherit flag-o-matic eutils multilib 5inherit flag-o-matic eutils multilib check-kernel
6 6
7NETJACK=netjack-0.12rc1 7NETJACK=netjack-0.12rc1
8 8
9DESCRIPTION="A low-latency audio server" 9DESCRIPTION="A low-latency audio server"
10HOMEPAGE="http://www.jackaudio.org" 10HOMEPAGE="http://www.jackaudio.org"
31 if ! use sndfile ; then 31 if ! use sndfile ; then
32 ewarn "sndfile not in USE flags. jack_rec will not be installed!" 32 ewarn "sndfile not in USE flags. jack_rec will not be installed!"
33 fi 33 fi
34 34
35 if use caps; then 35 if use caps; then
36 if [[ "${KV:0:3}" == "2.4" ]]; then 36 if is_2_4_kernel; then
37 einfo "will build jackstart for 2.4 kernel" 37 elog "will build jackstart for 2.4 kernel"
38 else 38 else
39 einfo "using compatibility symlink for jackstart" 39 elog "using compatibility symlink for jackstart"
40 fi 40 fi
41 fi 41 fi
42 42
43 if use netjack; then 43 if use netjack; then
44 einfo "including support for experimental netjack, see http://netjack.sourceforge.net/" 44 elog "including support for experimental netjack, see http://netjack.sourceforge.net/"
45 fi 45 fi
46} 46}
47 47
48src_unpack() { 48src_unpack() {
49 unpack ${A} 49 unpack ${A}
81 elif (! grep sse /proc/cpuinfo >/dev/null) ; then 81 elif (! grep sse /proc/cpuinfo >/dev/null) ; then
82 ewarn "Can't build cpudetection (dynsimd) without cpu sse support. see bug #136565." 82 ewarn "Can't build cpudetection (dynsimd) without cpu sse support. see bug #136565."
83 elif (! grep mmx /proc/cpuinfo >/dev/null) ; then 83 elif (! grep mmx /proc/cpuinfo >/dev/null) ; then
84 ewarn "Can't build cpudetection (dynsimd) without cpu mmx support. see bug #136565." 84 ewarn "Can't build cpudetection (dynsimd) without cpu mmx support. see bug #136565."
85 else 85 else
86 einfo "Enabling cpudetection (dynsimd). Adding -mmmx, -msse, -m3dnow and -O2 to CFLAGS." 86 elog "Enabling cpudetection (dynsimd). Adding -mmmx, -msse, -m3dnow and -O2 to CFLAGS."
87 myconf="${myconf} --enable-dynsimd" 87 myconf="${myconf} --enable-dynsimd"
88 88
89 filter-flags -O* 89 filter-flags -O*
90 append-flags -mmmx -msse -m3dnow -O2 90 append-flags -mmmx -msse -m3dnow -O2
91 fi 91 fi
108 $(use_enable sse) \ 108 $(use_enable sse) \
109 --with-pic \ 109 --with-pic \
110 ${myconf} || die "configure failed" 110 ${myconf} || die "configure failed"
111 emake || die "compilation failed" 111 emake || die "compilation failed"
112 112
113 if use caps && [[ "${KV:0:3}" == "2.4" ]]; then 113 if use caps && is_2_4_kernel; then
114 einfo "Building jackstart for 2.4 kernel" 114 elog "Building jackstart for 2.4 kernel"
115 cd ${S}/jackd 115 cd ${S}/jackd
116 emake jackstart || die "jackstart build failed." 116 emake jackstart || die "jackstart build failed."
117 fi 117 fi
118 118
119 if use netjack; then 119 if use netjack; then
125 125
126src_install() { 126src_install() {
127 make DESTDIR=${D} datadir=/usr/share/doc install || die 127 make DESTDIR=${D} datadir=/usr/share/doc install || die
128 128
129 if use caps; then 129 if use caps; then
130 if [[ "${KV:0:3}" == "2.4" ]]; then 130 if is_2_4_kernel; then
131 cd ${S}/jackd 131 cd ${S}/jackd
132 dobin jackstart 132 dobin jackstart
133 else 133 else
134 dosym /usr/bin/jackd /usr/bin/jackstart 134 dosym /usr/bin/jackd /usr/bin/jackstart
135 fi 135 fi

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20