summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-10-02 11:38:52 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-10-02 11:39:05 -0500
commit8b38ce7a561575978bd404fa9a3ffd399148cd76 (patch)
tree108ddff5bca77144296cad3259d7249c892538ee /lib
parent15aedfcef12f836d6c05e2c62401336547d9d8fb (diff)
downloadulab-8b38ce7a561575978bd404fa9a3ffd399148cd76.tar.gz
ulab-8b38ce7a561575978bd404fa9a3ffd399148cd76.zip
Revert back to autotools build for FFTS
Diffstat (limited to 'lib')
-rwxr-xr-xlib/ffts/debian/rules23
1 files changed, 19 insertions, 4 deletions
diff --git a/lib/ffts/debian/rules b/lib/ffts/debian/rules
index 5c5c900..fe423d8 100755
--- a/lib/ffts/debian/rules
+++ b/lib/ffts/debian/rules
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/simple-patchsys.mk
-include /usr/share/cdbs/1/class/cmake.mk
+include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
DEB_CONFIGURE_INCLUDEDIR := /usr/include
@@ -18,6 +18,21 @@ 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)
-DEB_CMAKE_EXTRA_FLAGS := \
- -DGENERATE_POSITION_INDEPENDENT_CODE="ON" \
- -DENABLE_SHARED="ON"
+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)))
+ cdbs_configure_flags := --enable-single --enable-neon --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