File: rules

package info (click to toggle)
osmpbf 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 416 kB
  • sloc: java: 1,400; cpp: 244; xml: 184; sh: 52; makefile: 24; ansic: 11
file content (40 lines) | stat: -rwxr-xr-x 843 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
#!/usr/bin/make -f
# -*- makefile -*-

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

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/pkg-info.mk

UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')

%:
	dh $@ --buildsystem cmake

override_dh_auto_clean:
	dh_auto_clean --buildsystem ant
	dh_auto_clean
	mh_clean

override_dh_auto_configure:
	dh_auto_configure --buildsystem ant
	dh_auto_configure

override_dh_auto_build:
	dh_auto_build --buildsystem ant
	dh_auto_build

override_dh_auto_install:
	dh_auto_install --buildsystem ant
	dh_auto_install

override_dh_install:
	dh_install
	mh_installjar -plibosmpbf-java -l pom.xml osmpbf.jar
	mh_installpom -plibosmpbf-java pom.xml

override_dh_makeshlibs:
	dh_makeshlibs -- -c0 -v$(UPSTREAM_VERSION)