File: rules

package info (click to toggle)
transcriber 1.5.1.1-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 4,448 kB
  • ctags: 2,220
  • sloc: tcl: 13,141; ansic: 1,894; sh: 1,193; makefile: 96; xml: 66
file content (46 lines) | stat: -rwxr-xr-x 1,458 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
#!/usr/bin/make -f

DEB_SRCDIR = src

export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
export DEB_CFLAGS_MAINT_APPEND = -Wall
export DEB_CPPFLAGS_MAINT_APPEND = -DUSE_INTERP_RESULT
include /usr/share/dpkg/buildflags.mk

include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_CONFIGURE_USER_FLAGS = --disable-stubs --with-tcl=/usr/lib --with-tk=/usr/lib

DEB_CONFIGURE_SCRIPT_ENV = $(call cdbs_set_nondefaultvars,CC) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)"

SHELL=/bin/bash
package=transcriber
packagelib=transcriber1.5

DEB_AUTO_UPDATE_AUTOCONF = 2.69

BACKUP=src/configure

DEB_COPYRIGHT_CHECK_IGNORE_REGEX := ^debian/(changelog|copyright(|_hints|_newhints))$$|^doc/.*[.](pdf|jpg|eps|gif|png)$$|^demo/.*[.](wav)$$

pre-build::
	# Backup files expected to be modified.
	set -e ; for i in $(BACKUP); do \
		if [ ! -f "$$i".backup ]; then cp -a "$$i" "$$i".backup; fi ; \
	done

clean::
	set -e ; for i in $(BACKUP); do \
		if [ -f "$$i".backup ]; then mv -f "$$i".backup "$$i"; fi ; \
	done

DEB_INSTALL_EXAMPLES_transcriber = demo/*
DEB_INSTALL_MANPAGES_ALL = debian/manpages_files/transcriber.1
DEB_DH_MAKESHLIBS_ARGS_ALL := -Xlibtrans

# Needed by upstream build process
CDBS_BUILD_DEPENDS += , tcl-dev, tk-dev, tcl-snack-dev, tcl-tclex, libx11-dev, cpio, dpkg-dev (>= 1.16.1~)