File: rules

package info (click to toggle)
amarok 2.8.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 81,164 kB
  • ctags: 25,507
  • sloc: cpp: 211,252; ansic: 2,629; xml: 982; ruby: 62; python: 54; perl: 27; makefile: 19; sh: 9
file content (32 lines) | stat: -rwxr-xr-x 829 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

#DEB_KDE_LINK_WITH_AS_NEEDED := yes

# Add --no-relax when linking on Alpha in order to fix FTBFS (#684932)
ifeq (alpha,$(shell dpkg-architecture -qDEB_HOST_ARCH))
    export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-relax
endif

override_dh_auto_configure:
	dh_auto_configure -Skde -- -DCMAKE_USE_RELATIVE_PATHS=ON -DKDE4_BUILD_TESTS=false

override_dh_bugfiles:
	dh_bugfiles -A

override_dh_install:
	dh_install
	# Copy English errmsg.sys from mysql-server-core package
	if [ -d debian/amarok-common ]; then \
	    cp -a /usr/share/mysql/english/errmsg.sys debian/amarok-common/usr/share/kde4/apps/amarok/mysqle/; \
	fi

override_dh_makeshlibs:
	dh_makeshlibs "-Xusr/lib/kde4/*"

override_dh_builddeb:
	dh_builddeb -- -Zxz

%:
	dh $@ --with kde --parallel --dbg-package=amarok-dbg

.PHONY: override_dh_auto_test