# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Allegro wrapper for the OGG decoder part of Ogg Vorbis" HOMEPAGE="http://nekros.freeshell.org/delirium/alogg.html" SRC_URI=" http://www.hero6.com/filereviver/alogg.zip" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND=">=media-libs/allegro-4.0.0 app-arch/unzip" S=${WORKDIR} RESTRICT="nomirror" src_compile() { sh fixunix.sh sed -e s/'^TARGET=DJGPP_STATIC'/'#TARGET=DJGPP_STATIC'/ \ -e s/'#TARGET=LINUX_STATIC'/'TARGET=LINUX_STATIC'/ \ -i Makefile use amd64 && sed -i s/'-march=pentium'// Makefile emake || die "emake failed" } src_install() { dolib.a lib/linux/libalogg.a insinto /usr/include doins include/*.h dodoc docs/*.txt *.txt docinto examples dodoc examples/{Makefile,example.c} }