summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
authorOliver Grawert <ogra@ubuntu.com>2012-04-13 12:57:01 +0200
committerOliver Grawert <ogra@ubuntu.com>2012-04-13 12:57:01 +0200
commitcd4031eb92cd6f8ebeeaedafc5f091e8e8aab5cd (patch)
treee16a9e520dd3c176b3e17f198220e711cd3c6bdb /debian/rules
parenta5e8cd397e5d2753b4f69caa94d1d6e6b2d79e00 (diff)
switch packaging to 3.0 quilt format, enable subarch specific quilt support, add linaros disable_standalone-clients.patch to make GLES builds not fail on GL bits
(bzr r55.3.632)
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index ad4cc18ab..ef9649e13 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,25 @@ CFLAGS=$(shell echo $$CFLAGS | sed -e 's/\-Wall//')
CORE_ABIVERSION := $(shell sed -rn 's/^\#define[[:space:]]+CORE_ABIVERSION[[:space:]]+//p' /usr/include/compiz/core/abiversion.h )
NUX_ABIVERSION := $(shell sed -rn 's/^\#define[[:space:]]+NUX_ABIVERSION[[:space:]]+//p' /usr/include/Nux-2.0/Nux/ABI.h )
+override_dh_quilt_patch:
+ dh_quilt_patch
+ if test -r debian/patches/series.$(DEB_HOST_ARCH); then \
+ pc=".pc.$(DEB_HOST_ARCH)"; \
+ test -d "$(CURDIR)/$$pc" || mkdir "$(CURDIR)/$$pc"; \
+ cp debian/patches/series.$(DEB_HOST_ARCH) $(CURDIR)/$$pc/series; \
+ cd $(CURDIR); \
+ QUILT_PC="$$pc" quilt upgrade || true; \
+ QUILT_PC="$$pc" QUILT_PATCHES="debian/patches/" quilt push -a || true; \
+ fi; \
+
+override_dh_quilt_unpatch:
+ if test -r debian/patches/series.$(DEB_HOST_ARCH); then \
+ pc=".pc.$(DEB_HOST_ARCH)"; \
+ cd $(CURDIR); \
+ QUILT_PC="$$pc" QUILT_PATCHES="debian/patches/" quilt pop -a || true; \
+ fi; \
+ dh_quilt_unpatch
+
override_dh_auto_configure:
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_PACKAGING_ENABLED=TRUE -DCOMPIZ_PLUGIN_INSTALL_TYPE=package -DBUILD_GLES=TRUE -DDISABLE_MAINTAINER_CFLAGS=ON