/[pkg-kde]/trunk/packages/kdelibs/debian/rules
ViewVC logotype

Contents of /trunk/packages/kdelibs/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16881 - (show annotations) (download)
Fri Feb 12 00:29:24 2010 UTC (3 years, 3 months ago) by modax
File size: 2553 byte(s)
Finish split (tested), fixes there and there.

* TODO: Move kdelibs5 templates to another package that previously existed
  (kdelibs5-data?).
  - bind kdebase-runtime to libkdecore5 for now;
  - generate strict local library interdependencies by stealing
    debian/shlibs.local generation code from qt4-x11;
* Add control substs ${allLibraryPackages} and ${kde43LibraryPackages}
  for use in kdelibs5-{dev,dbg} and kdelibs5 metapackage despectively.
* Add ${perl:Depends} to Depends of kdelibs5-plugins, kdelibs5-data and
  kdoctools.
1 #!/usr/bin/make -f
2
3 BINARYVERSION ?= $(shell dpkg-parsechangelog | grep '^Version: ' | sed 's/^Version: //')
4 UPSTREAMVERSION ?= $(shell echo '$(BINARYVERSION)' | sed 's/^\(.*\)-.*/\1/')
5 BINARYVERSION := $(BINARYVERSION)
6 UPSTREAMVERSION := $(UPSTREAMVERSION)
7 #UPSTREAMVERSION ?= 4:4.2.0
8 #PLASMA_ABI=$(shell grep 'plasma-abi-' debian/libplasma3.symbols.in | head -n1 | sed 's/^.*\(plasma-abi-\S\+\).*/\1/')
9 RUNTIME_DEPS := kdebase-runtime (>= 4:4.4.0)
10
11 DEB_DBG_PACKAGE_ALL := kdelibs5-dbg
12
13 #bump version for every new upstream version!
14 DEB_DH_MAKESHLIBS_ARGS_libkdecore5 := -V'libkdecore5 (>= $(UPSTREAMVERSION)), $(RUNTIME_DEPS)'
15 DEB_DH_MAKESHLIBS_ARGS_ALL := -V
16 #DEB_DH_MAKESHLIBS_ARGS_libplasma3 := -V'libplasma3 (>= $(UPSTREAMVERSION)), $(PLASMA_ABI)'
17
18 # remove dependencies on kdebase-runtime and phonon (the metapackage)
19 DEB_DH_SHLIBDEPS_ARGS_ALL := -- -xkdebase-runtime -xphonon
20
21 include /usr/share/pkg-kde-tools/qt-kde-team/1/debian-qt-kde.mk
22
23 # Generate dpkg-gencontrol substs
24 DEB_LIBRARY_PACKAGES := $(filter-out %-dev,$(filter lib%,$(DEB_ARCH_PACKAGES)))
25 DEB_KDE43_LIBRARY_PACKAGES := libkde3support4 libkdecore5 libkdesu5 libkdeui5 libkdnssd4 \
26 libkfile4 libkhtml5 libkimproxy4 libkio5 libkjsapi4 libkjsembed4 libkmediaplayer4 \
27 libknewstuff2-4 libknotifyconfig4 libkntlm4 libkparts4 libkpty4 libkrosscore4 libkrossui4 \
28 libktexteditor4 libkutils4 libnepomuk4 libsolid4 libthreadweaver4
29 DEB_LIBRARY_PACKAGES_SUBST := $(foreach pkg,$(DEB_LIBRARY_PACKAGES),$(patsubst %,% (= $(BINARYVERSION)),,$(pkg)))
30 DEB_KDE43_LIBRARY_PACKAGES_SUBST := $(foreach pkg,$(DEB_KDE43_LIBRARY_PACKAGES),$(patsubst %,% (= $(BINARYVERSION)),,$(pkg)))
31
32 $(patsubst %,binary-predeb/%,kdelibs5-dev kdelibs5-dbg):: binary-predeb/%:
33 test -f debian/$(cdbs_curpkg).substvars || touch debian/$(cdbs_curpkg).substvars
34 echo 'allLibraryPackages=$(DEB_LIBRARY_PACKAGES_SUBST)' >> debian/$(cdbs_curpkg).substvars
35
36 $(patsubst %,binary-predeb/%,kdelibs5):: binary-predeb/%:
37 test -f debian/$(cdbs_curpkg).substvars || touch debian/$(cdbs_curpkg).substvars
38 echo 'kde43LibraryPackages=$(DEB_KDE43_LIBRARY_PACKAGES_SUBST)' >> debian/$(cdbs_curpkg).substvars
39
40 # Generate shlibs local files
41 $(patsubst %,binary-fixup/%,$(DEB_ARCH_PACKAGES)) :: binary-fixup/%: binary-strip/%
42 if test -e debian/$(cdbs_curpkg)/DEBIAN/shlibs ; then \
43 sed 's/>=[^)]*/= $(BINARYVERSION)/' debian/$(cdbs_curpkg)/DEBIAN/shlibs >> debian/shlibs.local ;\
44 fi
45
46 clean::
47 rm -f debian/shlibs.local
48
49 #binary-predeb/libplasma3::
50 # echo plasma:abi-provides=$(PLASMA_ABI) >> debian/libplasma3.substvars

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5