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
|
#!/usr/bin/make -f
# -*- makefile -*-
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@ --no-parallel --with elpa
override_dh_auto_clean:
-(cd src/bin/mpqc/validate; $(MAKE) check_clean)
dh_auto_clean
override_dh_auto_configure:
dh_auto_configure -- \
--enable-production \
--with-cxx=mpic++\
--with-cc=mpicc \
--with-f77=mpif77 \
--enable-threads \
--enable-always-use-mpi \
--with-default-parallel=mpi \
--with-mpi-thread=single \
--enable-shared \
--includedir=/usr/include/sc \
--datadir=/usr/share/mpqc \
--with-sc-datadir=/usr/share/mpqc \
--with-include=-I/usr/include/mpi
override_dh_auto_install:
dh_auto_install -- install install_devel installroot=$(CURDIR)/debian/tmp
chrpath -d $(CURDIR)/debian/tmp/usr/lib/*/*.so.*.*.*
chrpath -d $(CURDIR)/debian/tmp/usr/bin/mpqc
chrpath -d $(CURDIR)/debian/tmp/usr/bin/scls
chrpath -d $(CURDIR)/debian/tmp/usr/bin/scpr
chrpath -d $(CURDIR)/debian/tmp/usr/bin/molrender
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
-dh_auto_test -- -C src/bin/mpqc/validate check SCLIBDIR=$(CURDIR)/lib OMPI_MCA_orte_rsh_agent=/bin/false
endif
override_dh_fixperms:
dh_fixperms
find debian -name "*.out" -exec chmod -x \{\} \;
|