1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_OPTIONS=-v
include /usr/share/dpkg/architecture.mk
ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
export DEB_CXXFLAGS_MAINT_APPEND = -g0
endif
# See #1066978
ifneq (,$(filter $(DEB_BUILD_ARCH),s390x))
export DEB_BUILD_OPTIONS += nocheck
endif
DOTTED:=`py3versions -d | sed 's/python//' `
NODOT:=`py3versions -d | sed 's/\.//' | sed 's/python//' `
%:
dh $@ --buildsystem=cmake
override_dh_auto_configure:
dh_auto_configure -- \
-DPY3VERSION_DOTTED=$(DOTTED) \
-DPY3VERSION_NODOT=$(NODOT) \
-Denable-mpi=ON \
-Denable-ltdl=ON \
-Denable-jpeg=ON \
-Denable-gsl=ON \
-Denable-hdf4=ON \
-Denable-hdf5=ON \
-Denable-pdf=ON \
-Denable-gif=ON \
-Denable-glut=ON \
-Denable-fltk=ON \
-Denable-wx=ON \
-Denable-qt5=ON \
-Denable-qt5asqt=ON \
-Denable-json-sample=ON \
-Denable-json-sample-we=ON \
-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
-DCMAKE_SKIP_RPATH=ON \
-Denable-python=ON
override_dh_python3:
dh_numpy3
ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel alpha))
override_dh_dwz:
@echo bypass dwz that causes build failures
endif
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
LOCAL=true debian/tests/run-tests
endif
execute_after_dh_installdeb-arch:
echo "from .mathgl import *" > debian/python3-mathgl/usr/lib/python3/dist-packages/mathgl/__init__.py
|