File: rules

package info (click to toggle)
flite 2.0.0-release-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 82,752 kB
  • ctags: 148,108
  • sloc: ansic: 690,052; sh: 4,555; lisp: 2,883; makefile: 799; xml: 52; perl: 33; cpp: 28
file content (54 lines) | stat: -rwxr-xr-x 1,449 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
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f

%:
	dh $@ --with autoreconf

export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
# -fPIE doesn't work, but at least get -fPIC as we used to have with
# hardening-wrapper
export DEB_CFLAGS_MAINT_APPEND = -no-pie -fno-pie -fno-PIE -fPIC
export DEB_CXXFLAGS_MAINT_APPEND = -no-pie -fno-pie -fno-PIE -fPIC
#fix FTBFS with binutils-gold
export DEB_LDFLAGS_MAINT_APPEND = -lm

DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# If it's a linux OS use alsa, else use oss.
ifeq ($(DEB_BUILD_ARCH_OS),linux)
AUDIO=alsa
else
AUDIO=oss
endif

override_dh_auto_configure:
	dh_auto_configure -- --with-audio=$(AUDIO) \
		--with-vox=cmu_us_kal16 --enable-shared

override_dh_auto_build:
	$(MAKE)
	(set -e; cd doc; $(MAKE) flite.pdf flite.html; makeinfo flite.texi)

override_dh_auto_clean:
	for i in aux cp dvi fn info ky log pdf pg ps toc tp vr; do \
		rm -f doc/flite.$$i; \
	done

	rm -Rf doc/html
	rm -rf build/
	rm -rf lib/
	rm -rf bin/
	rm -f config.log
	rm -f config.status
	rm -f config.cache
	rm -f config/config
	rm -f config/system.mak
	rm -f include/flite_version.h
	rm -f configure
	rm -f main/flite_voice_list.c

override_dh_install:
	dh_install
	dh_install -plibflite1 build/*/lib/*.so.* usr/lib/$(DEB_HOST_MULTIARCH)
	rm -f build/*/lib/*.shared.a
	dh_install -pflite1-dev build/*/lib/*.so build/*/lib/*.a usr/lib/$(DEB_HOST_MULTIARCH)