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 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_BUILD_HARDENING=1
PYVERS=$(shell pyversions -r)
%:
dh $@ --with autoreconf,python2
override_dh_auto_configure:
dh_auto_configure -- --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH)
override_dh_auto_build:
dh_auto_build
$(RM) -r python/build
set -e; \
for PYTHON in $(PYVERS); do \
(cd python && $$PYTHON setup.py build); \
done
set -e; \
for PYTHON in $(PYVERS); do \
(cd python && $$PYTHON-dbg setup.py build); \
done
# Ignore testsuite failure on big-endian archs
ifneq (,$(filter $(shell dpkg-architecture -qDEB_HOST_ARCH),mips powerpc powerpcspe ppc64 s390x sparc sparc64))
override_dh_auto_test:
-dh_auto_test
endif
override_dh_clean:
dh_clean
-rm -f python/sphinxbase.c
-rm src/libsphinxbase/lm/jsgf_parser.h src/libsphinxbase/lm/jsgf_parser.c
-rm -r python/build
override_dh_installdocs:
dh_installdocs
-ln -sf /usr/share/javascript/jquery/jquery.js debian/libsphinxbase-doc/usr/share/doc/libsphinxbase-doc/html/jquery.js
override_dh_auto_install:
dh_auto_install
for file in $$(find debian/tmp/usr/lib/ -name "*.la"); do \
rm $$file ; \
done
for PYTHON in $(PYVERS); do \
(cd python && $$PYTHON setup.py install --root=$(CURDIR)/debian/python-sphinxbase --install-layout=deb) ; \
done
set -e; \
for PYTHON in $(PYVERS); do \
(cd python && $$PYTHON-dbg setup.py install --root=$(CURDIR)/debian/python-sphinxbase-dbg --install-layout=deb) ; \
done
|