Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Comment out this line for debugging
4 export DH_VERBOSE:=1
5
6 # The magic rule for debhelper
7 %:
8 dh $@
9
10 export HDF5_USE_SHLIB=yes
11 export CC=/usr/bin/h5cc
12
13 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
14 LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
15
16 # Enforce shared lib linking# Enforce shared lib linking# Enforce shared lib linking# Enforce shared lib linking
17 export HDF5_USE_SHLIB=yes
18
19 # Disable checks: known bad test case ignored this release
20 DEB_CONFIGURE_EXTRA_FLAGS := --enable-shared --with-pic --with-szlib=/usr/include,$(LIBDIR)
21
22 ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
23 DEB_CONFIGURE_EXTRA_FLAGS += --with-hdf5=/usr/include/hdf5/serial,/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
24 endif
25
26 export DEB_CFLAGS_MAINT_APPEND=-D_HDFEOS5_THREADSAFE -Df2cFortran
27 export DEB_LDFLAGS_MAINT_APPEND=-lpthread
28
29 override_dh_auto_configure:
30 dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)
31 # Needed for the pthreads tests
32 cp samples/simple.txt testdrivers/threads
33
34 override_dh_auto_test:
35 dh_auto_test || echo "Ignoring test failures"
36 find debian/ -name core -delete
37
38 execute_after_dh_fixperms:
39 rm -f debian/libhe5-hdfeos-dev/usr/share/doc/libhe5-hdfeos-dev/examples/*.o
40 chmod -x debian/libhe5-hdfeos-dev/usr/share/doc/libhe5-hdfeos-dev/examples/*
41 chrpath -d debian/libhe5-hdfeos0t64/${LIBDIR}/libhe5_hdfeos.so.0.0.0
42
43