[med-svn] [relion] 01/36: Add check for Qlustar to rules

Roland Fehrenbacher rfehren-guest at moszumanska.debian.org
Mon Oct 13 20:41:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

rfehren-guest pushed a commit to branch master
in repository relion.

commit 5c3192772aa5177e0a6ad45bec45d4f7c1c9b606
Author: Roland Fehrenbacher <rf at q-leap.de>
Date:   Fri Oct 10 14:04:46 2014 +0000

    Add check for Qlustar to rules
---
 debian/rules | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/debian/rules b/debian/rules
index 8b13789..e5a891f 100644
--- a/debian/rules
+++ b/debian/rules
@@ -1 +1,41 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
 
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+DEBVENDOR  := $(shell dpkg-vendor --query Vendor)
+
+ifeq ($(DEBVENDOR), Qlustar)
+    # Qlustar specific stuff
+    include /usr/share/ql-deb-utils/Makefile
+    MPICXX := mpicxx.openmpi-gcc
+else
+    MPICXX := mpicxx.openmpi
+endif
+
+CONFIGURE_COMMON := ./configure --prefix=/usr -program-prefix="relion_" 
+
+%:
+	dh $@ --parallel
+
+configure_serial:
+	$(CONFIGURE_COMMON) --enable-gui \
+	  CPPFLAGS="$$(fltk-config --cxxflags)" \
+	  LDFLAGS="$$(fltk-config --ldflags)" 
+
+configure_mpi:
+	MPICXX=$(MPICXX) $(CONFIGURE_COMMON) --enable-mpi --disable-gui
+
+override_dh_configure:
+override_dh_build:
+
+# Override
+override_dh_install:
+
+describe-current-version:
+	git describe --tags upstream | sed 's,^release-,,;s,-,+,;s,-,~,;'
+
+get-orig-source:
+	uscan --download-current-version --force-download --rename --repack-compression xz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/relion.git



More information about the debian-med-commit mailing list