File: rules

package info (click to toggle)
libetonyek 0.1.13-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 7,540 kB
  • sloc: cpp: 44,289; sh: 4,784; makefile: 709; xml: 9; ansic: 4
file content (28 lines) | stat: -rwxr-xr-x 689 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

CONFIGURE_FLAGS:= --disable-werror --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)

#MDDS_VER:=$(shell pkg-config --exists mdds-2.1 && echo 2.1 || echo 2.0)
MDDS_VER:=3.0
CONFIGURE_FLAGS += --with-mdds=$(MDDS_VER)

ifneq (noopt,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 ifneq (,$(findstring arm,$(DEB_HOST_ARCH)))
	DEB_BUILD_OPTIONS += noopt
 endif
 ifneq (,$(findstring i386,$(DEB_HOST_ARCH)))
	DEB_BUILD_OPTIONS += noopt
 endif
endif
export DEB_BUILD_OPTIONS

%:
	dh $@ --with=autoreconf

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)