# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: inherit cvs IUSE="" MODULE_NAME="openal" ECVS_SERVER="opensource.creative.com:/usr/local/cvs-repository" ECVS_MODULE="${MODULE_NAME}" ECVS_USER="guest" ECVS_PASS="guest" S=${WORKDIR}/${ECVS_MODULE} DESCRIPTION="openal CVS ebuild " SRC_URI="" HOMEPAGE="http://opensource.creative.com/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND="x86? ( dev-lang/nasm ) alsa? ( media-libs/alsa-lib ) arts? ( kde-base/arts ) esd? ( media-sound/esound ) sdl? ( media-libs/libsdl ) oggvorbis? ( media-libs/libvorbis ) mpeg? ( media-libs/smpeg )" src_unpack() { cvs_src_unpack } src_compile() { local myconf use esd && myconf="${myconf} --enable-esd" use sdl && myconf="${myconf} --enable-sdl" use alsa && myconf="${myconf} --enable-alsa" use arts && myconf="${myconf} --enable-arts" use mpeg && myconf="${myconf} --enable-smpeg" use oggvorbis && myconf="${myconf} --enable-vorbis" cd ${S}/linux # # disabling -Werror and -Wpedantic-error so it actually builds # mv configure.in configure.in.orig # sed "s|-Werror -pedantic-errors||" configure.in.orig > configure.in WANT_AUTOCONF_2_5=1 ./autogen.sh || die ./configure --enable-optimization --prefix=/usr ${myconf} || die emake all || die } src_install() { cd ${S}/linux # # symlink creation disabled -- see below make install DESTDIR=${D}/usr/ LN_S="echo " || die dodoc CREDITS ChangeLog INSTALL NOTES PLATFORM TODO makeinfo doc/openal.texi doinfo doc/openal.info cd ${S} dodoc CHANGES COPYING CREDITS dohtml docs/*.html # something is screwy with the makefiles so we create the two library # symlinks manually cd ${D}/usr/lib ln -f -s libopenal.so.${LIBVER} libopenal.so.0 || die ln -f -s libopenal.so.${LIBVER} libopenal.so || die }