File: rules

package info (click to toggle)
wxsqlite3 3.1.1~dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,852 kB
  • ctags: 3,302
  • sloc: cpp: 22,435; sh: 2,837; makefile: 367; ansic: 212; php: 9
file content (57 lines) | stat: -rwxr-xr-x 1,633 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
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/make -f
# -*- makefile -*-

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

LDFLAGS+=-Wl,--as-needed -lwx_gtk2u_adv-3.0
export REPACK_SH=$(CURDIR)/debian/repack.sh
export USE_SOTWOSYMLINKS=1
UPSTEAM_VERSION=$(shell dpkg-parsechangelog 2>/dev/null | sed -ne 's/Version: \([0-9.]\+\)~.*/\1/p')
PKGDOCDIR=$(CURDIR)/debian/wxsqlite3-doc/

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

%:
	dh $@ --parallel --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- --with-sqlite3-prefix=/usr

override_dh_strip:
	dh_strip --dbg-package=wxsqlite3-3.0-dbg

override_dh_installchangelogs:
	dh_installchangelogs Readme.txt

override_dh_auto_install:
	dh_auto_install
	sed -e "s/@VERSION@/${UPSTREAM_VERSION}/" \
	    -e "s#@LIBDIR@#lib/${DEB_HOST_MULTIARCH}#" \
		debian/wxsqlite3-3.0.pc.in > debian/wxsqlite3-3.0.pc
	chmod -x debian/wxsqlite3-3.0.pc
	mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
	install -m 0644 debian/wxsqlite3-3.0.pc \
		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig

override_dh_install:
	dh_install
ifneq (,$(shell dh_listpackages -i 2>/dev/null))
	chmod -x $(PKGDOCDIR)/usr/share/wxsqlite3-doc/html/*
	dh_link -pwxsqlite3-doc /usr/share/javascript/jquery/jquery.js \
		/usr/share/wxsqlite3-doc/html/jquery.js
endif

override_dh_auto_test:
	debian/runtest.sh

override_dh_auto_clean:
	dh_auto_clean
	rm -f test.db test2.db test-backup.db
	rm -f debian/wxsqlite3-3.0.pc

get-orig-source:
	uscan --force-download

.PHONY: override_dh_auto_clean override_dh_auto_configure override_dh_install \
	override_dh_strip override_dh_auto_test