summaryrefslogtreecommitdiff
blob: ea9a06dc45bde60e73b1f4afecd2389623aeb862 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# Author Per Wigren <wigren@home.se>
# $Header: /var/cvsroot/gentoo-x86/app-emulation/psemu-peopsspu/psemu-peopsspu-1.0.1.ebuild,v 1.1 2002/06/03 02:53:20 rphillips Exp $

DESCRIPTION="P.E.Op.S Sound Emulation (SPU) PSEmu Plugin"
HOMEPAGE="http://peops.sourceforge.net"
LICENSE="GPL-2"
DEPEND="app-arch/unzip
        app-misc/fixdos
		x11-libs/gtk+
		sys-devel/automake"
SRC_URI="http://telia.dl.sourceforge.net/sourceforge/peops/PeopsSpu101.zip"
S=${WORKDIR}/spuPeopsSound

src_unpack() {
	unzip -a ${DISTDIR}/PeopsSpu101.zip
}

src_compile() {
	cd Src
	mv StdAfx.c stdafx.c
	mv StdAfx.h stdafx.h
	mv OSS.H oss.h
	emake CCFLAGS3="${CFLAGS} -fPIC -c -Wall -ffast-math -fomit-frame-pointer" || die
	cd linuxcfg
	tar xvfz spucfg.tar.gz
	crlf .  # convert all files in dir from dos CRLF to unix CR format...
	automake --add-missing
	./configure
	emake || die
	mv src/spucfg src/cfgPeopsOSS
}

src_install () {
	insinto /usr/lib/psemu/plugins
	doins Src/libspu*
	chmod 755 ${D}/usr/lib/psemu/plugins/*
	insinto /usr/lib/psemu/cfg
	doins Src/linuxcfg/src/cfgPeopsOSS
	chmod 755 ${D}/usr/lib/psemu/cfg/*
	dodoc Src/License.txt Src/changelog.txt
	dodoc readme_1_1.txt version_1_1.txt
}