Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 DPKG_EXPORT_BUILDTOOLS = 1
4 include /usr/share/dpkg/buildtools.mk
5
6 # Enabling PIE globally doesn't work, but ./configure already enables PIE
7 # where necessary.
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
9 export PLUGIN_DIR=$(shell $(PKG_CONFIG) hdf5-serial --variable=PluginDir)
10
11 # as needed is the default now and is just needed for backports
12 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
13
14 %:
15 dh $@
16
17 override_dh_auto_configure:
18 dh_auto_configure -O--buildsystem=cmake -- \
19 -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
20 -DPLUGIN_INSTALL_PATH=$(PLUGIN_DIR)