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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
NULL =
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/cdbs/1/class/cmake.mk
include /usr/share/cdbs/1/class/python-module.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
DEB_DH_INSTALL_ARGS += --fail-missing
DEB_DH_INSTALLCHANGELOGS_ARGS = NEWS
DEB_INSTALL_DOCS_ALL = README CREDITS BUGS
DEB_CMAKE_EXTRA_FLAGS := \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB="lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)" \
-DINCLUDE="include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)" \
-DUSE_VENDORDIRS=1 \
-DMULTI_SEMANTICS=1 \
-DDEBIAN=1 \
-DENABLE_PUBKEY=1 \
-DENABLE_SUSEREPO=1 \
-DENABLE_RPMMD=1 \
-DENABLE_RPMDB=1 \
-DENABLE_RPMDB_BYRPMHEADER=1 \
-DENABLE_HELIXREPO=1 \
-DENABLE_DEBIAN=1 \
-DENABLE_MDKREPO=1 \
-DENABLE_ARCHREPO=1 \
-DENABLE_CUDFREPO=1 \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DENABLE_LZMA_COMPRESSION=1 \
-DENABLE_BZIP2_COMPRESSION=1 \
-DENABLE_PERL=1 \
-DENABLE_PYTHON=1 \
-DENABLE_PYTHON3=1 \
-DCMAKE_SKIP_RPATH=FALSE \
-DCMAKE_SKIP_INSTALL_RPATH=TRUE \
-DENABLE_COMPLEX_DEPS=1 \
$(NULL)
DEB_MAKE_CHECK_TARGET := test
common-install-indep:: remove-cruft tweak-install
common-install-arch:: remove-cruft tweak-install
remove-cruft::
@echo "Nothing to decruft after installation."
tweak-install::
if [ -e debian/tmp/usr/bin/repo2solv.sh ]; then mv debian/tmp/usr/bin/repo2solv.sh debian/tmp/usr/bin/repo2solv; fi
get-orig-source:
uscan --noconf --force-download --rename --download-current-version --destdir=..
|