File: rules

package info (click to toggle)
litecoin 0.21.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 34,400 kB
  • sloc: cpp: 173,823; python: 35,653; ansic: 29,671; asm: 27,063; sh: 5,572; makefile: 1,562; java: 438; lisp: 169
file content (43 lines) | stat: -rwxr-xr-x 1,342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CXXFLAGS_MAINT_APPEND= -fPIC
export QT_SELECT=5

%:
	dh $@
# --with bash-completion

override_dh_auto_configure:
	dh_auto_configure -- \
            --disable-bench \
            --disable-ccache \
            --disable-hardening \
            --disable-shared \
            --disable-silent-rules \
            --disable-static \
            --disable-util-tx \
            --with-incompatible-bdb \
            --with-gui=qt5 \
        ;
## "--disable-hardening" disables upstream's hardening that overrides build
## flags -- in particular it drops "-fPIC" which leads to FTBFS with GCC-5
## (see #777983)
##~~       --with-system-univalue

override_dh_auto_build:
	dh_auto_build
	## build icons:
	convert src/qt/res/icons/bitcoin.png -resize 32x32 $(CURDIR)/debian/litecoin.xpm
	convert src/qt/res/icons/bitcoin.png -resize 64x64 +set date:create +set date:modify -define png:exclude-chunk=time $(CURDIR)/debian/litecoin.png

override_dh_auto_test:
	## Set HOME to debian/tmp since buildd do not have RW permission to /home/buildd.
	HOME=$(CURDIR)/debian/tmp dh_auto_test

override_dh_installchangelogs:
	dh_installchangelogs doc/release-notes-litecoin.md