#!/usr/bin/make -f -include /usr/share/python3/python.mk PYVERS=$(shell py3versions -vs) PERL_ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) export DEB_CXXFLAGS_MAINT_APPEND = -std=gnu++98 DH_AUTO_CONFIGURE_OPTS := -DCMAKE_BUILD_TYPE=None \ -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) \ -DPYTHON_BINDINGS=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 \ -DPERL_BINDINGS=ON \ -DOBPERL_INSTALLDIRS=vendor \ -DRUN_SWIG=ON \ -DCMAKE_SKIP_RPATH=ON -DBUILD_GUI=ON \ -DENABLE_OPENMP=ON -DBUILD_DOCS=ON \ -DOPENBABEL_USE_SYSTEM_INCHI=ON ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) DH_AUTO_CONFIGURE_OPTS += -DENABLE_TESTS=OFF endif %: dh $@ --with=python3 --builddirectory=$(CURDIR)/builddir override_dh_auto_configure: dh_auto_configure -- $(DH_AUTO_CONFIGURE_OPTS) override_dh_auto_build: dh_auto_build make -C $(CURDIR)/builddir docs override_dh_auto_install: dh_auto_install mkdir --parents $(CURDIR)/debian/tmp/$(PERL_ARCHLIB) mv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/auto debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/Chemistry \ $(CURDIR)/debian/tmp/$(PERL_ARCHLIB) override_dh_installexamples: dh_installexamples -X.pyc override_dh_installdocs: dh_installdocs -X.js override_dh_compress: dh_compress -Xusr/share/doc/libopenbabel-dev/html \ -Xusr/share/doc/python3-openbabel/examples override_dh_auto_test: -BABEL_LIBDIR=$(CURDIR)/builddir/lib/$(DEB_HOST_MULTIARCH) \ LD_LIBRARY_PATH=$(CURDIR)/builddir/lib/$(DEB_HOST_MULTIARCH) \ dh_auto_test override_dh_strip: dh_strip --dbgsym-migration='openbabel-dbg (<< 3.0.0+dfsg)'