# $Header: inherit git multilib flag-o-matic autotools DESCRIPTION="Linux support library for Adobe Flash 9, adds pulseaudio/esd/oss audio output and HTTPS/RTMPS support" HOMEPAGE="http://pulseaudio.revolutionlinux.com/PulseAudio" EGIT_REPO_URI="http://git.0pointer.de/repos/${PN}.git/" LICENSE="Adobe-SourceCode" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="esd gnutls pulseaudio oss ssl" DEPEND="gnutls? ( net-libs/gnutls ) !gnutls? ( ssl? ( dev-libs/openssl ) ) pulseaudio? ( media-sound/pulseaudio amd64? ( >=app-emulation/emul-linux-x86-soundlibs-20080418 ) ) esd? ( media-sound/esound amd64? ( >=app-emulation/emul-linux-x86-soundlibs-20080418 ) ) amd64? ( app-emulation/emul-linux-x86-baselibs )" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}" src_unpack() { git_src_unpack eautoreconf } src_compile() { # let's prevent any automagic dependencies unset LIBPULSEPATH PULSE LIBESDPATH ESD OSS ICULIBS V4L SSL SSLLIBS ALSALIBS use pulseaudio && vars+='LIBPULSEPATH="-DLIBPULSEPATH=\"libpulse-simple.so.0\"" PULSE="-DPULSEAUDIO" ' use esd && vars+='LIBESDPATH="-DLIBESDPATH=\"libesd.so.0\"" ESD="-DESD" ' use oss && var+='OSS="-DOSS" ' if use gnutls; then if use ssl; then ewarn "You have enabled both 'ssl' and 'gnutls', so we will use" ewarn "gnutls and not openssl for HTTPS/RTMPS support" fi vars+='SSL="-DGNUTLS" SSLLIBS="-lgnutls" ' elif use ssl; then vars+='SSL="-DOPENSSL" SSLLIBS="-lssl" ' fi # force internal alsa vars+='ALSA="-DALSA_INTERNAL" ' append-flags -fPIC -shared # compile for x86 so flash can link against it if use amd64; then multilib_toolchain_setup x86 host="--host=${CHOST_x86}" fi eval ${vars} econf ${host} emake || die "emake failed" } src_install(){ dolib.so .libs/libflashsupport.so dolib libflashsupport.la }