File: rules

package info (click to toggle)
subtitleeditor 0.56.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,880 kB
  • sloc: cpp: 26,446; makefile: 1,713; perl: 434; sh: 259; xml: 149
file content (22 lines) | stat: -rwxr-xr-x 895 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export V=1

## Enable compiler hardening flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --with-default-video-sink=autovideosink --enable-debug=no

override_dh_install:
	dh_install
	# Emptying the dependency_libs field in .la files
	sed -i "/dependency_libs/ s/'.*'/''/" `find $(CURDIR)/debian/libsubtitleeditor0/usr/lib/$(DEB_HOST_MULTIARCH)/subtitleeditor/plugins/actions -name '*.la'`
	sed -i "/dependency_libs/ s/'.*'/''/" `find $(CURDIR)/debian/libsubtitleeditor0/usr/lib/$(DEB_HOST_MULTIARCH)/subtitleeditor/plugins/subtitleformats -name '*.la'`
	sed -i "/dependency_libs/ s/'.*'/''/" `find $(CURDIR)/debian/libsubtitleeditor-dev/usr/lib/$(DEB_HOST_MULTIARCH) -name 'libsubtitleeditor.la'`