blob: 5b11ec39bc81ccaac9852a6ff54e377de5c0a841 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/peercast/peercast-0.1218.ebuild,v 1.3 2008/01/11 08:02:53 opfer Exp $
inherit eutils toolchain-funcs flag-o-matic
IUSE=""
S=${WORKDIR}
DESCRIPTION="A client and server for Peercast P2P-radio network"
HOMEPAGE="http://www.peercast.org"
SRC_URI="http://www.peercast.org/src/${P}-src.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-0.1216-makefile.patch"
epatch "${FILESDIR}/${PN}-0.1216-amd64.patch"
}
src_compile() {
append-ldflags -pthread
cd "${S}"/ui/linux
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" AR="$(tc-getAR)" \
LDFLAGS="${LDFLAGS}" || die "emake failed"
}
src_install() {
cd "${S}"/ui/linux
exeinto /usr/sbin
newexe "${FILESDIR}/peercast.wrapper.sh" peercast
exeinto /usr/libexec
doexe peercast
dodir /usr/share/peercast
cd "${S}"/ui
cp -R html "${D}"/usr/share/peercast/
newinitd "${FILESDIR}/peercast.init.gpl" peercast
}
pkg_postinst() {
elog "Start Peercast with '/etc/init.d/peercast start' and point your"
elog "webbrowser to 'http://localhost:7144' to start using Peercast."
elog
elog "You can also run 'rc-update add peercast default' to make Peercast"
elog "start at boot."
}
|