| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export DH_VERBOSEscip-debian debian cdo 2.6.3-1 cdo/rules/DH_VERBOSE.=1 |
| 5 |
export FC_DEFAULTscip-debian debian cdo 2.6.3-1 cdo/rules/FC_DEFAULT.=gfortran |
| 6 |
export DH_NO_ORIG_LIBSscip-debian debian cdo 2.6.3-1 cdo/rules/DH_NO_ORIG_LIBS.=1 |
| 7 |
|
| 8 |
BUILDDIRscip-debian debian cdo 2.6.3-1 cdo/rules/BUILDDIR.:=debian/build |
| 9 |
|
| 10 |
|
| 11 |
%scip-debian debian cdo 2.6.3-1 cdo/rules/`%`().: |
| 12 |
dh $@ --builddirectory=$(BUILDDIRscip-debian debian cdo 2.6.3-1 cdo/rules/BUILDDIR.) --with fortran |
| 13 |
|
| 14 |
DESTDIRscip-debian debian cdo 2.6.3-1 cdo/rules/DESTDIR.=$(CURDIRscip-debian debian cdo 2.6.3-1 cdo/rules/CURDIR.)/debian/tmp/ |
| 15 |
DEB_HOST_MULTIARCHscip-debian debian cdo 2.6.3-1 cdo/rules/DEB_HOST_MULTIARCH. ?= $(shellscip-debian debian cdo 2.6.3-1 cdo/rules/shell. dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 16 |
LIBDIRscip-debian debian cdo 2.6.3-1 cdo/rules/LIBDIR.:=/usr/lib/$(DEB_HOST_MULTIARCHscip-debian debian cdo 2.6.3-1 cdo/rules/DEB_HOST_MULTIARCH.) |
| 17 |
|
| 18 |
|
| 19 |
DEB_BUILD_MAINT_OPTIONSscip-debian debian cdo 2.6.3-1 cdo/rules/DEB_BUILD_MAINT_OPTIONS.:= hardening=+all |
| 20 |
DEB_CFLAGS_MAINT_APPENDscip-debian debian cdo 2.6.3-1 cdo/rules/DEB_CFLAGS_MAINT_APPEND.:= -Wall -pedantic -fPIC |
| 21 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian cdo 2.6.3-1 cdo/rules/DEB_BUILD_MAINT_OPTIONS. |
| 22 |
export DEB_CFLAGS_MAINT_APPENDscip-debian debian cdo 2.6.3-1 cdo/rules/DEB_CFLAGS_MAINT_APPEND. DEB_CFLAGS_MAINT_APPEND |
| 23 |
|
| 24 |
|
| 25 |
CPPFLAGSscip-debian debian cdo 2.6.3-1 cdo/rules/CPPFLAGS. += -DgFortran |
| 26 |
|
| 27 |
CPPFLAGSscip-debian debian cdo 2.6.3-1 cdo/rules/CPPFLAGS. += -I/usr/include/cdTime |
| 28 |
|
| 29 |
ARCHscip-debian debian cdo 2.6.3-1 cdo/rules/ARCH.:=$(shellscip-debian debian cdo 2.6.3-1 cdo/rules/shell. dpkg --print-architecture) |
| 30 |
|
| 31 |
|
| 32 |
ifeq ($(ARCHscip-debian debian cdo 2.6.3-1 cdo/rules/ARCH.), amd64) |
| 33 |
export LDFLAGS= -Wl,-z,relro -Wl,-z,now |
| 34 |
endif |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
BUILD_FLAGSscip-debian debian cdo 2.6.3-1 cdo/rules/BUILD_FLAGS. = \ |
| 40 |
--prefix=/usr --libdir=$(LIBDIR) \ |
| 41 |
$(WITH_OPENMP) \ |
| 42 |
--with-hdf5=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial \ |
| 43 |
--with-zlib=/usr \ |
| 44 |
--with-netcdf=/usr \ |
| 45 |
--with-proj=/usr \ |
| 46 |
--with-fftw3 \ |
| 47 |
--with-curl=/usr \ |
| 48 |
--with-udunits2=/usr \ |
| 49 |
--with-szlib \ |
| 50 |
--with-libxml2=/usr \ |
| 51 |
--with-eccodes=/usr \ |
| 52 |
--with-magics=/usr \ |
| 53 |
--enable-iso-c-interface \ |
| 54 |
--with-cmor=/usr \ |
| 55 |
--enable-cdi-lib \ |
| 56 |
--enable-hirlam-extensions \ |
| 57 |
--disable-cgribex |
| 58 |
|
| 59 |
override_dh_auto_cleanscip-debian debian cdo 2.6.3-1 cdo/rules/override_dh_auto_clean().: |
| 60 |
dh_auto_cleanscip-debian debian debhelper . dh_auto_clean(). || echo "distclean ok" |
| 61 |
rm -rf $(BUILDDIRscip-debian debian cdo 2.6.3-1 cdo/rules/BUILDDIR.) |
| 62 |
if test -f libcdi/src/cfortran.h.orig ; then ( rm libcdi/src/cfortran.h; mv libcdi/src/cfortran.h.orig libcdi/src/cfortran.h); fi |
| 63 |
|
| 64 |
override_dh_auto_configurescip-debian debian cdo 2.6.3-1 cdo/rules/override_dh_auto_configure().: |
| 65 |
[ -f libcdi/src/cfortran.h.orig ]|| ( cp libcdi/src/cfortran.h libcdi/src/cfortran.h.orig) |
| 66 |
ln -sf /usr/include/cfortran.h libcdi/src/cfortran.h |
| 67 |
for f in $(FC_DEFAULTscip-debian debian cdo 2.6.3-1 cdo/rules/FC_DEFAULT.) ; do \ |
| 68 |
dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). --builddirectory=$(BUILDDIRscip-debian debian cdo 2.6.3-1 cdo/rules/BUILDDIR.) -- \ |
| 69 |
FC=$$f $(BUILD_FLAGSscip-debian debian cdo 2.6.3-1 cdo/rules/BUILD_FLAGS.) \ |
| 70 |
LIBS="-lgfortran -ljson-c -lm -ljpeg -lz -lcurl" LDFLAGS="$(LDFLAGSscip-debian debian cdo 2.6.3-1 cdo/rules/LDFLAGS.) -Wl,--as-needed" ; \ |
| 71 |
done |
| 72 |
|
| 73 |
override_dh_auto_buildscip-debian debian cdo 2.6.3-1 cdo/rules/override_dh_auto_build().: |
| 74 |
dh_auto_buildscip-debian debian debhelper . dh_auto_build(). --builddirectory=$(BUILDDIRscip-debian debian cdo 2.6.3-1 cdo/rules/BUILDDIR.) |
| 75 |
|
| 76 |
- (cd contrib && LC_ALL=C.UTF-8 ruby makecompl.rb ) |
| 77 |
|
| 78 |
override_dh_auto_installscip-debian debian cdo 2.6.3-1 cdo/rules/override_dh_auto_install().: |
| 79 |
dh_auto_installscip-debian debian debhelper . dh_auto_install(). |
| 80 |
for d in debian/tmp/$(LIBDIRscip-debian debian cdo 2.6.3-1 cdo/rules/LIBDIR.)/pkgconfig/cdi.pc $(BUILDDIRscip-debian debian cdo 2.6.3-1 cdo/rules/BUILDDIR.)/libcdi/src/pkgconfig/cdi_f2003.pc ; do \ |
| 81 |
sed -e 's%${CURDIRscip-debian debian cdo 2.6.3-1 cdo/rules/CURDIR.}%/build/cdo%g' < $$d > debian/tmp/x ; \ |
| 82 |
mv debian/tmp/x $$d ; \ |
| 83 |
done |
| 84 |
mkdir -p $(DESTDIRscip-debian debian cdo 2.6.3-1 cdo/rules/DESTDIR.)/usr/share/bash-completions/completions $(DESTDIRscip-debian debian cdo 2.6.3-1 cdo/rules/DESTDIR.)//usr/share/zsh/functions/Completion/Linux |
| 85 |
cp contrib/cdoCompletion.bash $(DESTDIRscip-debian debian cdo 2.6.3-1 cdo/rules/DESTDIR.)/usr/share/bash-completions/completions/cdo |
| 86 |
cp contrib/cdoCompletion.zsh $(DESTDIRscip-debian debian cdo 2.6.3-1 cdo/rules/DESTDIR.)//usr/share/zsh/functions/Completion/Linux/_cdo |
| 87 |
find $(DESTDIRscip-debian debian cdo 2.6.3-1 cdo/rules/DESTDIR.) -name '*.la' -delete -o -name '*.so' -delete -o -name '*.so.0' -delete |
| 88 |
|
| 89 |
|
| 90 |
override_dh_auto_testscip-debian debian cdo 2.6.3-1 cdo/rules/override_dh_auto_test().: |
| 91 |
|
| 92 |
ifeq (,$(filterscip-debian debian cdo 2.6.3-1 cdo/rules/filter. nocheck,$(DEB_BUILD_OPTIONSscip-debian debian cdo 2.6.3-1 cdo/rules/DEB_BUILD_OPTIONS.))) |
| 93 |
export PATH=$(PATH):$(CURDIR)/src make check |
| 94 |
endif |