View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/app-emulation/qemu-softmmu/qemu-softmmu-0.9.1-r1.ebuild (-5 / +24 lines)
 Lines 29-35    Link Here 
	gnutls? ( net-libs/gnutls )
	gnutls? ( net-libs/gnutls )
	alsa? ( media-libs/alsa-lib )"
	alsa? ( media-libs/alsa-lib )"
S="${WORKDIR}/${P/-softmmu/}"
S=${WORKDIR}/${P/-softmmu/}
pkg_setup() {
pkg_setup() {
	if [ "$(gcc-major-version)" == "4" ]; then
	if [ "$(gcc-major-version)" == "4" ]; then
 Lines 61-68    Link Here 
}
}
src_compile() {
src_compile() {
	#Let the application set its cflags
	if use x86 ; then
	unset CFLAGS
		# Force -march=pentium-mmx or lower. Fixes bug #212351.
		local march
		march=$(echo "${CFLAGS}" | sed 's:^.*-march=\([[:alnum:]-]\+\)\([[:blank:]].*\)\?$:\1:p;d')
		case ${march} in
			i386|i486|i586|pentium) ;;
			*) # Either march is not enough low or not exists at all
			case ${CHOST} in
				i486-*-*)	march=i486 ;;
				i586-*-*)	march=i586 ;;
				*)			march=pentium-mmx ;;
			esac ;;
		esac
		#Let the application set its cflags
		unset CFLAGS
		append-flags -march=${march}
	else
		#Let the application set its cflags
		unset CFLAGS
	fi
	# Switch off hardened tech
	# Switch off hardened tech
	filter-flags -fpie -fstack-protector
	filter-flags -fpie -fstack-protector
 Lines 80-85    Link Here 
	if ! use sdl ; then
	if ! use sdl ; then
		myconf="$myconf --disable-sdl --disable-gfx-check"
		myconf="$myconf --disable-sdl --disable-gfx-check"
	fi
	fi
	# econf does not work
	./configure \
	./configure \
		--prefix=/usr \
		--prefix=/usr \
		--enable-adlib \
		--enable-adlib \
 Lines 90-100    Link Here 
		${myconf} \
		${myconf} \
		|| die "could not configure"
		|| die "could not configure"
	emake || die "make failed"
	emake OS_CFLAGS="${CFLAGS}" || die "make failed"
}
}
src_install() {
src_install() {
	make install \
	emake install \
		prefix="${D}/usr" \
		prefix="${D}/usr" \
		bindir="${D}/usr/bin" \
		bindir="${D}/usr/bin" \
		datadir="${D}/usr/share/qemu" \
		datadir="${D}/usr/share/qemu" \