blob: 070c5fdcb2cc06d4bd6af1c9396ade45f6a2f893 (
plain)
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
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
DEB_CONFIGURE_INCLUDEDIR := /usr/include
DEB_CONFIGURE_MANDIR := /usr/share/man
DEB_CONFIGURE_PREFIX := /usr/
DEB_CONFIGURE_INFODIR := /usr/share/info
# Honour "parallel=N" option of DEB_BUILD_OPTIONS. Comment out to
# never build in parallel, regardless of DEB_BUILD_OPTIONS.
DEB_BUILD_PARALLEL = true
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
ifneq (,$(findstring x86_64-,$(DEB_BUILD_GNU_TYPE)))
cdbs_configure_flags := --enable-single --enable-sse --enable-shared --disable-rpath
else ifneq (,$(findstring arm-,$(DEB_BUILD_GNU_TYPE)))
ifneq(,$(findstring armhf,$(DEB_HOST_ARCH)))
cdbs_configure_flags := --enable-single --enable-neon --float_abi=hard --enable-shared --disable-rpath
else
else ifneq (,$(findstring aarch64-,$(DEB_BUILD_GNU_TYPE)))
cdbs_configure_flags := --enable-single --enable-neon --float_abi=hard --enable-shared --disable-rpath
else
cdbs_configure_flags := --enable-single --enable-shared --disable-rpath
endif
post-patches:: debian/stamp-bootstrap
debian/stamp-bootstrap:
! [ -f /usr/share/libtool/ltmain.sh ] || \
cp -f /usr/share/libtool/ltmain.sh ltmain.sh
! [ -f /usr/share/libtool/config/ltmain.sh ] || \
cp -f /usr/share/libtool/config/ltmain.sh ltmain.sh
autoreconf -i
touch debian/stamp-bootstrap
|