| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
DEB_CMAKE_EXTRA_FLAGS := -DBUILD_STATIC_LIB=ON -DLIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH) -DUNIT_TESTING=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) -DWITH_GSSAPI=ON -DWITH_FIDO2=ON |
| 4 |
|
| 5 |
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 |
| 6 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
override_dh_clean: |
| 12 |
rm -rf debian/home-openssl |
| 13 |
dh_clean |
| 14 |
|
| 15 |
override_dh_auto_clean: |
| 16 |
dh_auto_clean -Bbuild-openssl |
| 17 |
|
| 18 |
override_dh_auto_configure: |
| 19 |
dh_auto_configure -Bbuild-openssl -- \ |
| 20 |
$(DEB_CMAKE_EXTRA_FLAGS) \ |
| 21 |
-DDOXYGEN_AWESOME_CSS_DIR=/usr/share/doxygen-awesome-css |
| 22 |
|
| 23 |
override_dh_auto_build: |
| 24 |
dh_auto_build -Bbuild-openssl |
| 25 |
# only build documentation if doxygen is installed and the nodoc profile is not set |
| 26 |
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) |
| 27 |
ifneq ($(shell which doxygen),) |
| 28 |
$(MAKE) -Cbuild-openssl docs |
| 29 |
endif |
| 30 |
endif |
| 31 |
|
| 32 |
override_dh_auto_install: |
| 33 |
dh_auto_install -Bbuild-openssl |
| 34 |
|
| 35 |
override_dh_auto_test: |
| 36 |
mkdir debian/home-openssl |
| 37 |
HOME=debian/home-openssl dh_auto_test -Bbuild-openssl --no-parallel |