File: rules

package info (click to toggle)
mpop 1.0.27-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,824 kB
  • sloc: ansic: 11,729; sh: 4,590; python: 121; makefile: 72; sed: 16
file content (47 lines) | stat: -rwxr-xr-x 1,210 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
#!/usr/bin/make -f

CONFIGURE_COMMON_OPTS := --with-libgsasl --with-libidn --with-ssl=gnutls

override_dh_auto_configure:
	cp -f /usr/share/misc/config.sub config.sub
	cp -f /usr/share/misc/config.guess config.guess

	# prepare first build: mpop
	mkdir -p build
	ln -s $(CURDIR)/debian build/debian
	ln -s $(CURDIR)/configure build/configure
	cd build && \
		dh_auto_configure -- \
			${CONFIGURE_COMMON_OPTS} --without-gnome-keyring

	# prepare second build: mpop with GNOME Keyring support
	mkdir -p build-gnome
	ln -s $(CURDIR)/debian build-gnome/debian
	ln -s $(CURDIR)/configure build-gnome/configure
	cd build-gnome && \
		dh_auto_configure -- \
			${CONFIGURE_COMMON_OPTS} --with-gnome-keyring

override_dh_auto_build:
	$(MAKE) -C build
	$(MAKE) -C build-gnome

override_dh_auto_install:
	$(MAKE) -C build install DESTDIR=$(CURDIR)/debian/tmp

override_dh_compress:
	dh_compress -X mpop-gnome-tool.py

override_dh_link:
	# hook to create a symlink between /usr/share/doc/mpop-gnome
	# and /usr/share/doc/mpop
	rm -rf $(CURDIR)/debian/mpop-gnome/usr/share/doc/mpop-gnome
	dh_link

override_dh_auto_clean:
	rm -f config.guess config.sub
	rm -rf build build-gnome
	dh_clean

%:
	dh $@ --with autotools_dev