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
|
#!/usr/bin/make -f
upstream_version := $(shell dpkg-parsechangelog | sed -n -e'/^Version: / { s/Version: //; s/-[^-]\+$$//; p }')
base_version = $(shell echo $(upstream_version) | sed -e's/r[0-9]\+$$//')
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@ --with autoreconf
override_dh_auto_configure:
ln -sf /usr/share/misc/config.sub .
ln -sf /usr/share/misc/config.guess .
dh_auto_configure -- --with-unixODBC=/usr \
--disable-gui --disable-test
# Do nothing; the test suite requires a sql server, so we can't run it
# as part of the build.
override_dh_auto_test:
# we should never need to run this for our plugin package; running it creates
# a spurious shlibs file that shouldn't be there.
override_dh_makeshlibs:
override_dh_auto_install:
dh_auto_install -- libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/odbc DESTDIR=$(CURDIR)/debian/tmp
mv $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/odbc/libmyodbc5-$(base_version).so $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/odbc/libmyodbc.so
|