]> git.proxmox.com Git - pve-qemu.git/blame - debian/rules
debian/rules: disable building with SDL integration
[pve-qemu.git] / debian / rules
CommitLineData
95259824
WB
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# This file was originally written by Joey Hess and Craig Small.
5# As a special exception, when this file is copied by dh-make into a
6# dh-make output file, you may use that output file without restriction.
7# This special exception was added by Craig Small in version 0.37 of dh-make.
8
9# Uncomment this to turn on verbose mode.
10#export DH_VERBOSE=1
11
12
13# These are used for cross-compiling and for saving the configure script
14# from having to guess our platform (since we know it already)
15DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
a544966d
WB
18ARCH ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
19
95259824
WB
20PACKAGE=pve-qemu-kvm
21destdir := $(CURDIR)/debian/$(PACKAGE)
22
95259824
WB
23CFLAGS = -Wall
24
25ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
26 CFLAGS += -O0
27else
28 CFLAGS += -O2
29endif
30
31config.status: configure
32 dh_testdir
33 # Add here commands to configure the package.
a21f5778
EK
34
35 # guest-agent is only required for guest systems
964a487a 36 ./configure \
2fb093cf 37 --docdir=/usr/share/doc/pve-qemu-kvm \
964a487a
TL
38 --localstatedir=/var \
39 --prefix=/usr \
40 --sysconfdir=/etc \
41 --target-list=$(ARCH)-softmmu,aarch64-softmmu \
42 --with-confsuffix="/kvm" \
43 --audio-drv-list="alsa" \
44 --datadir=/usr/share \
edf1ab9a 45 --disable-capstone \
964a487a
TL
46 --disable-gtk \
47 --disable-guest-agent \
48 --disable-guest-agent-msi \
49 --disable-libnfs \
ec302df9 50 --disable-libxml2 \
b7022279 51 --disable-sdl \
964a487a
TL
52 --disable-smartcard \
53 --disable-strip \
54 --disable-xen \
42dfcf97 55 --enable-curl \
964a487a
TL
56 --enable-glusterfs \
57 --enable-gnutls \
58 --enable-jemalloc \
59 --enable-libiscsi \
60 --enable-libusb \
61 --enable-linux-aio \
62 --enable-numa \
63 --enable-rbd \
73e12bd7 64 --enable-seccomp \
964a487a
TL
65 --enable-spice \
66 --enable-usb-redir \
67 --enable-virtfs \
68 --enable-xfsctl
95259824 69
8e326f30 70build: build-stamp
95259824
WB
71
72build-stamp: config.status
73 dh_testdir
74
75 # Add here commands to compile the package.
76 $(MAKE)
77
78 #docbook-to-man debian/kvm.sgml > kvm.1
79
80 touch $@
81
8e326f30 82clean:
95259824
WB
83 dh_testdir
84 dh_testroot
85 rm -f build-stamp
86
87 # Add here commands to clean up after the build process.
88 -$(MAKE) distclean
89ifneq "$(wildcard /usr/share/misc/config.sub)" ""
90 cp -f /usr/share/misc/config.sub config.sub
91endif
92ifneq "$(wildcard /usr/share/misc/config.guess)" ""
93 cp -f /usr/share/misc/config.guess config.guess
94endif
95
96
97 dh_clean
98
99install: build
100 dh_testdir
101 dh_testroot
68ba098a 102 dh_prep
95259824 103 dh_installdirs
7df330a9 104 dh_lintian
95259824
WB
105
106 # Add here commands to install the package into debian/pve-kvm.
107 $(MAKE) DESTDIR=$(destdir) install
108
95259824
WB
109 # we do not need openbios files (sparc/ppc)
110 rm -rf $(destdir)/usr/share/kvm/openbios-*
111 # remove ppc files
112 rm $(destdir)/usr/share/kvm/*.dtb
113 rm $(destdir)/usr/share/kvm/ppc_rom.bin
114 rm $(destdir)/usr/share/kvm/s390-ccw.img
8fefb882
TL
115 rm $(destdir)/usr/share/kvm/s390-netboot.img
116 rm $(destdir)/usr/share/kvm/qemu_vga.ndrv
95259824
WB
117 rm $(destdir)/usr/share/kvm/slof.bin
118 rm $(destdir)/usr/share/kvm/spapr-rtas.bin
119 rm $(destdir)/usr/share/kvm/u-boot.e500
120 # remove Aplha files
121 rm $(destdir)/usr/share/kvm/palcode-clipper
122
95259824
WB
123 # Remove things we don't package at all, would be a "kvm-dev" package
124 rm -Rf $(destdir)/usr/include/linux/
125 rm -Rf $(destdir)/usr/include
126 rm -Rf $(destdir)/usr/lib*
127
128# Build architecture-independent files here.
129binary-indep: build install
130# We have nothing to do by default.
131
132# Build architecture-dependent files here.
133binary-arch: build install
134 dh_testdir
135 dh_testroot
2c2626dd
EK
136 # exclude historic Changelog file, which stops at release 0.14
137 dh_installchangelogs --exclude=Changelog
95259824
WB
138 dh_installdocs
139 dh_installexamples
fd202a5a 140 dh_install
95259824
WB
141# dh_installmenu
142# dh_installdebconf
143# dh_installlogrotate
144# dh_installemacsen
145# dh_installpam
146# dh_installmime
147# dh_python
148# dh_installinit
149# dh_installcron
150# dh_installinfo
151 dh_installman
152 dh_link
153 dh_strip --dbg-package=pve-qemu-kvm-dbg
154 dh_compress
155 dh_fixperms
156# dh_perl
157# dh_makeshlibs
158 dh_installdeb
159 dh_shlibdeps
160 dh_gencontrol
161 dh_md5sums
162 dh_builddeb
163
164binary: binary-indep binary-arch
165.PHONY: build clean binary-indep binary-arch binary install