File: rules

package info (click to toggle)
libint 1.2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,664 kB
  • sloc: sh: 10,214; ansic: 9,478; makefile: 437; perl: 141
file content (63 lines) | stat: -rwxr-xr-x 1,826 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
58
59
60
61
62
63
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

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

export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS   := $(shell dpkg-buildflags --get CFLAGS)
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
export LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed

export AUTOHEADER = true

# Ensure that texlive respects SOURCE_DATE_EPOCH for reproducible builds
export FORCE_SOURCE_DATE=1

%:
	dh $@

override_dh_auto_clean:
	rm -rf lib/.libs
	dh_auto_clean
	dh_auto_clean --buildsystem=cmake

override_dh_auto_configure:
	CONFIG_SHELL=/bin/bash dh_auto_configure -- \
		--enable-shared \
		--enable-deriv \
		--enable-r12 \
		--enable-debug=opt \
		--with-libint-max-am=6 \
		--with-libderiv-max-am1=5 \
		--with-libderiv-max-am2=4 \
		--prefix=/usr \
		--with-cc-optflags="$(CFLAGS) $(CPPFLAGS)" \
		--with-cxx-optflags="$(CXXFLAGS) $(CPPFLAGS)" \
		--with-libdirs="$(LDFLAGS)" \
		--with-pic
	dh_auto_configure --buildsystem=cmake -- 	\
		-DCMAKE_BUILD_TYPE=RelWithDebInfo	\
		-DCMAKE_INSTALL_LIBDIR=lib		\
		-DMAX_AM_ERI=6				\
		-DENABLE_XHOST=OFF

override_dh_auto_build:
	$(MAKE) -C doc
	dh_auto_build
	dh_auto_build --buildsystem=cmake

override_dh_auto_install:
	dh_auto_install
	(cd debian/tmp/usr/lib/*/; \
		ln -s libderiv.so.1 libderiv-stable.so.1; \
		ln -s libint.so.1 libint-stable.so.1; \
		ln -s libr12.so.1 libr12-stable.so.1)

override_dh_installchangelogs:
	dh_installchangelogs CHANGES