File: rules

package info (click to toggle)
amarok 1.2.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,052 kB
  • ctags: 29
  • sloc: makefile: 39
file content (61 lines) | stat: -rwxr-xr-x 1,934 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
#!/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/simple-patchsys.mk

### VARIABLES
DEB_KDE_CVS_MAKE := yes

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

DEB_CONFIGURE_EXTRA_FLAGS  := --without-included-sqlite \
			      --enable-mysql

# 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.6/*; do \
	    if test -f $$f && ! test -L $$f && \
		test $(DEB_SRCDIR)/admin/`basename $$f`; then \
		cp -f $$f $(DEB_SRCDIR)/admin; \
	    fi; \
	done
	touch $@

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

### COMMON STUFF
common-binary-arch::
	# Use debian/substvars
	for p in $(DEB_ALL_PACKAGES); do \
	  cat debian/substvars >>debian/$$p.substvars; \
	done

### 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

	if test -r debian/install-bug-notice.sh; then \
	    sh debian/install-bug-notice.sh $(DEB_ALL_PACKAGES); \
	fi

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