File: rules

package info (click to toggle)
pidgin 2.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 56,364 kB
  • sloc: ansic: 269,948; sh: 4,558; makefile: 3,188; python: 1,256; perl: 533; cs: 209; tcl: 96; xml: 9
file content (80 lines) | stat: -rwxr-xr-x 2,920 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
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/buildflags.mk

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/utils.mk

# Build into a separate directory
DEB_BUILDDIR = $(DEB_SRCDIR)/build

LDFLAGS += -Wl,--as-needed
DEB_CONFIGURE_EXTRA_FLAGS = --disable-gevolution \
	    --enable-cap --with-system-ssl-certs=/etc/ssl/certs \
	    --enable-perl --with-zephyr=/usr --enable-dbus --enable-gnutls=no \
	    --enable-nss=yes --enable-cyrus-sasl --enable-vv \
	    --enable-tcl --enable-tk \
	    --with-python=/usr/bin/python3 \
	    --with-dynamic-prpls=bonjour,gg,irc,jabber,novell,oscar,sametime,simple,zephyr # disable silc
ifeq ($(DEB_BUILD_ARCH_OS),linux)
  DEB_CONFIGURE_EXTRA_FLAGS += --enable-nm
else
  DEB_CONFIGURE_EXTRA_FLAGS += --disable-nm
endif


DEB_INSTALL_DOCS_ALL := -XAUTHORS -XNEWS -XREADME

DEB_DH_MAKESHLIBS_ARGS_pidgin := -V -X/usr/lib/pidgin
DEB_DH_SHLIBDEPS_ARGS_pidgin := -X/usr/lib/pidgin/cap.so -- -dSuggests debian/pidgin/usr/lib/pidgin/cap.so -dDepends
DEB_PERL_INCLUDE_pidgin := -d /usr/lib/pidgin/perl

# finch package
DEB_DH_MAKESHLIBS_ARGS_finch := -V -X/usr/lib/finch
DEB_DH_SHLIBDEPS_ARGS_finch := -X/usr/lib/finch/gntclipboard.so -X/usr/lib/finch/gntgf.so -- -dSuggests debian/finch/usr/lib/finch/gntclipboard.so debian/finch/usr/lib/finch/gntgf.so -dDepends

# libpurple package
DEB_DH_MAKESHLIBS_ARGS_libpurple0 := -X/usr/lib/purple-2
DEB_DH_SHLIBDEPS_ARGS_libpurple0 := -X/usr/lib/purple-2/tcl.so -- -dSuggests debian/libpurple0/usr/lib/purple-2/tcl.so -dDepends
DEB_PERL_INCLUDE_libpurple0 := -d /usr/lib/purple-2/perl

# for pidgin-dev, extra documentation is installed manually below
DEB_INSTALL_MANPAGES_pidgin-dev := debian/dh_pidgin.1

clean::
	rm -f debian/copyright

common-configure-impl::
	# Fix build failure with full hardening flags:
	sed -i -e 's/-fPIE//g' -e 's/-pie//g' \
		build/libpurple/plugins/perl/common/Makefile.PL \
		build/pidgin/plugins/perl/common/Makefile.PL \

common-install-impl::
	rm -f debian/tmp/usr/lib/pidgin/relnot.so # release notification plugin
	rm -f debian/tmp/usr/bin/nullclient # examples
	rm -f debian/tmp/usr/bin/purple-client-example # examples
	find debian/tmp/usr/lib -name '*.la' -print0 | xargs -0 rm
	# Include author lists in copyright file
	sed -e '/@PIDGIN_COPYRIGHT@/r COPYRIGHT' \
		-e '/@PIDGIN_COPYRIGHT@/d' \
		-e '/@OSCAR_AUTHORS@/r libpurple/protocols/oscar/AUTHORS' \
		-e '/@OSCAR_AUTHORS@/d' \
	debian/copyright.in > debian/copyright

cleanbuilddir/pidgin::
	rm -rf $(DEB_SRCDIR)/build

build/pidgin-dev::
	pod2man debian/dh_pidgin > debian/dh_pidgin.1
	cd build; make docs

binary-install/pidgin-dev::
	dh_installdocs -ppidgin-dev debian/README.Debian.dev

cleanbuilddir/pidgin-dev::
	rm -f debian/dh_pidgin.1