blob: 98b7c16d79645caa5129e2c5f4ff47c42330cf05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/nas/nas-1.7-r1.ebuild,v 1.10 2006/01/07 03:30:31 vapier Exp $
inherit eutils
DESCRIPTION="Network Audio System"
HOMEPAGE="http://radscan.com/nas.html"
SRC_URI="http://radscan.com/nas/${P}.src.tar.gz"
LICENSE="X11"
SLOT="0"
KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 sparc x86"
IUSE=""
RDEPEND="|| (
(
x11-libs/libXt
x11-libs/libXau
x11-libs/libXaw
x11-libs/libX11
x11-libs/libXres
x11-libs/libXTrap
x11-libs/libXp
)
virtual/x11
)"
DEPEND="${RDEPEND}
|| (
( x11-misc/gccmakedep x11-misc/imake app-text/rman x11-proto/xproto )
virtual/x11
)"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-header.patch
epatch "${FILESDIR}"/${P}-gcc4.patch
sed -i \
-e "/^[ ]*CDEBUGFLAGS/s:=.*:=${CFLAGS}:" \
-e "/^[ ]*CXXDEBUGFLAGS/s:=.*:=${CXXFLAGS}:" \
$(find -name Makefile) || die
}
src_compile() {
xmkmf || die
touch doc/man/lib/tmp.{_man,man}
emake World || die
}
src_install () {
make DESTDIR=${D} install || die
make DESTDIR=${D} install.man || die
for i in ${D}/usr/X11R6/man/man?/*.?x
do
gzip -9 $i
done
dodoc BUGS BUILDNOTES FAQ HISTORY README RELEASE TODO
mv ${D}/usr/X11R6/lib/X11/doc/html ${D}/usr/share/doc/${P}/
rmdir ${D}/usr/X11R6/lib/X11/doc
# rename example nasd.conf.eg to nasd.conf and change it so that NAS
# doesn't change mixer's settings (inspired by Debian package):
mv ${D}/etc/nas/nasd.conf.eg ${D}/etc/nas/nasd.conf
dosed 's,\(MixerInit.*\)"\(.*\)",\1"no",' /etc/nas/nasd.conf
newconfd "${FILESDIR}"/nas.conf.d nas
newinitd "${FILESDIR}"/nas.init.d nas
}
pkg_postinst() {
einfo "To enable NAS on boot you will have to add it to the"
einfo "default profile, issue the following command as root to do so."
einfo ""
einfo "rc-update add nas default"
}
|