File: rules

package info (click to toggle)
sword 1.9.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 13,968 kB
  • sloc: cpp: 47,448; ansic: 7,814; sh: 4,825; objc: 1,744; makefile: 1,308; cs: 906; java: 864; perl: 784; pascal: 681; tcl: 350; xml: 204; python: 79
file content (23 lines) | stat: -rwxr-xr-x 759 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
#!/usr/bin/make -f
DH_VERBOSE := 1
include /usr/share/dpkg/architecture.mk

WFLAGS   := -Wall
# Hardening
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --with python3 -Scmake

override_dh_auto_configure:
	dh_auto_configure -- -DLIB_INSTALL_DIR="/usr/lib/$(DEB_HOST_MULTIARCH)" -DSYSCONF_INSTALL_DIR=/etc -DSWORD_PYTHON_3:BOOL=TRUE

override_dh_install:
	-chrpath -d debian/tmp/usr/bin/*
	-chrpath -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*so*
	dh_install
	# Don't embed absolute build path in wrapper scripts
	sed -i '/# Add our own library path TO LD_LIBRARY_PATH/d' debian/*/usr/bin/*
	sed -i '/LD_LIBRARY_PATH="\//d' debian/*/usr/bin/*
	# Remove empty directory: usr/share/sword/modules
	-rmdir debian/libsword-common/usr/share/sword/modules