diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-09-28 14:12:09 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-09-28 14:12:09 +0000 |
commit | df5f5f7164c47763c5db3d98af72827e80d68fc5 (patch) | |
tree | 20facc87913658a95a85a4fccd71990bc63313c9 /app-emulation/vmware-dsp/vmware-dsp-1.3.ebuild | |
parent | Added app-emulation/vmware-dsp to package.mask on the no-multilib profiles. (diff) | |
download | gentoo-2-df5f5f7164c47763c5db3d98af72827e80d68fc5.tar.gz gentoo-2-df5f5f7164c47763c5db3d98af72827e80d68fc5.tar.bz2 gentoo-2-df5f5f7164c47763c5db3d98af72827e80d68fc5.zip |
Initial import. Ebuild by me. Closing bug #97078.
(Portage version: 2.1.2_pre1-r2)
Diffstat (limited to 'app-emulation/vmware-dsp/vmware-dsp-1.3.ebuild')
-rw-r--r-- | app-emulation/vmware-dsp/vmware-dsp-1.3.ebuild | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/app-emulation/vmware-dsp/vmware-dsp-1.3.ebuild b/app-emulation/vmware-dsp/vmware-dsp-1.3.ebuild new file mode 100644 index 000000000000..87ba2b72b6e4 --- /dev/null +++ b/app-emulation/vmware-dsp/vmware-dsp-1.3.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-dsp/vmware-dsp-1.3.ebuild,v 1.1 2006/09/28 14:12:09 wolf31o2 Exp $ + +inherit eutils multilib + +MY_PN=${PN/-/} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Allows you to use VMware Workstation with ESD and ARTS." +HOMEPAGE="http://ftp.cvut.cz/vmware/" +SRC_URI="http://ftp.cvut.cz/vmware/${MY_P}.tar.gz + http://ftp.cvut.cz/vmware/obselete/${MY_P}.tar.gz + http://knihovny.cvut.cz/ftp/pub/vmware/${MY_P}.tar.gz + http://knihovny.cvut.cz/ftp/pub/vmware/obselete/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="arts esd" +RESTRICT="" + +RDEPEND="sys-libs/glibc + amd64? ( + app-emulation/emul-linux-x86-soundlibs + esd? ( media-sound/esound ) + arts? ( kde-base/arts ) ) + x86? ( + esd? ( media-sound/esound ) + arts? ( kde-base/arts ) )" + +S=${WORKDIR}/${MY_P} + +dir=/opt/vmware/dsp +Ddir=${D}/${dir} + +src_compile() { + cd "${S}"/src + if use arts && use esd + then + einfo "Building both aRts and ESD support." + elif use arts + then + einfo "Building aRts support only." + sed -i '/PLUGINS :=/ s/ libvmdsp_esd.so//' 32/Makefile 64/Makefile \ + || die "sed failed" + else + einfo "Building ESD support only." + sed -i '/PLUGINS :=/ s/ libvmdsp_arts.so//' 32/Makefile 64/Makefile \ + || die "sed failed" + fi + if use x86 + then + cd 32 + emake -j1 || die + elif has_multilib_profile + then + emake -j1 || die + else + cd 64 + emake -j1 || die + fi +} + +src_install() { + cd "${S}" + if use x86 + then + dolib src/32/libvmdsp*.so || die "Copying libraries" + elif has_multilib_profile + then + exeinto /usr/lib32 + doexe src/32/libvmdsp*.so || die + dolib src/64/libvmdsp*.so || die + else + src/64/libvmdsp*.so || die + fi + if use arts + then + dobin vmwarearts || die + make_desktop_entry vmware "VMware Workstation (aRts)" \ + vmware-workstation.png System + fi + if use esd + then + dobin vmwareesd || die + make_desktop_entry vmware "VMware Workstation (ESD)" \ + vmware-workstation.png System + fi +} |