config: Update qemu to build on FreeBSD.

Update configuration to build on FreeBSD. This is based on pkg-config
detecting the packages installed on the host.
This commit is contained in:
Chris Johns
2014-02-11 10:38:33 +11:00
parent c4fefdeb55
commit f27f7c40f6
8 changed files with 22 additions and 10 deletions

View File

@@ -68,7 +68,8 @@ Source0: http://ftp.gnome.org/pub/gnome/sources/glib/%{glib_version_major}/glib-
--infodir=%{_infodir} \
--datadir=%{_datadir} \
--build=%{_build} --host=%{_host} \
--with-sysroot=$SYSROOT
--with-sysroot=$SYSROOT \
--disable-dtrace
%{__make} %{?_smp_mflags} all

View File

@@ -63,7 +63,8 @@ Source0: http://cairographics.org/releases/pixman-%{pixman_version}.tar.gz
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--datadir=%{_datadir} \
--build=%{_build} --host=%{_host}
--build=%{_build} --host=%{_host} \
--disable-gtk
%{__make} %{?_smp_mflags} all

View File

@@ -54,13 +54,16 @@ Source0: http://wiki.qemu-project.org/download/qemu-%{qemu_version}.tar.bz2
SYSROOT=$SB_TMPPREFIX
PKG_CONFIG_PATH=$SYSROOT \
PKG_CONFIG_SYSROOT_DIR=$SB_TMPROOT \
PKG_CONFIG_BUILD_TOP_DIR=$SB_TMPROOT \
%{_ld_library_path}=$SYSROOT/lib \
LDFLAGS="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib" \
../${source_dir_0}/configure \
--prefix=%{_prefix} \
--enable-trace-backend=simple \
--disable-tools \
--disable-pie \
--disable-vnc
--disable-vnc \
--disable-netmap
%{__make} %{?_smp_mflags} all