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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
ifeq ($(DEB_HOST_ARCH_CPU),i386)
export DEB_CXXFLAGS_MAINT_APPEND = -ffloat-store
endif
ifeq ($(DEB_HOST_ARCH_OS),hurd)
THREADS=OFF
else
THREADS=ON
endif
%:
dh $@ --buildsystem=cmake --with python3
override_dh_auto_configure:
dh_auto_configure -- -Wno-dev \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DUSE_THREADS=$(THREADS) -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) \
-DDATA_DIR=/var/lib/casacore/data \
-DUSE_FFTW3=ON \
-DUSE_HDF5=OFF \
-DBUILD_PYTHON=OFF -DBUILD_PYTHON3=ON \
-DBUILD_TESTING=True \
-DPYTHON3_EXECUTABLE=/usr/bin/${shell py3versions -d} \
-DPYTHON3_LIBRARY=/usr/lib/$(DEB_HOST_MULTIARCH)/lib${shell py3versions -d}.so \
-DPYTHON3_INCLUDE_DIR=/usr/include/${shell py3versions -d} \
-DPYTHON3_NUMPY_INCLUDE_DIRS=/usr/lib/$(DEB_HOST_MULTIARCH)/python3-numpy/numpy/_core/include
execute_after_dh_auto_build:
dh_numpy3 -p libcasa-python3-9
override_dh_auto_build-indep:
doxygen doxygen.cfg
rm -f doc/html/jquery.js
override_dh_auto_test-indep override_dh_auto_install-indep:
override_dh_auto_test-arch:
HOME=$(CURDIR) dh_auto_test --max-parallel=1 -a
|