summaryrefslogtreecommitdiff
blob: 8359b4256fd00683aa8e545bbd707ab941dc8c95 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/muse/muse-0.7.2.ebuild,v 1.7 2004/07/01 10:59:28 eradicator Exp $

IUSE="ncurses oggvorbis X"

S=${WORKDIR}/${P/muse/MuSE}

DESCRIPTION="Multiple Streaming Engine, an icecast source streamer"
SRC_URI="http://savannah.nongnu.org/download/muse/${P/muse/MuSE}.tar.gz"
HOMEPAGE="http://muse.dyne.org/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND="virtual/libc
	>=sys-apps/portage-2.0.45-r3
	>=media-sound/lame-3.92
	>=sys-apps/sed-4.0.5
	ncurses? ( >=sys-libs/ncurses-5.2 )
	oggvorbis? ( >=media-libs/libogg-1.0 >=media-libs/libvorbis-1.0-r1 )
	X? ( =x11-libs/gtk+-1* )"

RDEPEND="virtual/libc
	>=media-sound/lame-3.92
	ncurses? ( >=sys-libs/ncurses-5.2 )
	oggvorbis? ( >=media-libs/libogg-1.0 >=media-libs/libvorbis-1.0-r1 )
	X? ( =x11-libs/gtk+-1* )"

src_compile() {
	local xcmd

	# if media-libs/{libogg,libvorbis} are installed, the configure script
	# will automatically enable oggvorbis support
	if ! use oggvorbis; then
		xcmd="s:\"\$have_\(ogg\|vorbis\)\":\"no\":;"
	fi

	# if sys-libs/ncurses is installed, the configure script will
	# automatically build the ncurses GUI
	if ! use ncurses; then
		xcmd="$xcmd /^GUI_RUBIK/s:true:false:"
	fi

	[ "$xcmd" ] && sed -i "$xcmd" configure

	econf	`use_with X x` \
		--disable-debug || die "econf failed"

	emake CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "Make failed"
}

src_install() {
	dobin muse
	dodoc AUTHORS ChangeLog NEWS README TODO USAGE
}

pkg_postinst() {
	einfo
	einfo "You may want to have a look at /usr/share/doc/${PF}/USAGE.gz for more info."
	einfo
}