~ubuntu-branches/ubuntu/jaunty/soprano/jaunty

« back to all changes in this revision

Viewing changes to debian/cdbs/variables.mk

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2009-02-27 20:07:11 UTC
  • mfrom: (1.1.14 upstream) (12.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090227200711-xhshx5mctbk1jdfl
Tags: 2.2.2+dfsg.1-1ubuntu1
* Merge from Debian unstable - remaining Kubuntu changes:
  - Non library files split out into soprano-daemon
  - Drop libsoprano4.symbols.in until Karmic when we can get the symbols
    generation tools properly integrated into the Kubuntu toolset
  - Specify DEB_DH_MAKESHLIBS_ARGS_libsoprano4 in debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# KDE 4 global configuration file installation directory
2
 
DEB_CONFIG_INSTALL_DIR ?= /usr/share/kde4/config
3
 
 
4
 
# Standard Debian KDE 4 cmake flags
5
 
DEB_CMAKE_KDE4_FLAGS += \
6
 
        -DCMAKE_BUILD_TYPE=Debian \
7
 
        -DKDE4_ENABLE_FINAL=$(KDE4-ENABLE-FINAL) \
8
 
        -DKDE4_BUILD_TESTS=false \
9
 
        -DKDE_DISTRIBUTION_TEXT="Debian packages" \
10
 
        -DKDE_DEFAULT_HOME=.kde4 \
11
 
        -DCMAKE_SKIP_RPATH=true \
12
 
        -DKDE4_USE_ALWAYS_FULL_RPATH=false \
13
 
        -DCONFIG_INSTALL_DIR=$(DEB_CONFIG_INSTALL_DIR) \
14
 
        -DDATA_INSTALL_DIR=/usr/share/kde4/apps \
15
 
        -DHTML_INSTALL_DIR=/usr/share/doc/kde4/HTML \
16
 
        -DKCFG_INSTALL_DIR=/usr/share/kde4/config.kcfg \
17
 
        -DLIB_INSTALL_DIR=/usr/lib \
18
 
        -DSYSCONF_INSTALL_DIR=/etc \
19
 
        -DKDE4_USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR:BOOL=TRUE
20
 
 
21
 
# Support building with enable final (disabled by default)
22
 
DEB_KDE_ENABLE_FINAL ?=
23
 
KDE4-ENABLE-FINAL := false
24
 
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25
 
    treat_me_gently_arches := arm m68k alpha ppc64 armel armeb
26
 
    DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
27
 
    ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(treat_me_gently_arches)))
28
 
        KDE4-ENABLE-FINAL := $(if $(DEB_KDE_ENABLE_FINAL),true,false)
29
 
    endif
30
 
endif
31
 
 
32
 
#### Default additional (custom) cmake flags ####
33
 
DEB_CMAKE_CUSTOM_FLAGS ?=
34
 
 
35
 
# Set the one below to something else than 'yes' to disable linking 
36
 
# with --as-needed (on by default)
37
 
DEB_KDE_LINK_WITH_AS_NEEDED ?= yes
38
 
ifneq (,$(findstring yes, $(DEB_KDE_LINK_WITH_AS_NEEDED)))
39
 
    ifeq (,$(findstring no-as-needed, $(DEB_BUILD_OPTIONS)))
40
 
        DEB_KDE_LINK_WITH_AS_NEEDED := yes
41
 
        DEB_CMAKE_CUSTOM_FLAGS += \
42
 
            -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
43
 
            -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
44
 
            -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed"
45
 
    else
46
 
        DEB_KDE_LINK_WITH_AS_NEEDED := no
47
 
    endif
48
 
else
49
 
    DEB_KDE_LINK_WITH_AS_NEEDED := no
50
 
endif