~ubuntu-branches/ubuntu/wily/qca2/wily-proposed

« back to all changes in this revision

Viewing changes to debian/cdbs/kde.mk

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-07-27 13:00:07 UTC
  • Revision ID: james.westby@ubuntu.com-20070727130007-anb6kx0f07oc1jkc
Tags: 2.0~beta2+svn20070709-0ubuntu2
Update debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
export XDG_DATA_DIRS=/usr/share
 
2
export XDG_CONFIG_DIRS=/etc/xdg
 
3
 
 
4
 
 
5
include debian/cdbs/cmake.mk
 
6
include /usr/share/cdbs/1/rules/debhelper.mk
 
7
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
8
include debian/cdbs/utils.mk
 
9
 
 
10
DEB_DH_INSTALL_ARGS = --sourcedir=debian/tmp
 
11
DEB_COMPRESS_EXCLUDE = .dcl .docbook -license .tag .sty .el
 
12
DEB_KDE_ENABLE_FINAL ?= 
 
13
 
 
14
DEB_CMAKE_EXTRA_FLAGS += -DKDE4_BUILD_TESTS=true -DKDE_DISTRIBUTION_TEXT="Debian packages"
 
15
 
 
16
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
17
    cdbs_treat_me_gently_arches := arm m68k alpha ppc64 armel armeb
 
18
    ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(cdbs_treat_me_gently_arches)))
 
19
        KDE4-ENABLE-FINAL = $(if $(DEB_KDE_ENABLE_FINAL),-DKDE4_ENABLE_FINAL=true,)
 
20
    else
 
21
        KDE4-ENABLE-FINAL =
 
22
    endif
 
23
endif
 
24
 
 
25
 
 
26
 
 
27
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
28
        #no optimizations, full debug
 
29
       DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=debugfull
 
30
else
 
31
        #This is around -O2 -g
 
32
       DEB_CMAKE_DEBUG_FLAGS = -DCMAKE_BUILD_TYPE=relwithdebinfo
 
33
endif
 
34
 
 
35
 
 
36
 
 
37
 
 
38
common-build-arch:: debian/stamp-man-pages
 
39
debian/stamp-man-pages:
 
40
        if ! test -d debian/man/out; then mkdir -p debian/man/out; fi
 
41
        for f in $$(find debian/man -name '*.sgml'); do \
 
42
                docbook-to-man $$f > debian/man/out/`basename $$f .sgml`.1; \
 
43
        done
 
44
        for f in $$(find debian/man -name '*.man'); do \
 
45
                soelim -I debian/man $$f \
 
46
                > debian/man/out/`basename $$f .man`.`head -n1 $$f | awk '{print $$NF}'`; \
 
47
        done
 
48
        touch debian/stamp-man-pages
 
49
 
 
50
clean::
 
51
        rm -rf debian/man/out
 
52
        -rmdir debian/man
 
53
        rm -f debian/stamp-man-pages
 
54
 
 
55
binary-install/$(DEB_SOURCE_PACKAGE)-doc-html::
 
56
        set -e; \
 
57
        for doc in `cd $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en; find . -name index.docbook`; do \
 
58
                pkg=$${doc%/index.docbook}; pkg=$${pkg#./}; \
 
59
                echo Building $$pkg HTML docs...; \
 
60
                mkdir -p $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
 
61
                cd $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
 
62
                meinproc $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en/$$pkg/index.docbook; \
 
63
        done
 
64
        for pkg in $(DOC_HTML_PRUNE) ; do \
 
65
                rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
 
66
        done