File: rules

package info (click to toggle)
licq 0.76-2.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,648 kB
  • ctags: 3,872
  • sloc: cpp: 28,405; sh: 9,804; ansic: 4,287; perl: 1,597; makefile: 316
file content (90 lines) | stat: -rwxr-xr-x 2,540 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
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/make -f
# Made with the aid of dh_make, by Craig Small

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

install_file=install -p -o root -g root -m 644
install_program=install -p -o root -g root -m 755
make_directory=install -d -o root -g root -m 755

QTGUI=qt-gui-0.71

build: build-stamp
build-stamp: build-licq build-qtgui
	dh_testdir
	touch build-stamp

configure-licq:
	dh_testdir
	CXX=g++ ./configure --prefix=/usr
	touch configure-licq

build-licq: configure-licq
	dh_testdir
	make -j 3 CFLAGS="-O3 -g -Wall"
	touch build-licq

configure-qtgui:
	dh_testdir
	cd plugins/$(QTGUI) && automake po/Makefile
	cd plugins/$(QTGUI) && CXX=g++ ./configure --enable-spoofing --prefix=/usr \
		--with-qt-includes=/usr/lib/qt2/include --with-qt-libraries=/usr/lib/qt2/lib

# Patch the generated libtool to avoid passing -rpath when linking,
# and to explicitly link libraries against the libraries they
# depend on.
	cd plugins/$(QTGUI) && sed < libtool > libtool-2 \
		-e 's/^hardcode_libdir_flag_spec.*$$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' \
		-e '/^archive_cmds="/s/"$$/ \\$$deplibs"/'
	cd plugins/$(QTGUI) && mv libtool-2 libtool
	cd plugins/$(QTGUI) && chmod 755 libtool
	touch configure-qtgui

build-qtgui: configure-qtgui
	dh_testdir
	cd plugins/$(QTGUI) && make -j 3 CFLAGS="-O3 -g -Wall"
	touch build-qtgui

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp build-licq build-qtgui configure-licq configure-qtgui

	-$(MAKE) distclean
	-cd plugins/$(QTGUI) ; $(MAKE) distclean
	dh_clean

binary-indep: build

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(MAKE) install prefix=`pwd`/debian/tmp/usr
	cd plugins/$(QTGUI) ; $(MAKE) install prefix=`pwd`/../../debian/licq-plugin-qt2/usr
	cp debian/override.Lintian debian/licq-plugin-qt2/usr/share/doc/licq-plugin-qt2/

	dh_installdocs
	dh_installmenu
	dh_installmanpages --package=licq
	dh_installchangelogs
	ln -s CHANGELOG.gz debian/tmp/usr/share/doc/licq/changelog.gz
	ln -s CHANGELOG.gz debian/licq-plugin-qt2/usr/share/doc/licq-plugin-qt2/changelog.gz
	dh_strip
	dh_compress usr/share/doc/licq/BUGS usr/share/doc/licq/CREDITS usr/share/doc/licq/HINTS usr/share/doc/licq/TODO
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_md5sums
	dh_builddeb

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary