# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Gnome Wave Cleaner" HOMEPAGE="http://gwc.sourceforge.net/" MY_P=${PN}-0.19-10 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" LICENSE="GPL-1" SLOT="0" KEYWORDS="~x86" IUSE="alsa" DEPEND=">=media-libs/libsndfile-1.0.1 >=dev-libs/fftw-2.1.3 gnome-base/gnome-libs alsa? ( >=media-sound/alsa-driver-0.9.2" #RDEPEND="" S=${WORKDIR}/${MY_P} src_compile() { sed -i -e "/^CFLAGS =/s/-mcpu=@UNAME_MACHINE@ -march=@UNAME_MACHINE@//" \ -e "/^CFLAGS =/s/-O3/${CFLAGS}/" Makefile.in local myconf="" use alsa && myconf="${myconf} --enable-alsa" econf ${myconf} || die "Configuration failed" # For some reason, I have to go in, configure and build this library first, # or it misdetects things, and wont link in the end. cd meschach sed -i -e "/^CFLAGS =/s/-O3/${CFLAGS}/" makefile.in PATH=".:$PATH" econf --with-sparse || die "failed to configure meschach lib" ( make part1 && make part2 && make part3 && cp machine.h ..) || die \ "failed to compile meschach math lib" cd .. emake || die } src_install() { sed -i -e "/^.install/s/gwc$/${PF}/" Makefile make \ DESTDIR=${D}/usr \ DATADIR=${D}`gnome-config --datadir` \ install || die }