~ubuntu-branches/ubuntu/precise/qgis/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-02-18 20:06:52 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110218200652-q8p18ino306ph7mp
Tags: 1.4.0+12730-5ubuntu1
* Merge from Debian unstable (LP: #707791), remaining changes:
  - Fix compilation issues with QT 4.7
  - Add build-depends on libqtwebkit-dev
  - Fix build failure with GCC 4.5
* Fix build failure with python-qt4 4.8
* Build-depend on python-sip-dev instead of *sip4* transitional packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# from having to guess our platform (since we know it already)
9
9
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10
10
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
11
DEB_HOST_ARCH       ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
11
12
 
12
13
QGIS_MAJOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MAJOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
13
14
QGIS_MINOR=$(shell sed -ne 's/SET(CPACK_PACKAGE_VERSION_MINOR "\([0-9]*\)")/\1/p' CMakeLists.txt)
50
51
        LDFLAGS += -pg
51
52
endif
52
53
 
 
54
ifneq (,$(findstring powerpc,$(DEB_HOST_ARCH)))
 
55
        CFLAGS += -fno-strict-aliasing
 
56
endif
 
57
 
53
58
define gentemplate
54
59
$(2): $(1)
55
60
        sed \