#!/usr/bin/make -f OPEN_MM_PLUGIN_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)/openmm/plugins CONFIGURE_OPTIONS = -DOPTIMIZE=ON -DUBUNTU_LAYOUT=ON ifeq ($(shell test -e $(OPEN_MM_PLUGIN_DIR) && echo YES),YES) CONFIGURE_OPTIONS += -DENABLE_MM=ON -DOPEN_MM_PLUGIN_DIR=$(OPEN_MM_PLUGIN_DIR) endif %: dh $@ --with python3 override_dh_auto_configure: dh_auto_configure -- $(CONFIGURE_OPTIONS) override_dh_auto_install: dh_auto_install find debian/tmp/usr/lib -name '*.pyc' | xargs --no-run-if-empty rm override_dh_install: dh_install find debian/python3-ost/usr/lib/python3/dist-packages -type f \ | xargs --no-run-if-empty chmod -x find debian/tmp/usr/lib -name 'libost_*.so.*' \ | while read LIB; \ do dh_install -p$$(echo $$LIB | cut -d / -f 5 | cut -d . -f 1 | sed 's/_/-/g')2.3 \ $$LIB usr/lib/$(DEB_HOST_MULTIARCH); \ done find debian/tmp/usr/lib -name 'libost_*.so' \ | while read LIB; \ do dh_install -p$$(echo $$LIB | cut -d / -f 5 | cut -d . -f 1 | sed 's/_/-/g')-dev \ $$LIB usr/lib/$(DEB_HOST_MULTIARCH); \ done