#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk %: dh $@ --sourcedirectory=c++ ifeq "" "$(filter noopt,$(DEB_BUILD_OPTIONS))" WITH_OPTIM=--with-optimization endif VDB_SUBTREES=os/$(DEB_HOST_ARCH_OS) os/unix cc/gcc/$(DEB_HOST_GNU_CPU) cc/gcc VDB_INC=-I/usr/include/ncbi-vdb VDB_INCLUDE=$(VDB_INC) $(VDB_SUBTREES:%=$(VDB_INC)/%) override_dh_auto_configure: cd c++ && yes | \ ./configure.orig --prefix=/usr \ --build=$(DEB_BUILD_GNU_TYPE) \ --host=$(DEB_HOST_GNU_TYPE) \ --with-lmdb \ --without-mbedtls --with-gnutls \ --with-openmp $(WITH_OPTIM) \ --with-vdb=/usr VDB_INCLUDE="$(VDB_INCLUDE)" \ --without-runpath \ --with-flat-makefile # --with-vdb VDB_LIBS=-lncbi-vdb VDB_INCLUDE=-I/usr/include/ncbi-vdb \ override_dh_auto_build: # keep the output of parallel jobs together, so blhc can parse it cd c++/*/build && make -Otarget -f Makefile.flat app/igblast/ 2>&1 find . -name igblastn -o -name igblastp | xargs chrpath --delete override_dh_auto_install: find . -name igblastn find . -name igblastp override_dh_clean: # cleans *.orig files, which it should not dh_clean -X*.orig #Tricky - for each module directory there may be several module files #or there may be none but then there is still a module named after the #directory. Clean everything! -for x in c++/src/objects/* ; do \ (test -d "$$x" && cd "$$x" && ( \ mods="`echo *.module`" ; \ [ "$${mods#*\*}" = "$$mods" ] || mods="`basename $$x`" ; \ for mod in $$mods ; do \ ../../../GCC*/build/new_module.sh $$mod \ purge_sources ; \ done ) ; \ ) ; \ done rm -rf c++/compilers/dll c++/config.log c++/Makefile c++/GCC* rm -f c++/configure.lineno c++/src/objects/blastxml/blastxml.module rm -f c++/include/common/ncbi_revision.h rm -rf c++/GCC*-Release*/ find c++/src/objtools -name "*.module" -delete mkdir efetch_tmp && mv c++/include/objtools/eutils/efetch/Pubmed[AB]*.hpp efetch_tmp && \ rm -rf c++/include/objtools/eutils/efetch && mv efetch_tmp c++/include/objtools/eutils/efetch rm -f c++/include/objects/dbsnp/primary_track/dbsnp*.h rm -rf c++/GCC* find c++/include/objtools -name "*_.hpp" -delete find c++/include/objtools/eutils -name "*Set.hpp" -delete find c++/src/objtools -name "*_.cpp" -delete find c++/src/objtools -name "*Result.cpp" -delete find . \( -name "*.dump" -o -name "*.files" -o -name "*_module.cpp" \) -delete