Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 include /usr/share/dpkg/architecture.mk
5 include /usr/share/mpi-default-dev/debian_defaults
6
7 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8
9 # FETK needs SuperLU, make sure the system library is used
10 SUPERLU_INCLUDES = $(shell pkg-config --cflags-only-I superlu | sed "s/^-I//" )
11 SUPERLU_LIBRARIES = $(shell pkg-config --libs superlu | sed "s/^-l//" )
12
13 BUILDDIR := $(CURDIR)/obj-$(DEB_HOST_MULTIARCH)
14
15 export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
16 export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) -fcommon -std=gnu17
17 export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
18 export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
19
20 %:
21 dh $@ --with python3,sphinxdoc --buildsystem=cmake
22
23 override_dh_auto_configure:
24 dh_auto_configure -- \
25 -DCMAKE_BUILD_TYPE=None \
26 -DAPBS_STATIC_BUILD=Off \
27 -DBUILD_DOC=Off -DBUILD_TOOLS=On \
28 -DENABLE_OPENMP=On -DENABLE_MPI=On \
29 -DENABLE_PYTHON=On -DBUILD_SHARED_LIBS=On \
30 -DENABLE_READLINE=Off -DENABLE_ZLIB=On \
31 -DFETCHCONTENT_SOURCE_DIR_FETK=$(CURDIR)/debian/external_deps/fetk \
32 -DRPC_CFLAGS=$(shell pkg-config --cflags libtirpc) \
33 -DBUILD_MALOC=Off
34
35 execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
36 execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
37 execute_after_dh_auto_build-indep:
38 PYTHONPATH=$(BUILDDIR)/tools/python sphinx-build -b html docs $(BUILDDIR)/docs/_build/html # HTML generator
39
40 override_dh_auto_test:
41 # run tests after installation
42
43 execute_after_dh_auto_install:
44 -(cd tests; PATH=$(CURDIR)/debian/tmp/usr/bin:$${PATH} LD_LIBRARY_PATH=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH):$${LD_LIBRARY_PATH} PYTHONPATH=$${PYTHONPATH}:$(CURDIR)/tools/manip python3 apbs_tester.py -c test_cases.cfg; rm -rf __pycache__)
45
46 override_dh_fixperms-indep:
47 dh_fixperms
48 for example in FKBP/1d7h-dmso/UHBD/pqr2qcd \
49 ion-pmf/runme.sh \
50 point-pmf/runme.sh \
51 protein-rna/postprocess.sh \
52 protein-rna/test.sh \
53 helix/Run_membrane-helix.sh \
54 protein-rna/run_apdx_files.sh; \
55 do \
56 chmod +x debian/apbs-data/usr/share/apbs/examples/$${example}; \
57 done
58 for script in amber2charmm.sh \
59 param/pdb2pqr/amber2uhbd.sh \
60 qcd2pqr.awk; \
61 do \
62 chmod a+x debian/apbs-data/usr/share/apbs/tools/conversion/$${script}; \
63 done
64 for example in bem-pKa/test_proteins \
65 pbsam-barn_bars; \
66 do \
67 chmod a-x debian/apbs-data/usr/share/apbs/examples/$${example}/*.pqr; \
68 done