File: rules

package info (click to toggle)
traverso 0.49.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,320 kB
  • ctags: 5,828
  • sloc: cpp: 44,579; asm: 1,480; xml: 1,164; sh: 115; ansic: 33; makefile: 16
file content (21 lines) | stat: -rwxr-xr-x 613 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
#!/usr/bin/make -f

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

%:
	dh $@ --parallel --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
	-DCMAKE_SHARED_LINKER_FLAGS+="-Wl,--no-undefined -Wl,--as-needed" \
	-DCMAKE_MODULE_LINKER_FLAGS+="-Wl,--no-undefined -Wl,--as-needed" \
	-DCMAKE_EXE_LINKER_FLAGS+="-Wl,--no-undefined -Wl,--as-needed" \
	-DUSE_SYSTEM_SLV2_LIBRARY=ON \
	-DWANT_MP3_ENCODE=ON \
	$(cmake_extra_args)

override_dh_install:
	dh_install debian/*.desktop usr/share/applications/