~bulldog98/kubuntu-packaging/marble

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Philip Muskovac
  • Date: 2011-06-30 17:29:56 UTC
  • Revision ID: yofel@gmx.net-20110630172956-was18hhbpj0upkfa
Add new split packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
include /usr/share/pkg-kde-tools/qt-kde-team/2/debian-qt-kde.mk
 
4
libpkgs_gen_strict_local_shlibs = $(libpkgs_all_packages)
 
5
include /usr/share/pkg-kde-tools/qt-kde-team/2/library-packages.mk
 
6
 
 
7
marble_soversion := $(shell dh_listpackages | sed -n '/^libmarblewidget/{s/^libmarblewidget//p}')
 
8
marble_plugin_path = /usr/lib/kde4/plugins/marble/$(marble_soversion)
 
9
 
 
10
ifeq ($(DEB_HOST_ARCH),armel)
 
11
conf_args += -DWITH_OpenGL=OFF
 
12
endif
 
13
 
 
14
override_dh_auto_configure:
 
15
        $(overridden_command) -- -DWITH_DESIGNER_PLUGIN=ON \
 
16
        -DMARBLE_PLUGIN_PATH=$(marble_plugin_path) \
 
17
        $(conf_args)
 
18
 
 
19
.PHONY: override_dh_auto_test
 
20
 
 
21
override_dh_installdirs:
 
22
        $(overridden_command) -plibmarblewidget$(marble_soversion) $(marble_plugin_path)
 
23
        $(overridden_command) --remaining-packages
 
24
 
 
25
override_dh_install:
 
26
        $(overridden_command) -Xusr/share/kde4/apps/marble/data/LICENSE.txt
 
27
 
 
28
override_dh_makeshlibs:
 
29
        $(overridden_command) -V -- -c0
 
30
 
 
31
override_dh_shlibdeps:
 
32
        $(overridden_command) $(patsubst %,-p%,$(filter lib%,$(shell dh_listpackages))) -- -xkde-runtime
 
33
        $(overridden_command) --remaining-packages
 
34
 
 
35
override_dh_strip:
 
36
        $(overridden_command) --dbg-package=marble-dbg