File: rules

package info (click to toggle)
kradio4 4.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 12,312 kB
  • sloc: cpp: 33,410; perl: 166; sh: 136; xml: 101; makefile: 19
file content (32 lines) | stat: -rwxr-xr-x 927 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
#!/usr/bin/make -f

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

DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifneq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_ARGS += -DWITH_ALSA=OFF
endif

%:
	dh $@ --with kde

override_dh_auto_configure:
	dh_auto_configure --buildsystem=kde -- $(CONFIGURE_ARGS)

override_dh_auto_install:
	dh_auto_install --buildsystem=kde --destdir=debian/kradio4
	install -D -p -m0644 debian/kradio4.xpm \
	    debian/kradio4/usr/share/pixmaps/kradio4.xpm
	# remove useless documentation shipped upstream
	rm -f \
	    $(CURDIR)/debian/kradio4/usr/share/doc/kradio4/COPYING \
	    $(CURDIR)/debian/kradio4/usr/share/doc/kradio4/INSTALL
	# remove changelog installed by upstream, dh_installchangelogs will do it
	rm -f $(CURDIR)/debian/kradio4/usr/share/doc/kradio4/ChangeLog

.PHONY: override_dh_auto_test

debian/kradio4.xpm: icons/hi32-app-kradio4.png
	convert $< $@