File: rules

package info (click to toggle)
openjph 0.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,816 kB
  • sloc: cpp: 34,908; ansic: 339; sh: 179; javascript: 22; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 1,117 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

include /usr/share/dpkg/default.mk

export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto

%:
	dh $@

ifeq ($(DEB_BUILD_ARCH),$(filter $(DEB_BUILD_ARCH),amd64 x32))
  CMAKE_EXTRA_FLAGS += -DOJPH_DISABLE_SIMD:BOOL=OFF
else
  CMAKE_EXTRA_FLAGS += -DOJPH_DISABLE_SIMD:BOOL=ON
endif

CMAKE_EXTRA_FLAGS += \
	-DBUILD_SHARED_LIBS:BOOL=ON \

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)

execute_after_dh_auto_build:
	cd docs && doxygen

execute_before_dh_installman:
	LD_PRELOAD= LD_LIBRARY_PATH=./debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) help2man --version-string=$(DEB_VERSION_UPSTREAM) --help-option=" " --include=debian/ojph_compress.1.in --output=debian/ojph_compress.1  --no-info --no-discard-stderr ./debian/tmp/usr/bin/ojph_compress
	LD_PRELOAD= LD_LIBRARY_PATH=./debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) help2man --version-string=$(DEB_VERSION_UPSTREAM) --help-option=" " --include=debian/ojph_expand.1.in --output=debian/ojph_expand.1  --no-info --no-discard-stderr ./debian/tmp/usr/bin/ojph_expand