File: rules

package info (click to toggle)
projectm 2.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 32,348 kB
  • ctags: 13,907
  • sloc: cpp: 31,087; ansic: 26,914; sh: 816; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 799 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
#!/usr/bin/make -f

# Use this variable to pass configure options for projectM to cmake
PROJECTM_CMAKE_FLAGS = \
		-DprojectM_FONT_TITLE="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf" \
		-DprojectM_FONT_MENU="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf" \
		-DINCLUDE-PROJECTM-TEST=OFF \
		-DINCLUDE-PROJECTM-JACK=ON

# Define install target dir
INSTALLDIR = $(CURDIR)/debian/tmp

# ProjectM source and build dir
SRCDIR = $(CURDIR)/src
BUILDDIR = $(SRCDIR)/build

%:
	dh $@ --list-missing --sourcedirectory=$(SRCDIR) --builddirectory=$(BUILDDIR)

override_dh_auto_clean:
	dh_auto_clean
	# Make sure builddir is gone
	rm -rf $(BUILDDIR)

override_dh_auto_configure:
	dh_auto_configure -- $(PROJECTM_CMAKE_FLAGS)

override_dh_auto_install:
	dh_auto_install --destdir=$(INSTALLDIR)