1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils flag-o-matic
7 DESCRIPTION="sexyPSF is an open-source PSF1 (Playstation music) file player"
8 HOMEPAGE="http://projects.raphnet.net/#sexypsf"
9 SRC_URI="http://projects.raphnet.net/sexypsf/${P}.tar.bz2"
14 #-sparc: 0.4.5: Couldn't load minispf
15 KEYWORDS="amd64 ppc -sparc x86"
18 DEPEND="sys-libs/zlib"
25 epatch "${FILESDIR}"/${P}-misc.patch
27 # ppc and sparc are big-endian while all other keywords are
28 # little-endian (as far as I know)
29 use ppc64 || use ppc || use sparc &&
30 sed -i -e "s:-D__LINUX__:& -DMSB_FIRST:" "${S}"/Linux/Makefile
31 # what about using the correct macro and avoid to cause severe damages to
33 sed -i -e "s:AFMT_S16_LE:AFMT_S16_NE:" "${S}"/Linux/oss.c
38 emake || die "emake failed"