# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Allegro wrapper for the mpglib MP3 decoder part of mpg123" HOMEPAGE="http://nekros.freeshell.org/delirium/almp3.php" SRC_URI="http://www.hero6.com/filereviver/almp3.zip" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND=">=media-libs/allegro-4.0.0 virtual/mpg123 app-arch/unzip" S=${WORKDIR} RESTRICT="nomirror" src_compile() { sh fixunix.sh sed -i -e s/'^TARGET=DJGPP_STATIC'/'#TARGET=DJGPP_STATIC'/ -e s/'#TARGET=LINUX_STATIC'/'TARGET=LINUX_STATIC'/ Makefile use amd64 && sed -i s/'-march=pentium'// 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} }