File: rules

package info (click to toggle)
civetweb 1.16%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,576 kB
  • sloc: ansic: 32,463; cpp: 1,374; sh: 480; javascript: 204; makefile: 119; php: 11; perl: 6; python: 3
file content (40 lines) | stat: -rwxr-xr-x 1,103 bytes parent folder | download
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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

export DEB_BUILD_MAINT_OPTIONS = \
	hardening=+all \
	reproducible=+all \
	future=+lfs \
	optimize=+lto

# "CIVETWEB_SOVERSION" must match the suffix of the Debian package
# (i.e. "libcivetweb1" => "1")
CMAKE_EXTRA_FLAGS += \
        -DCMAKE_BUILD_TYPE=None \
        -DCIVETWEB_BUILD_TESTING=OFF \
        -DCIVETWEB_SOVERSION=1 \
	-DCIVETWEB_ENABLE_CXX=ON \
        -DBUILD_SHARED_LIBS=ON \
        -DCIVETWEB_ENABLE_WEBSOCKETS=ON

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cp -a /usr/share/javascript/jquery/jquery.min.js test/ajax/jquery.js
	dh_auto_test
endif

CIVETWEB_DEV_DIR = $(CURDIR)/debian/libcivetweb-dev
execute_after_dh_install:
	# Fix pkg-config-multi-arch-wrong-dir: pkgconfig files contain
	# architecture specific information, so must be installed in an
	# architecture specific location.
	mv -v $(CIVETWEB_DEV_DIR)/usr/share/pkgconfig \
		$(CIVETWEB_DEV_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/