~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to debian/cdbs/debian-qt-kde.mk

  • Committer: Bazaar Package Importer
  • Author(s): Ana Beatriz Guerrero Lopez
  • Date: 2009-04-05 05:22:13 UTC
  • mfrom: (0.4.2 experimental) (0.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 235.
  • Revision ID: james.westby@ubuntu.com-20090405052213-39thr4l6p2ss07uj
Tags: 4:4.2.2-1
* New upstream release:
  - khtml fixes. (Closes: #290285, #359680)
  - Default konsole sessions can be deleted. (Closes: #286342)
  - Tag widget uses standard application palette. (Closes: #444800)
  - ... and surely many more but we have lost track...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
ifndef _cdbs_bootstrap
2
 
_cdbs_scripts_path ?= /usr/lib/cdbs
3
 
_cdbs_rules_path ?= /usr/share/cdbs/1/rules
4
 
_cdbs_class_path ?= /usr/share/cdbs/1/class
5
 
endif
6
 
 
7
 
ifndef _cdbs_class_debian-qt-kde
8
 
_cdbs_class_debian-qt-kde := 1
9
 
 
10
 
# Note: This _must_ be included before autotools.mk, or it won't work.
11
 
common-configure-arch common-configure-indep:: debian/stamp-cvs-make
12
 
debian/stamp-cvs-make:
13
 
        if test -n "$(DEB_KDE_CVS_MAKE)" -a ! -f configure; then \
14
 
                $(MAKE) -C $(DEB_SRCDIR) -f admin/Makefile.common dist; \
15
 
        fi
16
 
        touch debian/stamp-cvs-make
17
 
 
18
 
include /usr/share/cdbs/1/class/kde.mk$(_cdbs_makefile_suffix)
19
 
include debian/cdbs/uploaders.mk
20
 
 
21
 
DEB_PATCHDIRS := debian/patches/common debian/patches
22
 
 
23
 
DEB_KDE_ENABLE_FINAL := yes
24
 
DEB_INSTALL_DOCS_ALL :=
25
 
 
26
 
DEB_DH_MAKESHLIBS_ARGS_ALL := -V
27
 
DEB_SHLIBDEPS_INCLUDE = $(foreach p,$(PACKAGES_WITH_LIBS),debian/$(p)/usr/lib)
28
 
 
29
 
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
30
 
    cdbs_treat_me_gently_arches := arm m68k alpha ppc64 armel armeb
31
 
    ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(cdbs_treat_me_gently_arches)))
32
 
        cdbs_kde_enable_final = $(if $(DEB_KDE_ENABLE_FINAL),--enable-final,)
33
 
    else
34
 
        cdbs_kde_enable_final =
35
 
    endif
36
 
endif
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
 
common-binary-indep::
51
 
        ( set -e; \
52
 
        tmpf=`mktemp debian/versions.XXXXXX`; \
53
 
        perl debian/cdbs/versions.pl >$$tmpf; \
54
 
        for p in $(DEB_INDEP_PACKAGES); do \
55
 
            cat $$tmpf >>debian/$$p.substvars; \
56
 
        done; \
57
 
        rm -f $$tmpf )
58
 
 
59
 
common-binary-arch::
60
 
        ( set -e; \
61
 
        tmpf=`mktemp debian/versions.XXXXXX`; \
62
 
        perl debian/cdbs/versions.pl >$$tmpf; \
63
 
        for p in $(DEB_ARCH_PACKAGES); do \
64
 
            cat $$tmpf >>debian/$$p.substvars; \
65
 
        done; \
66
 
        rm -f $$tmpf )
67
 
 
68
 
clean::
69
 
        rm -rf debian/man/out
70
 
        -rmdir debian/man
71
 
        rm -f debian/stamp-man-pages
72
 
        rm -rf debian/shlibs-check
73
 
 
74
 
$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
75
 
        if test -x /usr/bin/dh_desktop; then dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS); fi
76
 
        if test -e debian/$(cdbs_curpkg).lintian; then \
77
 
                install -p -D -m644 debian/$(cdbs_curpkg).lintian \
78
 
                        debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
79
 
        fi
80
 
        if test -e debian/$(cdbs_curpkg).presubj; then \
81
 
                install -p -D -m644 debian/$(cdbs_curpkg).presubj \
82
 
                        debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \
83
 
        fi
84
 
 
85
 
binary-install/$(DEB_SOURCE_PACKAGE)-doc-html::
86
 
        set -e; \
87
 
        for doc in `cd $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en; find . -name index.docbook`; do \
88
 
                pkg=$${doc%/index.docbook}; pkg=$${pkg#./}; \
89
 
                echo Building $$pkg HTML docs...; \
90
 
                mkdir -p $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
91
 
                cd $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
92
 
                meinproc $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en/$$pkg/index.docbook; \
93
 
        done
94
 
        for pkg in $(DOC_HTML_PRUNE) ; do \
95
 
          rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
96
 
        done
97
 
 
98
 
clean::
99
 
        if test -n "$(DEB_KDE_CVS_MAKE)" && test -d $(DEB_SRCDIR); then \
100
 
                cd $(DEB_SRCDIR); \
101
 
                find . -name Makefile.in -print | \
102
 
                        xargs --no-run-if-empty rm -f; \
103
 
                rm -f Makefile.am acinclude.m4 aclocal.m4 config.h.in \
104
 
                        configure configure.files configure.in stamp-h.in \
105
 
                        subdirs; \
106
 
        fi
107
 
        rm -f debian/stamp-cvs-make
108
 
 
109
 
endif