File: rules

package info (click to toggle)
spectrum2 2.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,548 kB
  • sloc: cpp: 32,594; python: 1,751; javascript: 273; makefile: 34; sql: 31; xml: 10
file content (49 lines) | stat: -rwxr-xr-x 1,484 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
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

ifeq (,$(filter terse,${DEB_BUILD_OPTIONS}))
export DH_VERBOSE=1
export V=1
export VERBOSE=1
endif

LC_ALL:=C.UTF-8
export LC_ALL

OUR_CPPFLAGS:=
OUR_CFLAGS:=
OUR_CXXFLAGS:=
OUR_LDFLAGS:=

# added by CMakeLists.txt for (CMAKE_BUILD_TYPE MATCHES Debug)
OUR_CPPFLAGS+=	-DDEBUG

dpkgbuildflagsmkescape=$(subst \,\\\,$(1))
export DEB_BUILD_MAINT_OPTIONS:=hardening=+all
export DEB_CPPFLAGS_MAINT_APPEND:=$(call dpkgbuildflagsmkescape,${OUR_CPPFLAGS})
export DEB_CFLAGS_MAINT_APPEND:=$(call dpkgbuildflagsmkescape,${OUR_CFLAGS})
export DEB_CXXFLAGS_MAINT_APPEND:=$(call dpkgbuildflagsmkescape,${OUR_CXXFLAGS})
export DEB_LDFLAGS_MAINT_APPEND:=$(call dpkgbuildflagsmkescape,${OUR_LDFLAGS})
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/buildtools.mk
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --buildsystem=cmake

CMAKE_DEFS:=	-DSPECTRUM_VERSION="${DEB_VERSION_UPSTREAM}"
CMAKE_DEFS+=	-DENABLE_QT4=OFF
# Tests are FTBFS -- TODO to fix that.
CMAKE_DEFS+=	-DENABLE_TESTS=OFF
# Frotz is removed due to license concerns.
CMAKE_DEFS+=	-DENABLE_FROTZ=OFF
CMAKE_DEFS+=	-DCMAKE_VERBOSE_MAKEFILE=On
# incompatible license. (uses mongoose, which is incompatible with some parts of the remaining source.)
CMAKE_DEFS+=	-DENABLE_WEBUI=Off
# twitter plugin is defunct
CMAKE_DEFS+=	-DENABLE_TWITTER=Off

override_dh_auto_configure:
	exec dh_auto_configure -- ${CMAKE_DEFS}

execute_after_dh_auto_install:
	mkdir -p debian/tmp/usr/share debian/tmp/var/lib/spectrum2