File: rules

package info (click to toggle)
lmms 1.2.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 55,144 kB
  • sloc: cpp: 159,861; ansic: 98,570; python: 2,555; sh: 551; makefile: 27; xml: 18
file content (37 lines) | stat: -rwxr-xr-x 1,123 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

CMAKE_OPTS=-DCONTRIBUTORS=$(CURDIR)/doc/CONTRIBUTORS \
					 -DFORCE_VERSION=internal \
					 -DWANT_QT5=1 \
					 -DWANT_CARLA=0
ifneq ($(DEB_HOST_ARCH_OS),linux)
CMAKE_OPTS+=-DWANT_ALSA=0
endif

ifeq ($(DEB_HOST_ARCH),i386)
export PATH := $(PATH):/usr/lib/wine
WINE_PATH := /usr/lib/$(DEB_HOST_MULTIARCH)/wine
CMAKE_OPTS+= -DWINE_CXX_FLAGS=-Wl,--enable-new-dtags,-rpath=$(WINE_PATH)
else
CMAKE_OPTS+= -DWANT_VST_NOWINE=1 \
	-DREMOTE_VST_PLUGIN_FILEPATH=../../i386-linux-gnu/lmms/RemoteVstPlugin
endif

# Define NDEBUG. This helps with reproducible builds.
export DEB_CPPFLAGS_MAINT_APPEND=-DNDEBUG
# Add -Wno-error=format-truncation because truncation is expected in snprintf.
DEB_CXXFLAGS_MAINT_APPEND=-Wno-error=format-truncation
ifeq ($(DEB_HOST_ARCH),ppc64el)
# -Wno-maybe-uninitialized needed on Ubuntu ppc64el to avoid FTBFS (LP: 1816459)
DEB_CXXFLAGS_MAINT_APPEND+=-Wno-maybe-uninitialized
endif
export DEB_CXXFLAGS_MAINT_APPEND
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_OPTS)