summaryrefslogtreecommitdiff
blob: 880e2bf63a76860ca37984452d8cabfcc19b3834 (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
# Copyright 1999-2004 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.7 2004/06/24 22:55:44 agriffis 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"

DEPEND=">=media-libs/allegro-4.0.0
	virtual/mpg123
	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}
}