2013-01-31 10:45:54 +00:00
|
|
|
# Template file for 'qemu-user-static'
|
|
|
|
pkgname=qemu-user-static
|
2013-05-22 08:40:10 +00:00
|
|
|
version=1.5.0
|
2013-01-31 10:45:54 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="qemu-${version}"
|
2013-04-21 03:35:27 +00:00
|
|
|
hostmakedepends="pkg-config automake python"
|
|
|
|
makedepends="libglib-devel pixman-devel libuuid-devel>=2.22.2_9"
|
2013-01-31 10:45:54 +00:00
|
|
|
short_desc="QEMU User-mode emulators (statically compiled)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://qemu.org"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
|
|
|
distfiles="http://wiki.qemu.org/download/qemu-${version}.tar.bz2"
|
2013-05-22 08:40:10 +00:00
|
|
|
checksum=b22b30ee9712568dfb4eedf76783f4a76546e1cbc41659b909646bcf0b4867bb
|
2013-01-31 10:45:54 +00:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec \
|
|
|
|
--disable-kvm --disable-vnc-png --disable-vnc-tls \
|
|
|
|
--disable-virtfs --disable-fdt --disable-seccomp \
|
|
|
|
--disable-kvm --enable-linux-user --disable-system
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2013-04-21 03:35:27 +00:00
|
|
|
make ${makejobs} LDFLAGS="-static -lrt -luuid"
|
2013-01-31 10:45:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
# Remove unneeded stuff.
|
|
|
|
rm -rf ${DESTDIR}/etc ${DESTDIR}/usr/share ${DESTDIR}/usr/libexec
|
|
|
|
for f in nbd io img; do
|
|
|
|
rm -f ${DESTDIR}/usr/bin/qemu-${f}
|
|
|
|
done
|
|
|
|
for f in ${DESTDIR}/usr/bin/*; do
|
|
|
|
mv ${f} ${f}-static
|
|
|
|
done
|
|
|
|
}
|
2013-04-14 09:26:34 +00:00
|
|
|
|
|
|
|
qemu-user-static_package() {
|
|
|
|
pkg_install() {
|
2013-04-21 03:23:12 +00:00
|
|
|
vmove all
|
2013-04-14 09:26:34 +00:00
|
|
|
}
|
|
|
|
}
|