Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28378 - (show annotations) (download)
Wed Aug 24 08:12:51 2016 UTC (7 years, 9 months ago) by niro
File size: 1868 byte(s)
-revert commit r28377
1 # $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 msetfeature "!check" # no check target in Makefile
29
30 SRC_URI=(
31 sourceforge://${PNAME}/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/nas.confd
34 mirror://${PNAME}/nas.service
35 )
36
37 UP2SUBSTITUTE=".src"
38 UP2DATE="updatecmd ${HOMEPAGE} | sed 's:\ (.*)::g' | firsttarball gz"
39
40 src_prepare()
41 {
42 munpack ${SRCFILE} || die
43 cd ${SRCDIR}
44
45 # convert to utf-8
46 miconvutf8 HISTORY || die
47 }
48
49 src_compile()
50 {
51 cd ${SRCDIR}
52 xmkmf || die
53 # build without libXp
54 mmake World XPLIB="" || die
55 }
56
57 src_install()
58 {
59 cd ${SRCDIR}
60
61 mmake DESTDIR=${BINDIR} install || die
62 mmake DESTDIR=${BINDIR} DOCHTMLDIR=/usr/share/doc-to-remove install.man || die
63
64 # rename example conf
65 mv ${BINDIR}/etc/nas/nasd.conf.eg ${BINDIR}/etc/nas/nasd.conf || die
66
67 # set mixer init off, so nas doesn't change the mixer settings
68 sed -i 's,\(MixerInit.*\)"\(.*\)",\1"no",' ${BINDIR}/etc/nas/nasd.conf || die
69
70 # remove html docs, not needed and way too big
71 rm -rf ${BINDIR}/usr/share/doc-to-remove || die
72
73 # we don't need the static lib
74 rm ${BINDIR}/usr/$(mlibdir)/libaudio.a || die
75
76 # install init scripts and configs
77 minstallunit nas.service || die
78 minstallconf nas.confd nas || die
79
80 # docs
81 minstalldocs BUGS BUILDNOTES FAQ HISTORY README RELEASE TODO || die
82 }
83
84 postinstall()
85 {
86 mstartunit nas.service nasd
87 }
88
89 postremove()
90 {
91 mstopunit nas.service nasd
92 }
93