File: rules

package info (click to toggle)
psi-plus 1.4.1456-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,188 kB
  • sloc: cpp: 211,254; ansic: 19,786; javascript: 13,687; xml: 4,056; sh: 1,610; makefile: 436; objc: 407; python: 277; ruby: 171
file content (70 lines) | stat: -rwxr-xr-x 2,008 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

BUILDDIR1 = $(CURDIR)/debian/builddir1
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64 armhf i386 mips64el))
BUILDDIR2 = $(CURDIR)/debian/builddir2
endif
DESTDIR   = $(CURDIR)/debian/tmp

CMAKEOPTS = -DBUNDLED_IRIS=ON \
            -DDEV_MODE=OFF \
            -DONLY_BINARY=OFF \
            -DONLY_PLUGINS=OFF \
            -DINSTALL_EXTRA_FILES=ON \
            -DINSTALL_PLUGINS_SDK=ON \
            -DPRODUCTION=OFF \
            -DUSE_ASPELL=OFF \
            -DUSE_CCACHE=ON \
            -DUSE_DBUS=ON \
            -DUSE_ENCHANT=OFF \
            -DUSE_HUNSPELL=ON \
            -DUSE_KEYCHAIN=ON \
            -DUSE_XSS=ON \
            -DVERBOSE_PROGRAM_NAME=ON

OPTSSTEP1 = -DCHAT_TYPE=BASIC \
            -DENABLE_PLUGINS=ON \
            -DBUILD_DEV_PLUGINS=ON \
            -DBUILD_PSIMEDIA=ON

OPTSSTEP2 = -DCHAT_TYPE=WEBENGINE \
            -DENABLE_PLUGINS=OFF \
            -DBUILD_PSIMEDIA=OFF

%:
	dh $@ --buildsystem=cmake

override_dh_dwz:
	dh_dwz || true

override_dh_auto_configure:
	dh_auto_configure -B$(BUILDDIR1) -- $(CMAKEOPTS) $(OPTSSTEP1)
ifdef BUILDDIR2
	dh_auto_configure -B$(BUILDDIR2) -- $(CMAKEOPTS) $(OPTSSTEP2)
endif

override_dh_auto_build:
	dh_auto_build -B$(BUILDDIR1)
ifdef BUILDDIR2
	dh_auto_build -B$(BUILDDIR2)
endif

override_dh_auto_test:
	dh_auto_test -B$(BUILDDIR1)
ifdef BUILDDIR2
	dh_auto_test -B$(BUILDDIR2)
endif

override_dh_auto_install:
	dh_auto_install -B$(BUILDDIR1) --destdir=$(DESTDIR)
ifdef BUILDDIR2
	ln -s psi-plus.png $(DESTDIR)/usr/share/pixmaps/psi-plus-webengine.png
	cp -a $(BUILDDIR2)/psi/psi-plus-webengine $(DESTDIR)/usr/bin/
	cp -a $(BUILDDIR2)/psi-plus-webengine.desktop $(DESTDIR)/usr/share/applications/
endif
	# Move psimedia plugin to separate package:
	mkdir -p $(CURDIR)/debian/psi-plus-plugin-psimedia/usr/lib/psi-plus/plugins/
	mv $(DESTDIR)/usr/lib/psi-plus/plugins/libmediaplugin.so \
	   $(CURDIR)/debian/psi-plus-plugin-psimedia/usr/lib/psi-plus/plugins/