--- openal-soft-1.3.253.ebuild 2008-02-29 22:06:00.000000000 +0100 +++ openal-1.3.253.ebuild 2008-02-29 22:05:20.000000000 +0100 @@ -1,45 +1,46 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit eutils +MY_PN=openal-soft + DESCRIPTION="OpenAL Soft is a cross-platform software implementation of the OpenAL 3D audio API. The Open Audio Library is an open, vendor-neutral, cross-platform API for interactive, primarily spatialized audio" HOMEPAGE="http://kcat.strangesoft.net/openal.html" -SRC_URI="http://kcat.strangesoft.net/openal-releases/${PN}-${PV}.tar.bz2" +SRC_URI="http://kcat.strangesoft.net/openal-releases/${MY_PN}-${PV}.tar.bz2" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd" IUSE="alsa oss debug" -RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.2 ) - !media-libs/openal" +RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.2 )" DEPEND="${RDEPEND} >=dev-util/cmake-2.4.0" -src_unpack() { - unpack ${A} - cd "${S}" -} +S=${WORKDIR}/${MY_PN}-${PV} src_compile() { local myconf="" - cd "${S}/CMakeConf" use alsa || myconf="${myconf} -DALSA=OFF" use oss || myconf="${myconf} -DOSS=OFF" use debug && myconf="${myconf} -DCMAKE_BUILD_TYPE=Debug" - cmake -DCMAKE_INSTALL_PREFIX=/usr ${myconf} .. \ - || die "cmake failed" + + cd "${S}/CMakeConf" + + cmake -DCMAKE_INSTALL_PREFIX=/usr ${myconf} .. || die "cmake failed" emake || die "emake failed" + cd "${S}" } src_install() { cd "${S}/CMakeConf" emake install DESTDIR="${D}" || die "emake install failed" + cd "${S}" dodoc alsoftrc.sample }