#!/usr/bin/make -f

DH_VERBOSE=1

%:
	dh $@ --parallel --with python2,python3

override_dh_auto_configure:
	dh_auto_configure -- \
	--enable-assert=no \
	--enable-console=yes \
	--enable-datacell=no \
	--enable-debug=no \
	--enable-developer=no \
	--enable-fits=no \
	--enable-gdk=yes \
	--enable-geom=yes \
	--enable-instrument=no \
	--enable-jaql=yes \
	--enable-jdbc=no \
	--enable-merocontrol=no \
	--enable-monetdb5=yes \
	--enable-odbc=yes \
	--enable-oid32=no \
	--enable-optimize=yes \
	--enable-profile=no \
	--enable-rdf=no \
	--enable-sql=yes \
	--enable-strict=no \
	--enable-testing=yes \
	--with-ant=no \
	--with-bz2=yes \
	--with-geos=yes \
	--with-hwcounters=no \
	--with-java=no \
	--with-mseed=no \
	--with-perl=yes \
	--with-pthread=yes \
	--with-python2=yes \
	--with-python3=yes \
	--with-readline=yes \
	--with-rubygem=yes \
	--with-rubygem-dir=lib/ruby/gems/1.8 \
	--with-sphinxclient=no \
	--with-unixodbc=yes \
	--with-valgrind=no

# currently the test suite fails
override_dh_auto_test:

override_dh_clean:
	dh_clean
	cd clients/python2 && python setup.py clean
	cd clients/python3 && python3 setup.py clean

override_dh_python2:
	dh_python2 clients/python2

override_dh_python3:
	dh_python3 clients/python3
