File: rules

package info (click to toggle)
libxfont 1%3A2.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie, trixie-proposed-updates
  • size: 3,020 kB
  • sloc: ansic: 21,306; sh: 4,368; xml: 550; makefile: 177
file content (56 lines) | stat: -rwxr-xr-x 1,488 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

PACKAGE  = libxfont2
OOT      = --builddirectory=build

CFLAGS   = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS  += -Wall
CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS  = $(shell dpkg-buildflags --get LDFLAGS)

# Strip -Bsymbolic-functions (set by default on Ubuntu) to avoid breakages:
LDFLAGS := $(LDFLAGS:-Wl,-Bsymbolic-functions=)

CONFFLAGS += \
	--disable-fc \
	--enable-builtins \
	--enable-pcfformat \
	--enable-bdfformat \
	--enable-devel-docs \
	--without-fop \
	--disable-silent-rules \
	CFLAGS="$(CFLAGS)" \
	CPPFLAGS="$(CPPFLAGS)" \
	LDFLAGS="$(LDFLAGS)"


override_dh_auto_clean:
	dh_auto_clean
	rm -rf build-main/ debian/tmp-main/
	rm -rf build-udeb/ debian/tmp-udeb/

override_dh_auto_configure:
	dh_auto_configure $(OOT)-main/ -- --with-bzip2    --with-xmlto    $(CONFFLAGS)
	dh_auto_configure $(OOT)-udeb/ -- --without-bzip2 --without-xmlto $(CONFFLAGS)

override_dh_auto_build:
	$(MAKE) -C build-main/
	$(MAKE) -C build-udeb/

override_dh_auto_install:
	$(MAKE) -C build-main/ install DESTDIR=$(CURDIR)/debian/tmp-main
	$(MAKE) -C build-udeb/ install DESTDIR=$(CURDIR)/debian/tmp-udeb

override_dh_install:
	find debian/tmp-* -name '*.la' -delete
	dh_install -a -N$(PACKAGE)-udeb --sourcedir=debian/tmp-main
	dh_install    -p$(PACKAGE)-udeb --sourcedir=debian/tmp-udeb

override_dh_missing:
	dh_missing --fail-missing

override_dh_makeshlibs:
	dh_makeshlibs -V'libxfont2 (>= 1:2.0.1)' --add-udeb=$(PACKAGE)-udeb

%:
	dh $@ --with quilt