#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed export AUTOHEADER = true %: dh $@ --with autoreconf --parallel override_dh_auto_clean: rm -rf lib/.libs dh_auto_clean dh_auto_clean --buildsystem=cmake override_dh_auto_configure: CONFIG_SHELL=/bin/bash dh_auto_configure -- \ --enable-shared \ --enable-deriv \ --enable-r12 \ --enable-debug=opt \ --with-libint-max-am=6 \ --with-libderiv-max-am1=5 \ --with-libderiv-max-am2=4 \ --prefix=/usr \ --with-cc-optflags="$(CFLAGS) $(CPPFLAGS)" \ --with-cxx-optflags="$(CXXFLAGS) $(CPPFLAGS)" \ --with-libdirs="$(LDFLAGS)" \ --with-pic dh_auto_configure --buildsystem=cmake -- \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_LIBDIR=lib \ -DMAX_AM_ERI=6 \ -DENABLE_XHOST=OFF override_dh_auto_build: $(MAKE) -C doc dh_auto_build dh_auto_build --buildsystem=cmake override_dh_auto_install: dh_auto_install (cd debian/tmp/usr/lib/*/; \ ln -s libderiv.so.1 libderiv-stable.so.1; \ ln -s libint.so.1 libint-stable.so.1; \ ln -s libr12.so.1 libr12-stable.so.1) override_dh_installchangelogs: dh_installchangelogs CHANGES