File: rules

package info (click to toggle)
phonetisaurus 0.7.8-6
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,056 kB
  • sloc: cpp: 5,388; python: 661; ansic: 458; makefile: 71
file content (29 lines) | stat: -rwxr-xr-x 1,015 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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
include /usr/share/dpkg/buildflags.mk

DEB_BUILD_PARALLEL := 1

DEB_SRCDIR := src
CXXFLAGS:=$(CXXFLAGS) -std=c++11

include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/class/python-distutils.mk

DEB_MAKE_EXTRA_ARGS += THIRD_PARTIES_INCLUDE="-I3rdparty/utfcpp"

BUILT_USING_SOURCES := $(shell dpkg-query -W -f='$${source:Package} (= $${source:Version})' libsparsehash-dev)
DEB_DH_GENCONTROL_ARGS_phonetisaurus := -- '-Vmisc:Built-Using=$(BUILT_USING_SOURCES)'

$(patsubst %,binary-install-python/%,$(DEB_PACKAGES)) :: binary-install-python/%: binary-install/%
	dh_python2 -p$(cdbs_curpkg)

DEB_TAR_SRCDIR := .

# Needed by upstream build process
CDBS_BUILD_DEPENDS += libsparsehash-dev, libfst-dev (>= 1.4.0), python (>= 2.6.6-3~), dpkg-dev (>= 1.16.2)