# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 IUSE="xmms" S="${WORKDIR}/sexypsf" PV2=${PV//./} HOMEPAGE="http://xod.starmen.net/sexypsf/" DESCRIPTION="sexypsf is an open-source PSF file player." SRC_URI="http://xod.starmen.net/sexypsf/sexypsf${PV2}.tar.gz" SLOT="0" LICENSE="GPL" KEYWORDS="x86" DEPEND="x11-libs/gtk+ xmms? ( media-sound/xmms )" RDEPEND="${DEPEND}" src_compile() { cd ${S}/Linux emake OPTIMIZE="${CFLAGS} -fomit-frame-pointer -finline-functions -ffast-math -fno-exceptions" || die if [ -n "`use xmms`" ]; then cd ${S}/xmms mv Makefile Makefile.old sed -e "s:mv lib.*::" Makefile.old > Makefile emake OPTIMIZE="${CFLAGS} -fomit-frame-pointer -finline-functions -ffast-math -fno-exceptions" || die fi } src_install() { cd ${S}/Linux dobin sexypsf if [ -n "`use xmms`" ]; then cd ${S}/xmms insinto /usr/lib/xmms/Input doins libsexypsf.so fi dodoc ${S}/Docs/* }