File: rules

package info (click to toggle)
pstoedit 3.73-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,116 kB
  • sloc: cpp: 28,290; sh: 4,510; perl: 4,110; ansic: 969; java: 860; makefile: 442
file content (28 lines) | stat: -rwxr-xr-x 693 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

export DEB_CXXFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-O1

ifeq ($(DEB_BUILD_ARCH_OS),hurd)
export DEB_CXXFLAGS_MAINT_APPEND += -lpthread
endif

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	@echo "Clearing .la files dependency_libs fields per Debian policy"	
	sed --in-place "/dependency_libs/ s/'.*'/''/" $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pstoedit/*.la

override_dh_installchangelogs:
	dh_installchangelogs doc/changelog.htm

override_dh_compress:
	dh_compress --exclude=.ps --exclude=.pdf