~ubuntu-branches/ubuntu/karmic/kid3/karmic

« back to all changes in this revision

Viewing changes to deb-kde4/cdbs/kde.mk

  • Committer: Bazaar Package Importer
  • Author(s): Ana Beatriz Guerrero Lopez
  • Date: 2009-01-15 19:15:40 UTC
  • mfrom: (1.1.8 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090115191540-fj84m72w77vnxtrj
Tags: 1.1-1
* New usptream release:
  - Add support for .oga (Closes: #498352)
* Add call to dh_icons and dh_desktop. (Closes: #454526)
* Update do debhelper compat 6.
* Remove build depend on quilt.
* Update to Standards-Version: 3.8.0, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# until bug 377524 resolved.
2
 
include debian/cdbs/cmake.mk
 
1
include /usr/share/cdbs/1/class/cmake.mk
3
2
include /usr/share/cdbs/1/rules/debhelper.mk
4
3
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
5
 
# until bug #423394 resolved.
6
 
include debian/cdbs/utils.mk
 
4
include /usr/share/cdbs/1/rules/utils.mk
 
5
 
 
6
DEB_CONFIG_INSTALL_DIR ?= /usr/share/kde4/config
7
7
 
8
8
DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el
9
9
DEB_CMAKE_EXTRA_FLAGS += \
10
 
                        $(DEB_CMAKE_DEBUG_FLAGS) \
 
10
                        -DCMAKE_BUILD_TYPE=Debian \
11
11
                        $(KDE4-ENABLE-FINAL) \
12
 
                        -DKDE4_BUILD_TESTS=true \
 
12
                        -DKDE4_BUILD_TESTS=false \
13
13
                        -DKDE_DISTRIBUTION_TEXT="Kubuntu packages" \
14
 
                        -DCONFIG_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/etc/kde4 \
15
 
                        -DDATA_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/share/kde4/apps \
16
 
                        -DHTML_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/share/doc/kde4/HTML \
17
 
                        -DKCFG_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/share/kde4/config.kcfg \
18
 
                        -DLIB_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/lib \
19
 
                        -DSYSCONF_INSTALL_DIR=$(DEB_CMAKE_PREFIX)/etc
20
 
 
21
 
DEB_CMAKE_PREFIX = /usr/lib/kde4
22
 
DEB_DH_INSTALL_ARGS = --sourcedir=debian/tmp
23
 
DEB_DH_SHLIBDEPS_ARGS = -l/usr/lib/kde4/lib/
 
14
                        -DCMAKE_SKIP_RPATH=true \
 
15
                        -DKDE4_USE_ALWAYS_FULL_RPATH=false \
 
16
                        -DCONFIG_INSTALL_DIR=$(DEB_CONFIG_INSTALL_DIR) \
 
17
                        -DDATA_INSTALL_DIR=/usr/share/kde4/apps \
 
18
                        -DHTML_INSTALL_DIR=/usr/share/doc/kde4/HTML \
 
19
                        -DKCFG_INSTALL_DIR=/usr/share/kde4/config.kcfg \
 
20
                        -DLIB_INSTALL_DIR=/usr/lib \
 
21
                        -DSYSCONF_INSTALL_DIR=/etc
 
22
 
 
23
# Set the one below to something else than 'yes' to disable linking 
 
24
# with --as-needed (on by default)
 
25
DEB_KDE_LINK_WITH_AS_NEEDED ?= yes
 
26
ifneq (,$(findstring yes, $(DEB_KDE_LINK_WITH_AS_NEEDED)))
 
27
        ifeq (,$(findstring no-as-needed, $(DEB_BUILD_OPTIONS)))
 
28
                DEB_KDE_LINK_WITH_AS_NEEDED := yes
 
29
                DEB_CMAKE_EXTRA_FLAGS += \
 
30
                                        -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
 
31
                                        -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed" \
 
32
                                        -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--as-needed"
 
33
        else
 
34
                DEB_KDE_LINK_WITH_AS_NEEDED := no
 
35
        endif
 
36
else
 
37
        DEB_KDE_LINK_WITH_AS_NEEDED := no
 
38
endif
 
39
 
 
40
#DEB_CMAKE_PREFIX = /usr/lib/kde4
 
41
DEB_DH_INSTALL_SOURCEDIR = debian/tmp
 
42
#DEB_DH_SHLIBDEPS_ARGS = -l/usr/lib/kde4/lib/
24
43
DEB_KDE_ENABLE_FINAL ?=
25
44
#DEB_MAKE_ENVVARS += XDG_CONFIG_DIRS=/etc/xdg XDG_DATA_DIRS=/usr/share
26
45
#DEB_STRIP_EXCLUDE = so
34
53
    endif
35
54
endif
36
55
 
37
 
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
38
 
        #no optimizations, full debug
39
 
       DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=debugfull
40
 
else
41
 
        #This is around -O2 -g
42
 
       DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=relwithdebinfo
43
 
endif
44
 
 
45
56
common-build-arch:: debian/stamp-man-pages
46
57
debian/stamp-man-pages:
47
58
        if ! test -d debian/man/out; then mkdir -p debian/man/out; fi
57
68
clean::
58
69
ifndef THIS_SHOULD_GO_TO_UNSTABLE
59
70
        #guard against experimental uploads to unstable
60
 
        #dpkg-parsechangelog | grep ^Distribution | grep -q experimental
 
71
        #dpkg-parsechangelog | grep ^Distribution | grep -q 'experimental\|UNRELEASED'
61
72
endif
62
73
        rm -rf debian/man/out
63
74
        -rmdir debian/man
64
75
        rm -f debian/stamp-man-pages
65
76
        rm -f CMakeCache.txt
66
77
 
 
78
 
 
79
$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
 
80
        if test -x /usr/bin/dh_desktop; then dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS); fi
 
81
        if test -e debian/$(cdbs_curpkg).lintian; then \
 
82
                install -p -D -m644 debian/$(cdbs_curpkg).lintian \
 
83
                        debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
 
84
        fi
 
85
        if test -e debian/$(cdbs_curpkg).presubj; then \
 
86
                install -p -D -m644 debian/$(cdbs_curpkg).presubj \
 
87
                        debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \
 
88
        fi
 
89
 
67
90
binary-install/$(DEB_SOURCE_PACKAGE)-doc-html::
68
91
        set -e; \
69
92
        for doc in `cd $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en; find . -name index.docbook`; do \
77
100
                rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
78
101
        done
79
102
 
 
103
 
 
104
# Process "sameVersionDep:" substvars
 
105
DH_SAMEVERSIONDEPS=debian/cdbs/dh_sameversiondeps
 
106
common-binary-predeb-arch common-binary-predeb-indep::
 
107
        @if [ ! -x "$(DH_SAMEVERSIONDEPS)" ]; then chmod a+x "$(DH_SAMEVERSIONDEPS)"; fi
 
108
        $(DH_SAMEVERSIONDEPS)