File: rules

package info (click to toggle)
rivet 1.8.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 29,332 kB
  • ctags: 10,713
  • sloc: cpp: 59,356; sh: 11,294; python: 6,747; ansic: 1,751; makefile: 1,538
file content (39 lines) | stat: -rwxr-xr-x 1,126 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
#!/usr/bin/make -f

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

# This has to be exported to make some magic below work.
export DH_OPTIONS

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

CPPFLAGS :=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   :=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS :=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS  :=$(shell dpkg-buildflags --get LDFLAGS)

export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--with-hepmc-incpath=/usr/include \
	       	--with-hepmc-libpath=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--with-fastjet-incpath=/usr/include \
		--with-fastjet-libpath=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--with-yaml_cpp-incpath=/usr/include \
		--with-yaml_cpp-libpath=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_install:
	dh_auto_install --max-parallel=1
	chrpath -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libRivet.so

override_dh_auto_build-indep:
	dh_auto_build
	$(MAKE) -C doc
	$(MAKE) dox

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