Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 PRIVATE_LIBDIR := /usr/lib/digikam
4 export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
5
6 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
7
8 # Augment path to find gphoto2-config; workaround for #826166
9 export PATH := $(PATH):/usr/lib/$(DEB_HOST_MULTIARCH)/libgphoto2-dev/bin
10
11
12 %:
13 dh $@ --with kf6
14
15 override_dh_auto_configure:
16 dh_auto_configure --buildsystem=kf6 -- \
17 -DBUILD_WITH_QT6=on \
18 -DCMAKE_INSTALL_RPATH="$(PRIVATE_LIBDIR)" \
19 -DBUILD_TESTING=OFF \
20 -DDIGIKAMSC_COMPILE_DOC=on \
21 -DDIGIKAMSC_COMPILE_PO=on \
22 -DENABLE_MYSQLSUPPORT=ON \
23 -DENABLE_INTERNALMYSQL=ON \
24 -DENABLE_KFILEMETADATASUPPORT=ON \
25 -DENABLE_AKONADICONTACTSUPPORT=ON \
26 -DENABLE_MEDIAPLAYER=ON \
27 -DENABLE_APPSTYLES=ON
28
29 # help2man -n 'digital photo management application' --no-info obj-*/core/app/digikam > debian/man/digikam.1
30 # help2man -n 'image viewer/editor' --no-info obj-*/core/showfoto/showfoto > debian/man/showfoto.1
31
32 override_dh_auto_install:
33 dh_auto_install
34 # remove development stuff: headers, cmake config files, pkg-config files, .so symlinks, static libs
35 rm -rf --verbose debian/tmp/usr/include
36 rm -rf --verbose debian/tmp/usr/share/kde4/apps/cmake
37 rm -rf --verbose debian/tmp/usr/lib/cmake
38 rm -rf --verbose debian/tmp/usr/lib/*/cmake
39 rm -rf --verbose debian/tmp/usr/lib/pkgconfig
40 find debian/tmp/usr/lib -type l -name '*.so' -exec rm --verbose {} \;
41 # remove potentially conflicting oxygen icons in global icon theme
42 rm -rf --verbose debian/tmp/usr/share/icons/oxygen
43 # remove haar cascades, the versions in opencv-data will be used instead
44 rm -rf --verbose debian/tmp/usr/share/kde4/apps/libkface/haarcascades
45 # remove icons for non-installed test program
46 rm -f --verbose debian/tmp/usr/share/icons/hicolor/*/apps/avplayer.*
47
48 override_dh_installchangelogs:
49 dh_installchangelogs -pdigikam ChangeLog
50 dh_installchangelogs --remaining-packages
51
52 override_dh_install:
53 dh_install
54 dh_missing --fail-missing
55
56 override_dh_shlibdeps:
57 dh_shlibdeps -l$(CURDIR)/debian/digikam-private-libs/$(PRIVATE_LIBDIR)
58
59 # auto tests require user interaction - override
60 override_dh_auto_test: