File: rules

package info (click to toggle)
avogadro 1.97.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,856 kB
  • sloc: cpp: 2,880; perl: 321; python: 164; xml: 120; sh: 58; makefile: 22
file content (34 lines) | stat: -rwxr-xr-x 991 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
#!/usr/bin/make -f

#export DH_VERBOSE=1

export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) -fPIC
export CFLAGS   := $(CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS)
export CXXFLAGS := $(CPPFLAGS) $(shell dpkg-buildflags --get CXXFLAGS)
export LDFLAGS  := -fPIC $(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,defs

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	-DCMAKE_SKIP_RPATH=TRUE \
	-DAvogadro_ENABLE_RPC=ON \
	-DBUILD_DOCUMENTATION=ON \
	  -DChemData_SOURCE_DIR=$(CURDIR) \
	  -DChemData_BINARY_DIR=$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)

override_dh_auto_build:
	dh_auto_build
	cd obj-$(DEB_HOST_GNU_TYPE); make documentation

# upstream installs generic docs in an odd location.
# We want them in /usr/share/doc/avogadro, so install first in tmp
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	cp -r obj-$(DEB_HOST_GNU_TYPE)/docs/html debian/tmp

override_dh_clean:
	dh_clean conf.log conf.pri