Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 TEST_ARGS = --verbose
6 ifeq (i386,$(DEB_HOST_ARCH))
7 TEST_ARGS += ARGS\+="--exclude-regex 'test-main\.sh|test_endpointer|test_vad'"
8 endif
9
10 %:
11 dh $@
12
13 override_dh_auto_configure:
14 dh_auto_configure -- -DBUILD_GSTREAMER=ON -DBUILD_SHARED_LIBS=ON
15
16 override_dh_auto_test:
17 cd obj-$(DEB_HOST_GNU_TYPE) && $(MAKE) check
18 dh_auto_test --buildsystem=cmake -- ARGS\+=$(TEST_ARGS)
19
20 override_dh_auto_install:
21 dh_auto_install
22 mkdir -p debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/pocketsphinx
23 mv debian/tmp/usr/include/pocketsphinx/sphinx_config.h debian/tmp/usr/include/$(DEB_HOST_MULTIARCH)/pocketsphinx/
24 for file in $$(find debian/tmp/usr/lib/ -name "*.la" -o -name _pocketsphinx.a); do \
25 rm $$file ; \
26 done
27
28 override_dh_shlibdeps:
29 dh_shlibdeps
30 LD_LIBRARY_PATH=debian/libpocketsphinx5/usr/lib/$(DEB_HOST_MULTIARCH):$(LD_LIBRARY_PATH) \
31 dh_gstscancodecs