|
|
# Switch off hardened tech | # Switch off hardened tech |
filter-flags -fpie -fstack-protector | filter-flags -fpie -fstack-protector |
| |
|
# Explicitly disabling all sse commands didn't help here, forcing |
|
# pentium-mmx works. Fixes bug #212351. |
|
use x86 && append-flags -march=pentium-mmx |
|
|
myconf="--disable-gcc-check" | myconf="--disable-gcc-check" |
if use alsa; then | if use alsa; then |
myconf="$myconf --enable-alsa" | myconf="$myconf --enable-alsa" |
|
|
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 \ |
|
|
${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" \ |