File: rules

package info (click to toggle)
amarok 1.4.4-4etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 17,476 kB
  • ctags: 30
  • sloc: makefile: 38
file content (66 lines) | stat: -rwxr-xr-x 1,996 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

DEB_TAR_SRCDIR := $(shell basename $(wildcard *.tar.bz2) .tar.bz2)

### CDBS INCLUDES
include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include debian/cdbs/kde.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

### VARIABLES
DEB_KDE_CVS_MAKE := yes

DEB_DH_MAKESHLIBS_ARGS_ALL := -n
DEB_INSTALL_DIRS_amarok    := usr/lib/amarok
DEB_DH_SHLIBDEPS_ARGS_amarok    := -Xusr/bin/amarok_xmmswrapper2 \
			      -Xusr/lib/kde3/konqsidebar_universalamarok.so

#to avoid circular dep of amarok-xine on amarok
DEB_DH_SHLIBDEPS_ARGS_amarok-xine := \
	-Xusr/lib/libamarok.so \
	-- -dRecommends \
	debian/amarok/usr/lib/libamarok.so \
	-dDepends

DEB_CONFIGURE_EXTRA_FLAGS  :=	--without-included-sqlite \
				--disable-final \
				--without-akode \
				--without-gstreamer10 \
				--with-ifp \
				--with-libgpod \
				--with-libnjb  \
				--enable-mysql \
				--enable-postgresql

# See debian/TODO
DEB_INSTALL_DOCS_ALL = $(filter-out $(DEB_INSTALL_CHANGELOGS_ALL),$(shell for f in README NEWS TODO BUGS AUTHORS THANKS; do if test -s $(DEB_SRCDIR)/$$f; then echo $(DEB_SRCDIR)/$$f; fi; done))

###

### Libtool and Automake updates
post-patches:: debian/stamp-autothings-update
debian/stamp-autothings-update:
	cp -f /usr/share/libtool/libtool.m4 $(DEB_SRCDIR)/admin/libtool.m4.in
	cp -f /usr/share/libtool/ltmain.sh  $(DEB_SRCDIR)/admin/ltmain.sh
	for f in /usr/share/automake-1.9/*; do \
	    if  test -f $$f && \
		test -f $(DEB_SRCDIR)/admin/`basename $$f`; then \
		cp -f $$f $(DEB_SRCDIR)/admin; \
	    fi; \
	done
	touch $@

clean::
	rm -f debian/stamp-autothings-update

### POST-INSTALL HACKING
# Make directories in /usr/share/doc be symlinks for packages other than amarok
#common-binary-post-install-arch::
#	for p in $(filter-out amarok,$(DEB_ALL_PACKAGES)); do \
#	  rm -rf debian/$$p/usr/share/doc/$$p; \
#	  ln -sf amarok debian/$$p/usr/share/doc/$$p; \
#	done

	# Check for not installed files
#	dh_install --no-act --list-missing