# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/linuxsampler/linuxsampler-0.3.3.ebuild,v 1.2 2005/09/10 15:54:21 flameeyes Exp $ inherit cvs ECVS_SERVER="cvs.linuxsampler.org:/var/cvs/linuxsampler" ECVS_MODULE="linuxsampler" DESCRIPTION="LinuxSampler is a software audio sampler engine with professional grade features." HOMEPAGE="http://www.linuxsampler.org/" SRC_URI="" LICENSE="linuxsampler" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="jack dev" RDEPEND=" >=media-libs/libgig-9999 media-libs/alsa-lib jack? ( media-sound/jack-audio-connection-kit )" DEPEND="${RDEPEND}" # this is a bleeding edge CVS ebuild, chances are high that we need a # stack trace, so don't strip symbols RESTRICT="strip" S="${WORKDIR}/${ECVS_MODULE}" MY_LOCAL_SOURCES="/home/cuse/cvs/linuxsampler" # if use flag "dev" was set, then the given local sources will be used local_dev_sources_unpack() { # (cd ${MY_LOCAL_SOURCES} && \ # make -f Makefile.cvs clean && \ # make -f Makefile.cvs && \ # ./configure && \ # make dist) || die "Could not prepare local development files of ${PF}" echo "Grabbing local development sources from $MY_LOCAL_SOURCES" mkdir -p ${WORKDIR} cd ${WORKDIR} tar xfz `ls ${MY_LOCAL_SOURCES}/${ECVS_MODULE}-*.tar.gz` \ || die "Could not unpack local development sources. Is there a tarball?" # remove version postfix in the directory name if necessary mv `find -name ${ECVS_MODULE}-* -and -type d` ${ECVS_MODULE} || true echo "Good. Let's compile this shit! :)" } src_unpack(){ if use dev; then local_dev_sources_unpack || die else cvs_src_unpack || die fi cd ${S} make -f Makefile.cvs } src_compile() { econf --disable-nptl-bug-check || die "./configure failed" emake -j1 || die "make failed" } src_install() { # einstall || die "einstall failed" make install DESTDIR=${D} || die "make install failed" dodoc AUTHORS ChangeLog README NEWS dodir /etc/env.d || die echo "LDPATH=/usr/lib/linuxsampler" > "${D}"/etc/env.d/99linuxsampler || die keepdir /usr/lib/linuxsampler/plugins }