# $Header: /magellan-cvs/smage/rezound/rezound-0.12.3.b-r3.smage2,v 1.2 2008/05/31 18:08:47 niro Exp $ PNAME="rezound" PVER="0.12.3.b" PBUILD="r3" PCATEGORIE="media-sound" STATE="unstable" DESCRIPTION="ReZound aims to be a stable, open source, and graphical audio file editor." HOMEPAGE="http://rezound.sourceforge.net/" DEPEND=">= virtual/glibc >= media-libs/audiofile-0.2.6 >= x11-libs/fox-1.6 >= sci-libs/fftw-2.1.5 >= app-cdr/cdrdao-1.2 >= media-libs/ladspa-sdk-1.13 >= media-libs/ladspa-cmt-1.16 >= media-libs/libogg-1.1 >= media-libs/libvorbis-1.2 >= media-libs/flac-1.2 >= media-libs/libsoundtouch-1.3" SDEPEND=">= sys-dev/autoconf-4 >= sys-dev/automake-3 >= sys-dev/bison-2 >= sys-dev/flex-2.5.33" SRCFILE="${PNAME}-${PVER/.b/beta}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER/.b/beta}" sminclude mtools xdg SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-0.12.2.b-amd64.patch mirror://${PNAME}/${PNAME}-${PVER}-flac-1.1.3.patch ) # note >= fftw3-3.0 are incompatible with rezound src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix compile issues on x86_64 # gcc4 does not like loosing precision in pointer casts mpatch ${PNAME}-0.12.2.b-amd64.patch || die # fix compilation with newer flac versions mpatch ${PNAME}-${PVER}-flac-1.1.3.patch || die } src_compile() { cd ${SRCDIR} mconfigure \ --enable-largefile \ --enable-ladspa \ --enable-internal-sample-type=float \ --enable-alsa \ --enable-oss \ --disable-portaudio \ --disable-jack \ --enable-nls \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # we want all docs compressed; # default installs not all and uncompressed rm -rf ${BINDIR}/usr/doc/${PNAME} || die minstalldocs ABOUT-NLS README* docs/* || die # install desktop-menu-icon minstallpixmap src/images/icon_logo_32.gif rezound.gif || die minstall_desktop_icon --icon rezound.gif --categories AudioVideo || die } postinstall() { echo echo "In order to run rezound you need to load some alsa-oss modules." echo "Please load the following modules:" echo " snd-pcm-oss" echo " snd-mixer-oss" echo echo "You can put them either in /etc/modules.autoload.d/yourkernel" echo "or load them manually via modprobe." echo }