2018-09-17 13:27:14 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
|
|
|
|
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.qemu.org
|
2018-09-17 20:35:10 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="A generic and open source machine emulator (x86_64)"
|
2018-09-17 14:03:04 +02:00
|
|
|
TERMUX_PKG_VERSION=2.12.1
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2018-09-17 13:27:14 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://download.qemu.org/qemu-${TERMUX_PKG_VERSION}.tar.xz
|
2018-09-17 14:03:04 +02:00
|
|
|
TERMUX_PKG_SHA256=33583800e0006cd00b78226b85be5a27c8e3b156bed2e60e83ecbeb7b9b8364f
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_DEPENDS="glib, libandroid-shmem, libandroid-support, libbz2, libc++, libcurl, libgnutls, libjpeg-turbo, liblzo, libnettle, libpixman, libpng, libsasl, libssh2, libutil, ncurses, qemu-common, sdl2"
|
2018-09-17 13:27:14 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2018-09-17 14:03:04 +02:00
|
|
|
|
2018-09-17 13:27:14 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="
|
|
|
|
bin/qemu-nbd
|
|
|
|
share/man/man8
|
|
|
|
"
|
|
|
|
|
2018-09-17 14:03:04 +02:00
|
|
|
termux_step_configure() {
|
2018-09-17 20:35:10 +02:00
|
|
|
local ENABLED_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,x86_64-softmmu,aarch64-linux-user,arm-linux-user,i386-linux-user,x86_64-linux-user"
|
|
|
|
|
2018-09-17 13:27:14 +02:00
|
|
|
./configure --prefix="${TERMUX_PREFIX}" \
|
|
|
|
--cross-prefix="${CC//clang}" \
|
|
|
|
--cc="${CC}" \
|
|
|
|
--host-cc="gcc" \
|
|
|
|
--cxx="${CXX}" \
|
|
|
|
--objcc="${CC}" \
|
|
|
|
--extra-cflags="${CFLAGS}" \
|
|
|
|
--extra-cxxflags="${CXXFLAGS}" \
|
|
|
|
--extra-ldflags="${LDFLAGS} -landroid-shmem -llog" \
|
|
|
|
--smbd="${TERMUX_PREFIX}/bin/smbd" \
|
|
|
|
--disable-guest-agent \
|
|
|
|
--enable-pie \
|
2018-09-17 15:18:32 +02:00
|
|
|
--enable-sdl \
|
|
|
|
--with-sdlabi="2.0" \
|
2018-09-17 13:27:14 +02:00
|
|
|
--disable-gtk \
|
|
|
|
--disable-vte \
|
|
|
|
--enable-curses \
|
|
|
|
--enable-vnc \
|
|
|
|
--enable-vnc-jpeg \
|
|
|
|
--enable-vnc-png \
|
|
|
|
--enable-vnc-sasl \
|
|
|
|
--disable-mpath \
|
|
|
|
--disable-xen \
|
|
|
|
--enable-curl \
|
|
|
|
--enable-fdt \
|
|
|
|
--disable-kvm \
|
|
|
|
--disable-hax \
|
|
|
|
--disable-spice \
|
|
|
|
--enable-lzo \
|
|
|
|
--enable-bzip2 \
|
|
|
|
--disable-seccomp \
|
|
|
|
--enable-coroutine-pool \
|
|
|
|
--enable-tpm \
|
|
|
|
--enable-libssh2 \
|
|
|
|
--disable-jemalloc \
|
|
|
|
--disable-libxml2 \
|
2018-09-17 20:35:10 +02:00
|
|
|
--target-list="${ENABLED_TARGETS}"
|
2018-09-17 13:27:14 +02:00
|
|
|
}
|
|
|
|
|
2018-09-17 14:03:04 +02:00
|
|
|
termux_step_post_make_install() {
|
2018-09-17 13:27:14 +02:00
|
|
|
## by default, alias 'qemu' will be a qemu-system-x86_64
|
|
|
|
ln -sfr "${TERMUX_PREFIX}/bin/qemu-system-x86_64" "${TERMUX_PREFIX}/bin/qemu"
|
|
|
|
sed -i 's/qemu\\-system\\-i386/qemu\\-system\\-x86_64/g' "${TERMUX_PREFIX}/share/man/man1/qemu.1"
|
|
|
|
|
|
|
|
## symlink manpages
|
|
|
|
ln -sfr "${TERMUX_PREFIX}/share/man/man1/qemu.1" "${TERMUX_PREFIX}/share/man/man1/qemu-system-aarch64.1"
|
|
|
|
ln -sfr "${TERMUX_PREFIX}/share/man/man1/qemu.1" "${TERMUX_PREFIX}/share/man/man1/qemu-system-arm.1"
|
|
|
|
ln -sfr "${TERMUX_PREFIX}/share/man/man1/qemu.1" "${TERMUX_PREFIX}/share/man/man1/qemu-system-i386.1"
|
|
|
|
ln -sfr "${TERMUX_PREFIX}/share/man/man1/qemu.1" "${TERMUX_PREFIX}/share/man/man1/qemu-system-x86_64.1"
|
|
|
|
}
|