diff options
author | ceros7 <ceros7@svn> | 2010-08-11 17:53:44 +0000 |
---|---|---|
committer | ceros7 <ceros7@svn> | 2010-08-11 17:53:44 +0000 |
commit | 41ca7547d8b1a7ab4fa2e728a8ad0f44f197a779 (patch) | |
tree | 3a0d3c795078120cb717e58e3b67199e317510f8 /tools/Linux | |
parent | bdddd3f62ccf393d3940a8ecf6fe583701d47e63 (diff) |
Fixup packaging to support older Ubuntu releases.
Only use debhelper '--parallel' option when available.
Drop back to source format 1.0 for Ubuntu hardy.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32699 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux')
-rwxr-xr-x | tools/Linux/packaging/debian/rules | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/Linux/packaging/debian/rules b/tools/Linux/packaging/debian/rules index 1b6dfc0538..3925a5070a 100755 --- a/tools/Linux/packaging/debian/rules +++ b/tools/Linux/packaging/debian/rules @@ -61,8 +61,18 @@ XBMC_CONFIG_OPTIONS ?= --host=$(DEB_HOST_GNU_TYPE) \ # Input files used for generating other files INPUT_FILES = debian/control.in +# Use --parallel option only if debhelper supports it +DH_PARALLEL_OPT=$(shell dh_testdir --parallel 2>/dev/null && echo "--parallel") + +# Use source format 1.0 in Ubuntu hardy, otherwise use 3.0 (quilt). +ifeq (hardy,$(shell lsb_release -cs)) + SOURCE_FORMAT="1.0" +else + SOURCE_FORMAT="3.0 (quilt)" +endif + %: - dh $@ --parallel + dh $@ $(DH_PARALLEL_OPT) # Target for generating control files .PHONY: debian/var_info @@ -79,6 +89,7 @@ override_dh_clean: find . -name config.status -o -name config.cache -o -name config.log \ -exec rm -f "{}" \; debian/rules $(INPUT_FILES) + echo $(SOURCE_FORMAT) >debian/source/format override_dh_auto_configure: configure ./configure $(XBMC_CONFIG_OPTIONS) |