File: rules

package info (click to toggle)
gettext 0.23.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 167,652 kB
  • sloc: ansic: 532,868; sh: 68,216; perl: 28,011; makefile: 9,046; lisp: 3,184; yacc: 1,055; java: 615; cs: 589; cpp: 397; objc: 343; sed: 79; tcl: 63; xml: 40; pascal: 11; awk: 7; php: 7
file content (64 lines) | stat: -rwxr-xr-x 1,420 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
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/make -f

%:
	dh $@ $(WITH_MAVEN)

override_dh_autoreconf:

#
# Parameters to configure.
#
CONFIGURE_OPTIONS = \
  --enable-threads \
  --disable-native-java \
  --disable-rpath \
  --without-emacs

ifneq (,$(filter maven-repo-helper,$(shell dh -l)))
  ifeq (,$(filter nojava,$(DEB_BUILD_PROFILES)))
    WITH_MAVEN = --with maven-repo-helper
  endif
endif

# On emulated m68k and sh4 targets, OpenMP can cause lockups,
# we therefore disable it for the time being.
ifneq (,$(findstring $(DEB_HOST_ARCH), m68k sh4))
  CONFIGURE_OPTIONS += --disable-openmp
else
  CONFIGURE_OPTIONS += --enable-openmp
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_OPTIONS)


#
# Parameters to make.
#
MAKE_OPTIONS =

# Disable use of Java in gettext-tools/urlget.
# See <https://bugs.debian.org/292988>.
MAKE_OPTIONS += USEJAVA=0

override_dh_auto_build:
	dh_auto_build -- $(MAKE_OPTIONS)


#
# We package gettext-el using dh_elpa, but upstream doesn't provide
# ELPA package metadata so we have to give it some hints.
#
ELPA_NAME=po-mode
export ELPA_NAME
include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION_UPSTREAM

# gettext-el has no test suite, but the package as a whole does have a
# test suite, run by the normal dh_auto_test, that should not be skipped.
export DH_ELPA_TEST_DISABLE=disable

override_dh_auto_test:
	dh_auto_test --max-parallel=1