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
|
#!/usr/bin/make -f
# Copyright 2009 Steve Langasek <vorlon@debian.org>
# build should fail if anything at all is wrong with the library symbols
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
# always force the check for undefined symbols
export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@ --with autoreconf
override_dh_auto_configure:
# Add here commands to configure the package.
CXXFLAGS="-g -O2 -pipe" \
dh_auto_configure -- --enable-static --enable-ltdllib --without-pth \
--enable-drivers --enable-driverc
override_dh_auto_clean:
dh_auto_clean
override_dh_auto_install:
dh_auto_install
mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/odbc
cp -L $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/lib*S.so $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libnn.so $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/odbc
override_dh_makeshlibs:
dh_makeshlibs -X lib/$(DEB_HOST_MULTIARCH)/odbc/lib
override_dh_link:
chmod a+x debian/libodbc1.links debian/odbcinst1debian2.links
dh_link
|