|
|
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 |
|
|
} | } |
| |
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 |
|
|
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" \ |