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