~linaro-maintainers/compiz/overlay

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Ricardo Salveti de Araujo
  • Date: 2012-01-31 04:05:15 UTC
  • Revision ID: ricardo.salveti@linaro.org-20120131040515-vwa52fjhatn78acy
Tags: 1:0.9.6+bzr20120117.2012.01-0linaro3
releasing version 1:0.9.6+bzr20120117.2012.01-0linaro3

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
# Uncomment this to turn on verbose mode.
5
5
#export DH_VERBOSE=1
6
 
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
7
 
gles2_architectures := armel armhf
8
6
 
9
7
CORE_ABIVERSION := $(shell sed -rn 's/^\#define[[:space:]]+CORE_ABIVERSION[[:space:]]+//p' include/core/core.h )
10
8
 
14
12
 
15
13
override_dh_auto_configure:
16
14
        # currently, segfault if CMAKE_BUILD_TYPE=Release
17
 
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
18
15
        dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_DEFAULT_PLUGINS=\"$(DEFAULT_PLUGINS)\" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPIZ_PACKAGING_ENABLED=TRUE -DUSE_GSETTINGS=OFF -DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=ON -DBUILD_GLES=ON
19
 
else
20
 
        dh_auto_configure -- -DCOMPIZ_BUILD_WITH_RPATH=FALSE -DCOMPIZ_DEFAULT_PLUGINS=\"$(DEFAULT_PLUGINS)\" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCOMPIZ_PACKAGING_ENABLED=TRUE -DUSE_GSETTINGS=OFF -DCOMPIZ_DISABLE_GS_SCHEMAS_INSTALL=ON
21
 
endif
22
16
 
23
17
override_dh_install:
24
18
        # Language packs
49
43
        # right place, sorry for the kittens
50
44
        cmake_dir=`cmake --system-information 2> /dev/null | grep "^CMAKE_ROOT " | sed -e 's/.*"\(.*\)"/\1/'` && \
51
45
        mkdir -p debian/tmp$${cmake_dir}/Modules &&  \
52
 
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
53
46
        cp cmake/FindCompiz.cmake debian/tmp$${cmake_dir}/Modules && cp cmake/FindOpenGLES2.cmake debian/tmp$${cmake_dir}/Modules
54
 
else
55
 
        cp cmake/FindCompiz.cmake debian/tmp$${cmake_dir}/Modules
56
 
endif
57
47
 
58
48
        dh_install --fail-missing
59
49