blob: 9f75182a62e6d07fd36fae0fe8c89b83b42f0c60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-plugins/libflashsupport/libflashsupport-1.2.ebuild,v 1.5 2010/05/03 15:02:39 lack Exp $
EAPI="3"
inherit eutils multilib toolchain-funcs
DESCRIPTION="Adds pulseaudio/esd/oss audio output and HTTPS/RTMPS support to
Adobe Flash 9"
HOMEPAGE="http://pulseaudio.org/wiki/FlashPlayer9Solution"
SRC_URI="https://svn.revolutionlinux.com/MILLE/XTERM/trunk/libflashsupport/Tarballs/${P}.tar.bz2"
LICENSE="Adobe-SourceCode"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# Note: gnutls overrides 'ssl' if both are set. If only 'ssl' is set, openssl
# is used.
IUSE="pulseaudio esd oss ssl gnutls"
DEPEND="gnutls? ( net-libs/gnutls )
!gnutls? ( ssl? ( dev-libs/openssl ) )
pulseaudio? ( media-sound/pulseaudio )"
RDEPEND="${DEPEND}
esd? ( media-sound/esound )"
src_prepare() {
sed -i -e 's:/var/lib/run/pulse/native:/var/run/pulse/native:' \
README flashsupport.c || die "sed failed"
epatch "${FILESDIR}"/${P}-asneeded.patch
epatch "${FILESDIR}"/${P}-gentoo.patch
}
src_compile() {
tc-export CC
if use pulseaudio; then
export LIBPULSEPATH="-DLIBPULSEPATH='\"libpulse-simple.so.0\"'"
export PULSE="-DPULSEAUDIO"
else
export LIBPULSEPATH=""
export PULSE=""
fi
if use esd; then
export LIBESDPATH="-DLIBESDPATH='\"libesd.so.0\"'"
export ESD="-DESD"
else
export LIBESDPATH=""
export ESD=""
fi
if use oss; then
export OSS="-DOSS"
else
export OSS=""
fi
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
export SSL="-DGNUTLS"
export SSLLIBS="-lgnutls"
elif use ssl; then
export SSL="-DOPENSSL"
export SSLLIBS="-lssl"
else
export SSL=""
export SSLLIBS=""
fi
# Force internal alsa
export ALSA="-DALSA_INTERNAL"
export ALSALIBS=""
# ICU and V4L support is commented out in the makefile, ensure it is off.
export ICULIBS=""
export V4L=""
# General overrides
export CFLAGS="${CFLAGS} -fPIC -shared"
export LIBDIR="/usr/$(get_libdir)"
# Override Makefile options with environment exported above:
emake -e || die "Make failed"
}
src_install() {
dolib.so libflashsupport.so
dodoc README
}
pkg_postinst() {
if has_version ">=www-plugins/adobe-flash-10" && use pulseaudio; then
ewarn "You do not need libflashsupport to use adobe-flash with pulseaudio"
ewarn "Please consider removing this package and using"
ewarn "media-plugins/alsa-plugins[pulseaudio] instead."
fi
if use amd64 && has_version ">=www-plugins/adobe-flash-10[32bit]"; then
ewarn "The 32-bit flash plugin cannot use libflashsupport which is 64-bit only."
fi
}
|