File: rules

package info (click to toggle)
libsmpp34 1.14.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 652 kB
  • sloc: ansic: 3,375; makefile: 239; sh: 66; xml: 15
file content (44 lines) | stat: -rwxr-xr-x 1,225 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

#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_BUILD_OPTIONS = parallel=1

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

PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
PKG  = $(DEB_SOURCE)
VER ?= $(DEB_VERSION_UPSTREAM)


%:
	dh $@ --no-parallel --with autoreconf

## Note! Workaround for the binary-dir present in the source dir -->
.PHONY: binary
binary:
	dh $@
## <--

override_dh_auto_configure:
	dh_auto_configure -- --includedir=/usr/include/libsmpp34
	cat debian/libsmpp34.pc.in | sed 's/$$VERSION/${VER}/' | sed 's/$$PREFIX/\/usr/' \
     | sed 's#$$LIBDIR#/usr/lib/$(DEB_HOST_MULTIARCH)#' > debian/libsmpp34.pc

override_dh_auto_install:
	dh_auto_install
	install -D -m 644 debian/libsmpp34.pc debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/libsmpp34.pc
	rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libsmpp34.la

override_dh_clean:
	dh_clean
	rm -f debian/libsmpp34.pc


#get-orig-source: $(info I: $(PKG)_$(VER))
#	@echo "# Downloading..."
#	uscan --noconf --verbose --rename --destdir=$(CURDIR) --force-download --download-version $(VER) $(PKD)