blob: 4778b19a8237da91ac7d40203b089831bbf815c9 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmsound/wmsound-0.9.5.ebuild,v 1.9 2012/03/18 13:27:38 ssuominen Exp $
inherit eutils
IUSE=""
DESCRIPTION="WindowMaker sound server"
SRC_URI="http://largo.windowmaker.org/files/${P}.tar.gz"
HOMEPAGE="http://largo.windowmaker.org/"
RDEPEND=">=x11-wm/windowmaker-0.80.2-r1
>=x11-libs/libPropList-0.10.1-r3
>=media-sound/wmsound-data-1.0.0"
DEPEND="${RDEPEND}
x11-misc/imake"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc"
src_unpack()
{
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/wmsound-config.patch"
epatch "${FILESDIR}/wmsound-ComplexProgramTargetNoMan.patch"
#Fix compilation with --as-needed.
sed -i 's:-lPropList $(WMSOUNDLIB):$(WMSOUNDLIB) -lPropList:' src/Imakefile
sed -i 's:-lPropList $(XLIB) $(WMSOUNDLIB):$(WMSOUNDLIB) -lPropList $(XLIB):' utils/Imakefile
}
src_compile()
{
export PATH="${PATH}:/usr/X11R6/bin"
cd "${S}"
xmkmf -a
emake CDEBUGFLAGS="${CFLAGS}" LDOPTIONS="${LDFLAGS}" || die "make failed"
}
src_install()
{
cd "${S}"
einstall PREFIX="${D}/usr" USRLIBDIR="${D}/usr/X11R6/lib" || die "make install failed"
dodoc AUTHORS BUGS ChangeLog
}
pkg_postinst()
{
einfo "WMSound currently supports 8 or 16 bit .wav files."
}
|