File: rules

package info (click to toggle)
fox1.6 1.6.57-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 17,592 kB
  • sloc: cpp: 148,083; sh: 4,294; ansic: 2,345; makefile: 1,422; perl: 119
file content (44 lines) | stat: -rwxr-xr-x 1,078 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
ifneq (,$(LDFLAGS))
  LDFLAGS := $(filter-out %-Bsymbolic-functions,$(LDFLAGS))
endif
endif

include /usr/share/dpkg/pkg-info.mk
export DEB_CPPFLAGS_MAINT_APPEND = -D_DEBDATE_=\"$(shell \
	LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +%b-%d-%Y)\"

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -Bbuild -- \
	  --with-xft  --with-xshm \
	  --with-xcursor --with-opengl \
	  --enable-release --with-xim \
	  --program-suffix=-1.6 \
	  --without-xrender \
	  --without-xfixes \
	  --without-xinput

override_dh_auto_clean:
	dh_auto_clean -Bbuild

override_dh_auto_build:
	dh_auto_build -Bbuild

override_dh_auto_install:
	dh_auto_install -Bbuild  --  \
		htmldir=/usr/share/doc/html \
		artdir=/usr/share/doc/html/art \
		screenshotsdir=/usr/share/doc/html/screenshots
	for file in debian/tmp/usr/lib/*/*.la; do \
		sed -i "/dependency_libs/ s/'.*'/''/" $$file ; \
	done