File: rules

package info (click to toggle)
libxfont 1%3A2.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,040 kB
  • sloc: ansic: 21,306; sh: 4,368; xml: 550; makefile: 173
file content (51 lines) | stat: -rwxr-xr-x 1,390 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
#!/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 \
	CFLAGS="$(CFLAGS)" \
	CPPFLAGS="$(CPPFLAGS)" \
	LDFLAGS="$(LDFLAGS)"


execute_after_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_makeshlibs:
	dh_makeshlibs -V'libxfont2 (>= 1:2.0.1)' --add-udeb=$(PACKAGE)-udeb

%:
	dh $@