1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
27 SUMMARY = Machine emulator and virtualizer
29 # If you update the version also qemu-ga !!!
33 DL_FILE = $(THISAPP).tar.xz
34 DL_FROM = $(URL_IPFIRE)
35 DIR_APP = $(DIR_SRC)/$(THISAPP)
36 TARGET = $(DIR_INFO)/$(THISAPP)
40 DEPS = alsa libusbredir spice libseccomp
56 ###############################################################################
58 ###############################################################################
62 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
64 $(DL_FILE)_BLAKE2 = 071cc1a35209a02e8c5dd4f43cb112f110b4655adb0f870a04fdf9a6e2c761699574e8c9426f70f60787a99acf252d7a64d94a8e837cdfeda93d89428d7866f3
68 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
70 download :$(patsubst %,$(DIR_DL)/%,$(objects))
72 b2 : $(subst %,%_BLAKE2,$(objects))
77 ###############################################################################
78 # Downloading, checking, b2sum
79 ###############################################################################
81 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
84 $(patsubst %,$(DIR_DL)/%,$(objects)) :
87 $(subst %,%_BLAKE2,$(objects)) :
90 ###############################################################################
91 # Installation Details
92 ###############################################################################
94 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
96 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
97 cd $(DIR_APP) && ./configure \
100 --localstatedir=/var \
103 --target-list="$(TARGETS)" \
104 --extra-cflags="$(CFLAGS)" \
111 cd $(DIR_APP) && make $(MAKETUNING)
112 cd $(DIR_APP) && make install
114 # install wrapper for old kvm parameter handling
115 install -m 755 $(DIR_SRC)/config/qemu/qemu /usr/bin/qemu
117 # install an udev script to set the permissions of /dev/kvm
118 cp -avf $(DIR_SRC)/config/qemu/65-kvm.rules /lib/udev/rules.d/65-kvm.rules