Magellan Linux

Contents of /branches/magellan-next/core/nas/nas-1.9.2-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8026 - (show annotations) (download)
Wed Jun 29 07:47:11 2011 UTC (12 years, 10 months ago) by niro
File size: 1615 byte(s)
auto added: ver bump to 1.9.2-r4
1 # $Id$
2
3 PNAME="nas"
4 PVER="1.9.2"
5 PBUILD="r4"
6
7 PCATEGORIE="media-libs"
8 STATE="unstable"
9
10 DESCRIPTION="The Network Audio System is a network transparent, client/server audio transport system."
11 HOMEPAGE="http://nas.codebrilliance.com/"
12
13 sminclude xorg
14
15 DEPEND=">= x11-libs/libXt-1
16 >= x11-libs/libXau-1
17 >= x11-libs/libXaw-1
18 >= x11-libs/libX11-1
19 >= x11-libs/libXres-1"
20
21 SDEPEND=">= x11-misc/gccmakedep-1
22 >= x11-misc/imake-1
23 >= app-text/rman-3
24 >= x11-proto/xproto-1"
25
26 SRCFILE="${PNAME}-${PVER}.src.tar.gz"
27 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
28
29 sminclude mbuild mtools
30
31 SRC_URI=(
32 sourceforge://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 mirror://${PNAME}/nas.rc
35 mirror://${PNAME}/nas.confd
36 )
37
38 UP2SUBSTITUTE=".src"
39 UP2DATE="updatecmd_sourceforge ${PNAME}"
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44 xmkmf || die
45 # build without libXp
46 mmake World XPLIB="" || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52
53 mmake DESTDIR=${BINDIR} install || die
54 mmake DESTDIR=${BINDIR} DOCHTMLDIR=/usr/share/doc-to-remove install.man || die
55
56 # rename example conf
57 mv ${BINDIR}/etc/nas/nasd.conf.eg ${BINDIR}/etc/nas/nasd.conf || die
58
59 # set mixer init off, so nas doesn't change the mixer settings
60 sed -i 's,\(MixerInit.*\)"\(.*\)",\1"no",' ${BINDIR}/etc/nas/nasd.conf || die
61
62 # remove html docs, not needed and way too big
63 rm -rf ${BINDIR}/usr/share/doc-to-remove || die
64
65 # we don't need the static lib
66 rm ${BINDIR}/usr/$(mlibdir)/libaudio.a || die
67
68 # install init scripts and configs
69 minstallrc nas.rc nas || die
70 minstallconf nas.confd nas || die
71
72 # docs
73 minstalldocs BUGS BUILDNOTES FAQ HISTORY README RELEASE TODO || die
74 }