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
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_PKG_VERSION = $(DEB_VERSION)
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export UPS_VERSION_UPSTREAM = $(firstword $(subst -, ,$(DEB_VERSION_UPSTREAM)))
export PYTHON=/usr/bin/python3
default:
@uscan --no-conf --dehs --report || true
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
--libexecdir=/usr/libexec/$(DEB_HOST_MULTIARCH) \
--htmldir=/usr/share/doc/singular/html \
--with-libparse \
--enable-streamio
override_dh_auto_build-indep:
dh_auto_build -i
$(MAKE) -C dox html
override_dh_auto_test-arch:
chmod a+x omalloc/getlucky-omtTest-X.sh
dh_auto_test -a
override_dh_auto_test-indep:
override_dh_auto_install-arch:
dh_auto_install -a
cp -vl -t $(CURDIR)/debian/tmp/usr/libexec/$(DEB_HOST_MULTIARCH)/singular \
$(CURDIR)/debian/tmp/usr/bin/libparse
DEB_AUTO_INSTALL_MAKEFLAGS = TOPSRCDIR=$(CURDIR) DESTDIR=$(CURDIR)/debian/tmp
override_dh_auto_install-indep:
dh_auto_install -i
$(MAKE) -C dox install-html $(DEB_AUTO_INSTALL_MAKEFLAGS)
## WARNING: documentation might not be clean
override_dh_compress-indep:
dh_compress -X.info -X.idx
override_dh_link-arch:
dh_link -p libsingular4-dev \
/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Singular.pc /usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/singular.pc
|