~gerboland/qtubuntu/fix_1351024

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Ricardo Salveti de Araujo
  • Date: 2014-05-08 23:35:34 UTC
  • Revision ID: ricardo.salveti@canonical.com-20140508233534-ea9jkkhll1xfq7tb
Tags: 0.54+14.10.20140430.1-0ubuntu2
releasing package qtubuntu version 0.54+14.10.20140430.1-0ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
TMP1_DIR = $(CURDIR)/debian/tmp1
9
9
TMP2_DIR = $(CURDIR)/debian/tmp2
10
10
 
 
11
# We only want to build qtubuntu-android on arches using Qt built with OpenGL ES2.0
 
12
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
13
gles2_architectures = armhf
 
14
 
11
15
%:
12
16
        dh $@
13
17
 
14
18
override_dh_clean:
 
19
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
15
20
        rm -rf $(TMP1_DIR)
 
21
endif
 
22
ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
16
23
        rm -rf $(TMP2_DIR)
 
24
endif
17
25
        dh_clean
18
26
 
19
27
override_dh_auto_configure:
 
28
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
20
29
        mkdir -p $(ANDROID_DIR) && dh_auto_configure -B$(ANDROID_DIR) -- "CONFIG+=mirserver" "CONFIG+=mirclient" "CONFIG+=hybris" $(CURDIR)
 
30
endif
 
31
ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
21
32
        mkdir -p $(DESKTOP_DIR) && dh_auto_configure -B$(DESKTOP_DIR) -- "CONFIG+=mirserver" "CONFIG+=mirclient" "QMAKE_CXXFLAGS=-DQTUBUNTU_USE_OPENGL" $(CURDIR)
 
33
endif
22
34
 
23
35
override_dh_auto_build:
 
36
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
24
37
        dh_auto_build -B$(ANDROID_DIR)
 
38
endif
 
39
ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
25
40
        dh_auto_build -B$(DESKTOP_DIR)
 
41
endif
26
42
 
27
43
override_dh_auto_install:
28
44
        rm -f debian/*/usr/lib/*/qt5/examples/qtubuntu/qmlscene-ubuntu
 
45
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
29
46
        mkdir -p $(TMP1_DIR) && cd $(ANDROID_DIR) && INSTALL_ROOT=$(TMP1_DIR) make install
30
47
        cd $(CURDIR)
 
48
endif
 
49
ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
31
50
        mkdir -p $(TMP2_DIR) && cd $(DESKTOP_DIR) && INSTALL_ROOT=$(TMP2_DIR) make install
32
51
        cd $(CURDIR)
 
52
endif
33
53
 
34
54
override_dh_install:
 
55
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
35
56
        dh_install --sourcedir=$(TMP1_DIR) -pqtubuntu-android
 
57
endif
 
58
ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
36
59
        dh_install --sourcedir=$(TMP2_DIR) -pqtubuntu-desktop
37
 
 
 
60
endif