Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27_p201011173-r1.ebuild,v 1.1 2011/02/11 13:54:15 lack Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/www-plugins/adobe-flash/adobe-flash-10.2.152.27_p201011173-r1.ebuild,v 1.1 2011/02/11 13:54:15 lack Exp $ |
4 |
|
4 |
|
5 |
EAPI=3 |
5 |
EAPI=3 |
6 |
inherit rpm nsplugins multilib toolchain-funcs versionator |
6 |
inherit rpm nsplugins multilib toolchain-funcs versionator flag-o-matic |
7 |
|
7 |
|
8 |
# Note: There is no "square" for 32-bit! Just use the current 32-bit release: |
8 |
# Note: There is no "square" for 32-bit! Just use the current 32-bit release: |
9 |
PV_REL=$(get_version_component_range 1-4) |
9 |
PV_REL=$(get_version_component_range 1-4) |
Lines 123-128
Link Here
|
123 |
"${FILESDIR}/flashplugin-lahf-fix.c" \ |
123 |
"${FILESDIR}/flashplugin-lahf-fix.c" \ |
124 |
|| die "Compile of flashplugin-lahf-fix.so failed" |
124 |
|| die "Compile of flashplugin-lahf-fix.so failed" |
125 |
fi |
125 |
fi |
|
|
126 |
pushd "${T}" > /dev/null |
127 |
cat <<-EOF > flashmemcpy.c |
128 |
#include <sys/types.h> |
129 |
void *memcpy(void *dst, const void *src, size_t size) |
130 |
{ |
131 |
void *orig = dst; |
132 |
asm volatile("rep ; movsq" |
133 |
:"=D" (dst), "=S" (src) |
134 |
:"0" (dst), "1" (src), "c" (size >> 3) |
135 |
:"memory"); |
136 |
asm volatile("rep ; movsb" |
137 |
:"=D" (dst), "=S" (src) |
138 |
:"0" (dst), "1" (src), "c" (size & 7) |
139 |
:"memory"); |
140 |
return orig; |
141 |
} |
142 |
EOF |
143 |
$(tc-getCC) ${CFLAGS} -c flashmemcpy.c || die |
144 |
$(tc-getLD) $(raw-ldflags) -G flashmemcpy.o -o flashmemcpy.so || die |
145 |
popd > /dev/null |
126 |
} |
146 |
} |
127 |
|
147 |
|
128 |
src_install() { |
148 |
src_install() { |
Lines 165-170
Link Here
|
165 |
# The magic config file! |
185 |
# The magic config file! |
166 |
insinto "/etc/adobe" |
186 |
insinto "/etc/adobe" |
167 |
doins "${FILESDIR}/mms.cfg" |
187 |
doins "${FILESDIR}/mms.cfg" |
|
|
188 |
|
189 |
exeinto /usr/$(get_libdir)/${PN} |
190 |
doexe "${T}"/flashmemcpy.so || die |
168 |
} |
191 |
} |
169 |
|
192 |
|
170 |
pkg_postinst() { |
193 |
pkg_postinst() { |
Lines 205-208
Link Here
|
205 |
ewarn "issues. Please consider only running flash applets you know to" |
228 |
ewarn "issues. Please consider only running flash applets you know to" |
206 |
ewarn "be safe. The 'flashblock' extension may help for mozilla users:" |
229 |
ewarn "be safe. The 'flashblock' extension may help for mozilla users:" |
207 |
ewarn " https://addons.mozilla.org/en-US/firefox/addon/433" |
230 |
ewarn " https://addons.mozilla.org/en-US/firefox/addon/433" |
|
|
231 |
|
232 |
ewarn |
233 |
ewarn "You need to launch your browser prepending LD_PRELOAD=\"/usr/$(get_libdir)/adobe-flash/flashmemcpy.so\"" |
234 |
ewarn "in command line for bug 354073 if you experience sound problems with recent glibc." |
235 |
ewarn |
208 |
} |
236 |
} |