Magellan Linux

Annotation of /trunk/extras/nas/nas-1.9.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19700 - (hide annotations) (download)
Fri Oct 11 09:56:43 2013 UTC (10 years, 8 months ago) by niro
File size: 1817 byte(s)
auto added: ver bump to 1.9.4-r1
1 niro 19700 # $Id$
2    
3     PNAME="nas"
4     PVER="1.9.4"
5     PBUILD="r1"
6    
7     PCAT="media-libs"
8    
9     DESCRIPTION="The Network Audio System is a network transparent, client/server audio transport system."
10     HOMEPAGE="http://radscan.com/nas.html"
11    
12     sminclude xorg
13    
14     DEPEND=">= x11-libs/libXt-1
15     >= x11-libs/libXau-1
16     >= x11-libs/libXaw-1
17     >= x11-libs/libX11-1
18     >= x11-libs/libXres-1"
19    
20     SDEPEND=">= x11-misc/gccmakedep-1
21     >= x11-misc/imake-1
22     >= x11-proto/xproto-1"
23    
24     SRCFILE="${PNAME}-${PVER}.src.tar.gz"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     sminclude mtools iconv systemd
28    
29     SRC_URI=(
30     sourceforge://${PNAME}/${SRCFILE}
31     mirror://${PNAME}/${SRCFILE}
32     mirror://${PNAME}/nas.confd
33     mirror://${PNAME}/nas.service
34     )
35    
36     UP2SUBSTITUTE=".src"
37     UP2DATE="updatecmd ${HOMEPAGE} | sed 's:\ (.*)::g' | firsttarball gz"
38    
39     src_prepare()
40     {
41     munpack ${SRCFILE} || die
42     cd ${SRCDIR}
43    
44     # convert to utf-8
45     miconvutf8 HISTORY || die
46     }
47    
48     src_compile()
49     {
50     cd ${SRCDIR}
51     xmkmf || die
52     # build without libXp
53     mmake World XPLIB="" || die
54     }
55    
56     src_install()
57     {
58     cd ${SRCDIR}
59    
60     mmake DESTDIR=${BINDIR} install || die
61     mmake DESTDIR=${BINDIR} DOCHTMLDIR=/usr/share/doc-to-remove install.man || die
62    
63     # rename example conf
64     mv ${BINDIR}/etc/nas/nasd.conf.eg ${BINDIR}/etc/nas/nasd.conf || die
65    
66     # set mixer init off, so nas doesn't change the mixer settings
67     sed -i 's,\(MixerInit.*\)"\(.*\)",\1"no",' ${BINDIR}/etc/nas/nasd.conf || die
68    
69     # remove html docs, not needed and way too big
70     rm -rf ${BINDIR}/usr/share/doc-to-remove || die
71    
72     # we don't need the static lib
73     rm ${BINDIR}/usr/$(mlibdir)/libaudio.a || die
74    
75     # install init scripts and configs
76     minstallunit nas.service || die
77     minstallconf nas.confd nas || die
78    
79     # docs
80     minstalldocs BUGS BUILDNOTES FAQ HISTORY README RELEASE TODO || die
81     }
82    
83     postinstall()
84     {
85     mstartunit nas.service nasd
86     }
87    
88     postremove()
89     {
90     mstopunit nas.service nasd
91     }
92