summaryrefslogtreecommitdiff
blob: fbc8aa1c65db8b79f406a5d1a63448506a269916 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/allegromp3/allegromp3-2.0.2.ebuild,v 1.8 2006/03/06 14:13:23 flameeyes Exp $

IUSE=""

DESCRIPTION="Allegro wrapper for the mpglib MP3 decoder part of mpg123"
HOMEPAGE="http://nekros.freeshell.org/delirium/almp3.php"
SRC_URI="http://raythe.sytes.net/TheDeath/almp3.zip"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86"

RDEPEND=">=media-libs/allegro-4.0.0
	virtual/mpg123"

DEPEND="${RDEPEND}
	app-arch/unzip"

S=${WORKDIR}

src_compile() {
	sh fixunix.sh
	mv Makefile Makefile_orig
	sed s/'^TARGET=DJGPP_STATIC'/'#TARGET=DJGPP_STATIC'/ Makefile_orig| sed s/'#TARGET=LINUX_STATIC'/'TARGET=LINUX_STATIC'/ > Makefile
	emake || die
}

src_install() {
	dolib.a lib/linux/libalmp3.a

	insinto /usr/include
	doins include/*.h

	dodoc docs/*.txt *.txt
	docinto examples
	dodoc examples/{Makefile,example.c}
}